コード例 #1
0
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
}
コード例 #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
}