Documentation ¶
Index ¶
- type Client
- func (c *Client) ArchiveChannel(appID string, appType string, channelID string) error
- func (c *Client) CreateApp(appOptions interface{}) (interface{}, error)
- func (c *Client) CreateChannel(appID string, appType string, appSlug string, name string, description string) ([]types.Channel, error)
- func (c *Client) CreateCollector(appID string, appType string, name string, yaml string) (*collectors.AppCollectorInfo, error)
- func (c *Client) CreateCustomer(appID, appType string, name string, channelID string, expiresIn time.Duration) (*types.Customer, error)
- func (c *Client) CreateEntitlementSpec(appID string, appType string, name string, spec string) (*types.EntitlementSpec, 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(appID string) (string, error)
- func (c *Client) GetChannel(appID string, appType string, channelID string) (*channels.AppChannel, []channels.ChannelRelease, error)
- func (c *Client) GetChannelByName(appID string, appType string, appSlug string, name string) (*types.Channel, error)
- func (c *Client) GetCollector(appID string, specID string) (*collectors.AppCollectorInfo, error)
- func (c *Client) GetCustomerByName(appType string, appID, name string) (*types.Customer, error)
- func (c *Client) GetOrCreateChannelByName(appID string, appType string, appSlug string, name string, description string, ...) (*types.Channel, error)
- func (c *Client) GetRelease(appID string, appType string, sequence int64) (*releases.AppRelease, error)
- func (c *Client) LintRelease(appType string, data []byte) ([]types.LintMessage, error)
- func (c *Client) ListApps() ([]types.AppAndChannels, error)
- func (c *Client) ListChannels(appID string, appType string, appSlug string) ([]types.Channel, error)
- func (c *Client) ListCollectors(appID string, appType string) ([]types.CollectorInfo, error)
- func (c *Client) ListCustomers(appID 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) SetDefaultEntitlementSpec(specID string) error
- func (c *Client) SetEntitlementValue(customerID string, specID string, key string, value string, datatype string, ...) (*types.EntitlementValue, error)
- func (c *Client) UpdateCollector(appID string, specID string, yaml string) (interface{}, error)
- func (c *Client) UpdateCollectorName(appID string, specID string, name string) (interface{}, error)
- func (c *Client) UpdateRelease(appID string, appType string, sequence int64, yaml string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { PlatformClient *platformclient.HTTPClient ShipClient *shipclient.GraphQLClient KotsClient *kotsclient.GraphQLClient KotsHTTPClient *kotsclient.VendorV3Client }
func (*Client) ArchiveChannel ¶
func (*Client) CreateChannel ¶
func (*Client) CreateCollector ¶ added in v0.12.0
func (c *Client) CreateCollector(appID string, appType string, name string, yaml string) (*collectors.AppCollectorInfo, error)
func (c *Client) CreateCollector(appID string, name string, yaml string) (*collectors.AppCollectorInfo, error) {
func (*Client) CreateCustomer ¶ added in v0.18.0
func (*Client) CreateEntitlementSpec ¶ added in v0.11.0
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 (c *Client) GetChannel(appID string, appType string, channelID string) (*channels.AppChannel, []channels.ChannelRelease, error)
func (*Client) GetChannelByName ¶ added in v0.18.0
func (*Client) GetCollector ¶ added in v0.12.0
func (c *Client) GetCollector(appID string, specID string) (*collectors.AppCollectorInfo, error)
func (*Client) GetCustomerByName ¶ added in v0.29.0
func (*Client) GetOrCreateChannelByName ¶ added in v0.31.0
func (*Client) GetRelease ¶
func (*Client) LintRelease ¶ added in v0.8.0
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 (*Client) ListCollectors ¶ added in v0.12.0
func (*Client) ListCustomers ¶ added in v0.18.0
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) SetDefaultEntitlementSpec ¶ added in v0.11.0
func (*Client) SetEntitlementValue ¶ added in v0.11.0
func (*Client) UpdateCollector ¶ added in v0.12.0
func (*Client) UpdateCollectorName ¶ added in v0.12.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.