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, 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(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) 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) 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, name string, description string, ...) (*types.Channel, error)
- func (c *Client) GetCollector(appID string, specID string) (*collectors.AppCollectorInfo, error)
- func (c *Client) GetRelease(appID string, appType string, sequence int64) (*releases.AppRelease, error)
- func (c *Client) LintRelease(appID string, appType string, yamlOrJSON string) ([]types.LintMessage, error)
- func (c *Client) ListApps() ([]types.AppAndChannels, error)
- func (c *Client) ListChannels(appID string, appType 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) ListReleases(appID string, appType string) ([]types.ReleaseInfo, error)
- func (c *Client) PromoteCollector(appID string, appType string, specID string, channelIDs ...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 }
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) CreateLicense ¶ added in v0.3.0
func (*Client) CreateRelease ¶
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) GetRelease ¶
func (*Client) LintRelease ¶ added in v0.8.0
func (c *Client) LintRelease(appID string, appType string, yamlOrJSON string) ([]types.LintMessage, error)
yamlOrJSON is either a single ship yaml file, or a serialized JSON object describing a yaml-dir, created by readYAMLDir() 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) ListReleases ¶
func (*Client) PromoteCollector ¶ added in v0.12.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.