client

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 9 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
	ShipClient     *shipclient.GraphQLClient
	KotsClient     *kotsclient.GraphQLClient
	KotsHTTPClient *kotsclient.VendorV3Client
}

func NewClient added in v0.7.0

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

func (*Client) ArchiveChannel

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

func (*Client) CreateApp

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

func (*Client) CreateChannel

func (c *Client) CreateChannel(appID string, appType string, appSlug 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) (*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 (c *Client) CreateCustomer(appID, appType string, name string, channelID string, expiresIn time.Duration) (*types.Customer, error)

func (*Client) CreateEntitlementSpec added in v0.11.0

func (c *Client) CreateEntitlementSpec(appID string, appType string, name string, spec string) (*types.EntitlementSpec, 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) (string, error)

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 (c *Client) GetChannelByName(appID string, appType string, appSlug string, name string) (*types.Channel, error)

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 (c *Client) GetCustomerByName(appType string, appID, name string) (*types.Customer, error)

func (*Client) GetOrCreateChannelByName added in v0.31.0

func (c *Client) GetOrCreateChannelByName(appID string, appType string, appSlug string, name string, description string, createIfAbsent bool) (*types.Channel, error)

func (*Client) GetRelease

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

func (*Client) LintRelease added in v0.8.0

func (c *Client) LintRelease(appType string, data []byte) ([]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, appSlug string) ([]types.Channel, error)

func (*Client) ListCollectors added in v0.12.0

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

func (*Client) ListCustomers added in v0.18.0

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

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) SetDefaultEntitlementSpec added in v0.11.0

func (c *Client) SetDefaultEntitlementSpec(specID string) error

func (*Client) SetEntitlementValue added in v0.11.0

func (c *Client) SetEntitlementValue(customerID string, specID string, key string, value string, datatype string, appID string) (*types.EntitlementValue, error)

func (*Client) UpdateCollector added in v0.12.0

func (c *Client) UpdateCollector(appID string, specID string, yaml string) (interface{}, error)

func (*Client) UpdateCollectorName added in v0.12.0

func (c *Client) UpdateCollectorName(appID string, specID string, name string) (interface{}, error)

func (*Client) UpdateRelease

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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