broker

package
v0.0.0-...-baf11bc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerOAuthConfig

type BrokerOAuthConfig struct {
	ClientID     string
	ClientSecret string
	Scope        string
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, config Config, globalAccountID, instanceID, subAccountID string, oAuthCfg BrokerOAuthConfig, log logrus.FieldLogger) *Client

func (*Client) AwaitOperationSucceeded

func (c *Client) AwaitOperationSucceeded(operationID string, timeout time.Duration) error

func (*Client) ClusterName

func (c *Client) ClusterName() string

func (*Client) DeprovisionRuntime

func (c *Client) DeprovisionRuntime() (string, error)

func (*Client) FetchDashboardURL

func (c *Client) FetchDashboardURL() (string, error)

func (*Client) GlobalAccountID

func (c *Client) GlobalAccountID() string

func (*Client) InstanceID

func (c *Client) InstanceID() string

func (*Client) ProvisionRuntime

func (c *Client) ProvisionRuntime(kymaVersion string) (string, error)

ProvisionRuntime requests Runtime provisioning in KEB kymaVersion is optional, if it is empty, the default KEB version will be used

func (*Client) SubAccountID

func (c *Client) SubAccountID() string

type Config

type Config struct {
	ClientName   string
	TokenURL     string
	URL          string
	ProvisionGCP bool
}

Jump to

Keyboard shortcuts

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