Documentation ¶
Index ¶
- type Client
- func (c *Client) ArchiveChannel(appID string, appType string, channelID string) error
- func (c *Client) ArchiveCustomer(customerID string) error
- func (c *Client) CreateApp(appOptions interface{}) (interface{}, error)
- func (c *Client) CreateChannel(appID string, appType string, name string, description string) ([]*types.Channel, error)
- func (c *Client) CreateCollector(appID string, appType string, name string, yaml string) (*types.CollectorSpec, error)
- func (c *Client) CreateCustomer(appType string, opts kotsclient.CreateCustomerOpts) (*types.Customer, error)
- func (c *Client) CreateInstaller(appId string, appType string, yaml string) (*types.InstallerSpec, error)
- func (c *Client) CreateLicense(license interface{}) (interface{}, error)
- func (c *Client) CreateRelease(appID string, appType string, yaml string) (*types.ReleaseInfo, error)
- func (c *Client) DeleteApp(appID string) error
- func (c *Client) DownloadLicense(appType string, appID string, customerID string) ([]byte, error)
- func (c *Client) GetApp(appID string) (interface{}, error)
- func (c *Client) GetAppType(ctx context.Context, appID string, excludeChannels bool) (*types.App, string, error)
- func (c *Client) GetChannel(appID string, appType string, channelID string) (*types.Channel, error)
- func (c *Client) GetChannelByName(appID string, appType string, name string) (*types.Channel, error)
- func (c *Client) GetCollector(appID string, specID string) (*types.CollectorSpec, error)
- func (c *Client) GetCustomerByID(customerID string) (*types.Customer, error)
- func (c *Client) GetCustomerByName(app string, name string) (*types.Customer, error)
- func (c *Client) GetCustomerByNameOrId(appType string, appID, nameOrId string) (*types.Customer, error)
- func (c *Client) GetOrCreateChannelByName(opts GetOrCreateChannelOptions) (*types.Channel, error)
- func (c *Client) GetRelease(appID string, appType string, sequence int64) (*types.AppRelease, error)
- func (c *Client) LintRelease(appType string, data []byte, isBuildersRelease bool, contentType string) ([]types.LintMessage, error)
- func (c *Client) ListApps(excludeChannels bool) ([]types.AppAndChannels, error)
- func (c *Client) ListChannels(appID string, appType string, channelName string) ([]*types.Channel, error)
- func (c *Client) ListCollectors(appID string, appType string) ([]types.CollectorSpec, error)
- func (c *Client) ListCustomers(appID string, appType string, includeTest bool) ([]types.Customer, error)
- func (c *Client) ListCustomersByAppAndVersion(appID string, appVersion string, appType string) ([]types.Customer, error)
- func (c *Client) ListInstallers(appId string, appType string) ([]types.InstallerSpec, error)
- func (c *Client) ListReleases(appID string, appType string) ([]types.ReleaseInfo, error)
- func (c *Client) PromoteCollector(appID string, appType string, specID string, channelIDs ...string) error
- func (c *Client) PromoteInstaller(appId string, appType string, sequence int64, channelID string, ...) error
- func (c *Client) PromoteRelease(appID string, appType string, sequence int64, label string, notes string, ...) error
- func (c *Client) SetInstanceTags(appID string, appType string, customerID string, instanceID string, ...) (*types.Instance, error)
- func (c *Client) TestRelease(appID string, appType string, sequence int64) (string, error)
- func (c *Client) UpdateCollector(appID string, specID string, yaml string, name string, isArchived bool) error
- func (c *Client) UpdateCustomer(appType string, customerID string, opts kotsclient.UpdateCustomerOpts) (*types.Customer, error)
- func (c *Client) UpdateRelease(appID string, appType string, sequence int64, yaml string) error
- func (c *Client) UpdateSemanticVersioningForChannel(appType string, appID string, chanID string, enableSemver bool) error
- type GetOrCreateChannelOptions
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 (*Client) ArchiveChannel ¶
func (*Client) ArchiveCustomer ¶ added in v0.46.0
func (*Client) CreateChannel ¶
func (*Client) CreateCollector ¶ added in v0.12.0
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 (*Client) CreateLicense ¶ added in v0.3.0
func (*Client) CreateRelease ¶
func (*Client) DownloadLicense ¶ added in v0.29.0
func (*Client) GetAppType ¶ added in v0.7.0
func (*Client) GetChannel ¶
func (*Client) GetChannelByName ¶ added in v0.18.0
func (*Client) GetCollector ¶ added in v0.12.0
func (*Client) GetCustomerByID ¶ added in v0.83.2
func (*Client) GetCustomerByName ¶ added in v0.29.0
func (*Client) GetCustomerByNameOrId ¶ added in v0.58.0
func (*Client) GetOrCreateChannelByName ¶ added in v0.31.0
func (c *Client) GetOrCreateChannelByName(opts GetOrCreateChannelOptions) (*types.Channel, error)
func (*Client) GetRelease ¶
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(excludeChannels bool) ([]types.AppAndChannels, error)
func (*Client) ListChannels ¶
func (*Client) ListCollectors ¶ added in v0.12.0
func (*Client) ListCustomers ¶ added in v0.18.0
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 (*Client) ListReleases ¶
func (*Client) PromoteCollector ¶ added in v0.12.0
func (*Client) PromoteInstaller ¶ added in v0.21.0
func (*Client) PromoteRelease ¶
func (*Client) SetInstanceTags ¶ added in v0.64.0
func (*Client) TestRelease ¶ added in v0.44.0
func (*Client) UpdateCollector ¶ added in v0.12.0
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 ¶
Click to show internal directories.
Click to hide internal directories.