client

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT 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 {
	PlatformClient *platformclient.HTTPClient
	KotsClient     *kotsclient.VendorV3Client
}

func NewClient added in v0.7.0

func NewClient(platformOrigin string, apiToken string, kurlOrigin string) Client

func (*Client) ArchiveChannel

func (c *Client) ArchiveChannel(appID string, appType string, channelID string) error

func (*Client) ArchiveCustomer added in v0.46.0

func (c *Client) ArchiveCustomer(appType string, customerID string) error

func (*Client) CreateApp

func (c *Client) CreateApp(appOptions interface{}) (interface{}, error)

func (*Client) CreateChannel

func (c *Client) CreateChannel(appID string, appType string, name string, description string) ([]*types.Channel, error)

func (*Client) CreateCollector added in v0.12.0

func (c *Client) CreateCollector(appID string, appType string, name string, yaml string) (*types.CollectorSpec, error)

func (*Client) CreateCustomer added in v0.18.0

func (c *Client) CreateCustomer(appType string, opts kotsclient.CreateCustomerOpts) (*types.Customer, error)

func (*Client) CreateInstaller added in v0.21.0

func (c *Client) CreateInstaller(appId string, appType string, yaml string) (*types.InstallerSpec, error)

func (*Client) CreateLicense added in v0.3.0

func (c *Client) CreateLicense(license interface{}) (interface{}, error)

func (*Client) CreateRelease

func (c *Client) CreateRelease(appID string, appType string, yaml string) (*types.ReleaseInfo, error)

func (*Client) DeleteApp added in v0.7.0

func (c *Client) DeleteApp(appID string) error

func (*Client) DownloadLicense added in v0.29.0

func (c *Client) DownloadLicense(appType string, appID string, customerID string) ([]byte, error)

func (*Client) GetApp added in v0.3.0

func (c *Client) GetApp(appID string) (interface{}, error)

func (*Client) GetAppType added in v0.7.0

func (c *Client) GetAppType(appID string) (*types.App, string, error)

func (*Client) GetChannel

func (c *Client) GetChannel(appID string, appType string, channelID string) (*types.Channel, error)

func (*Client) GetChannelByName added in v0.18.0

func (c *Client) GetChannelByName(appID string, appType string, name string) (*types.Channel, error)

func (*Client) GetCollector added in v0.12.0

func (c *Client) GetCollector(appID string, specID string) (*types.CollectorSpec, error)

func (*Client) GetCustomerByNameOrId added in v0.58.0

func (c *Client) GetCustomerByNameOrId(appType string, appID, nameOrId string) (*types.Customer, error)

func (*Client) GetOrCreateChannelByName added in v0.31.0

func (c *Client) GetOrCreateChannelByName(opts GetOrCreateChannelOptions) (*types.Channel, error)

func (*Client) GetRelease

func (c *Client) GetRelease(appID string, appType string, sequence int64) (*types.AppRelease, error)

func (*Client) LintRelease added in v0.8.0

func (c *Client) LintRelease(appType string, data []byte, isBuildersRelease bool, contentType string) ([]types.LintMessage, error)

data is a []byte describing a tarred yaml-dir, created by tarYAMLDir() this Client abstraction continue to spring more leaks :)

func (*Client) ListApps added in v0.7.0

func (c *Client) ListApps() ([]types.AppAndChannels, error)

func (*Client) ListChannels

func (c *Client) ListChannels(appID string, appType string, channelName string) ([]*types.Channel, error)

func (*Client) ListCollectors added in v0.12.0

func (c *Client) ListCollectors(appID string, appType string) ([]types.CollectorSpec, error)

func (*Client) ListCustomers added in v0.18.0

func (c *Client) ListCustomers(appID string, appType string, includeTest bool) ([]types.Customer, error)

func (*Client) ListCustomersByAppAndVersion added in v0.51.0

func (c *Client) ListCustomersByAppAndVersion(appID string, appVersion string, appType string) ([]types.Customer, error)

list customers by app and app version

func (*Client) ListInstallers added in v0.21.0

func (c *Client) ListInstallers(appId string, appType string) ([]types.InstallerSpec, error)

func (*Client) ListReleases

func (c *Client) ListReleases(appID string, appType string) ([]types.ReleaseInfo, error)

func (*Client) PromoteCollector added in v0.12.0

func (c *Client) PromoteCollector(appID string, appType string, specID string, channelIDs ...string) error

func (*Client) PromoteInstaller added in v0.21.0

func (c *Client) PromoteInstaller(appId string, appType string, sequence int64, channelID string, versionLabel string) error

func (*Client) PromoteRelease

func (c *Client) PromoteRelease(appID string, appType string, sequence int64, label string, notes string, required bool, channelIDs ...string) error

func (*Client) SetInstanceTags added in v0.64.0

func (c *Client) SetInstanceTags(appID string, appType string, customerID string, instanceID string, tags []types.Tag) (*types.Instance, error)

func (*Client) TestRelease added in v0.44.0

func (c *Client) TestRelease(appID string, appType string, sequence int64) (string, error)

func (*Client) UpdateCollector added in v0.12.0

func (c *Client) UpdateCollector(appID string, specID string, yaml string, name string, isArchived bool) error

func (*Client) UpdateCustomer added in v0.73.2

func (c *Client) UpdateCustomer(appType string, customerID string, opts kotsclient.UpdateCustomerOpts) (*types.Customer, error)

func (*Client) UpdateRelease

func (c *Client) UpdateRelease(appID string, appType string, sequence int64, yaml string) error

func (*Client) UpdateSemanticVersioningForChannel added in v0.38.0

func (c *Client) UpdateSemanticVersioningForChannel(appType string, appID string, chanID string, enableSemver bool) error

type GetOrCreateChannelOptions added in v0.51.0

type GetOrCreateChannelOptions struct {
	AppID          string
	AppType        string
	NameOrID       string
	Description    string
	CreateIfAbsent bool
}

Jump to

Keyboard shortcuts

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