Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultHTTPTimeout = "5s" DefaultSchedulerHost = "api." + pkg.DefaultServiceName + ".marathon.l4lb.thisdcos.directory" ErrEmptyBody = errors.New("got empty body") ErrNonSuccessCode = errors.New("got non-success code") )
View Source
var SDKAPIVersion = "v1"
SDKAPIVersion is the version of the DC/OS SDK API
View Source
var SDKClientName = "dcos"
SDKClientName is the name of the DC/OS SDK API client
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Name() string URL() string Pods() ([]string, error) GetTasks(podName string) ([]pod.Task, error) Endpoints() ([]string, error) GetEndpoint(endpointName string) (*Endpoint, error) }
Client is an interface describing a DC/OS SDK API Client
type Endpoint ¶
Endpoint represents a DC/OS SDK Service endpoint
type HTTPScheme ¶
type HTTPScheme string
HTTPScheme is the scheme type to be used for HTTP calls
const ( HTTPSchemePlain HTTPScheme = "http://" HTTPSchemeSecure HTTPScheme = "https://" )
func (HTTPScheme) String ¶
func (s HTTPScheme) String() string
String returns a string representation of the HTTPScheme
type SDKClient ¶
type SDKClient struct {
// contains filtered or unexported fields
}
SDKClient is an HTTP client for the DC/OS SDK API
func (*SDKClient) GetEndpoint ¶
GetEndpoint returns an DC/OS SDK Service Endpoint by name
Click to show internal directories.
Click to hide internal directories.