controlplane

package
v1.5.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: AGPL-3.0 Imports: 14 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 NewClient

func NewClient(baseURL string, identity identity.Identifier, fns ...OptFn) *Client

func (*Client) DestinationHistory

func (c *Client) DestinationHistory(ctx context.Context, revisionID string) (backendconfig.DestinationT, error)

func (*Client) SendFeatures

func (c *Client) SendFeatures(ctx context.Context, component string, features []string) error

type OptFn

type OptFn func(c *Client)

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) OptFn

func WithMaxRetries

func WithMaxRetries(retries int) OptFn

func WithRegion

func WithRegion(region string) OptFn

func WithTimeout

func WithTimeout(timeout time.Duration) OptFn

type PerComponent

type PerComponent = map[string][]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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