func NewMarathon(url string, username string, password string, noVerifySsl bool) (*Marathon, error) {
	httpClient, err := http.NewHttpClient(url, username, password, noVerifySsl)

	if err != nil {
		return nil, err
	}

	return &Marathon{
		httpClient: httpClient,
	}, nil
}
Example #2
0
func NewMesos(url string, principal string, secret string, noVerifySsl bool) (*Mesos, error) {
	httpClient, err := http.NewHttpClient(url, principal, secret, noVerifySsl)

	if err != nil {
		return nil, err
	}

	return &Mesos{
		Principal:  principal,
		Secret:     secret,
		httpClient: httpClient,
	}, nil
}