Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeDirectorClient ¶
func NewFakeDirectorClient() *fakeClient
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewDirectorClient ¶
func NewDirectorClient(oauthClient OauthClient, gqlClient GraphQLClient) *Client
NewDirectorClient returns new director client struct pointer
func (*Client) GetConsoleURL ¶
GetConsoleURL fetches, validates and returns console URL from director component based on runtime ID
type Config ¶
type Config struct { URL string `envconfig:"default=http://compass-director.compass-system.svc.cluster.local:3000/graphql"` Namespace string `envconfig:"default=kcp-system"` OauthCredentialsSecretName string `envconfig:"default=kcp-broker-registration"` SkipCertVerification bool `envconfig:"default=false"` }
type GraphQLClient ¶
type GraphQLClient interface {
Run(ctx context.Context, req *machineGraph.Request, resp interface{}) error
}
type OauthClient ¶
Click to show internal directories.
Click to hide internal directories.