director

package
v0.0.0-...-980806f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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

func NewDirectorClient(oauthClient OauthClient, gqlClient GraphQLClient, log logrus.FieldLogger) *Client

NewDirectorClient returns new director client struct pointer

func (*Client) GetRuntimeID

func (dc *Client) GetRuntimeID(accountID, instanceID string) (string, error)

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"`
	Namespace                  string `envconfig:"default=compass-system"`
	OauthCredentialsSecretName string `envconfig:"default=compass-broker-registration"`
}

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