director

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

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

func (dc *Client) GetConsoleURL(accountID, runtimeID string) (string, error)

GetConsoleURL fetches, validates and returns console URL from director component based on runtime ID

func (*Client) SetLabel

func (dc *Client) SetLabel(accountID, runtimeID, key, value string) error

type Config

type Config struct {
	URL                        string `envconfig:"default=http://compass-director.compass-system.svc.cluster.local:3000/graphql"`
	Namespace                  string `envconfig:"default=compass-system"`
	OauthCredentialsSecretName string `envconfig:"default=compass-broker-registration"`
	SkipCertVerification       bool   `envconfig:"default=false"`
}

type GraphQLClient

type GraphQLClient interface {
	Run(ctx context.Context, req *machineGraph.Request, resp interface{}) error
}

type OauthClient

type OauthClient interface {
	GetAuthorizationToken() (oauth.Token, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL