Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewDirectorClient ¶
NewDirectorClient returns new director client struct pointer
func (*Client) GetConsoleURL ¶
GetConsoleURL fetches, validates and returns console URL from director component based on runtime ID
func (*Client) GetRuntimeID ¶
GetRuntimeID fetches runtime ID with given label name from director component
type Config ¶
type Config struct { URL string `envconfig:"default=http://compass-director.compass-system.svc.cluster.local:3000/graphql"` OauthTokenURL string `envconfig:"default=https://oauth.domain.com/oauth/token"` OauthClientID string `envconfig:"default=directorId"` OauthClientSecret string `envconfig:"default=directorSecret"` OauthScope string `envconfig:"default=runtime:read runtime:write"` }
type GraphQLClient ¶
type GraphQLClient interface {
Run(ctx context.Context, req *machineGraph.Request, resp interface{}) error
}
Click to show internal directories.
Click to hide internal directories.