client

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 4 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.Client
	ShipClient     shipclient.Client
}

func NewClient added in v0.7.0

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

func (*Client) ArchiveChannel

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

func (*Client) CreateApp

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

func (*Client) CreateChannel

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

func (*Client) CreateEntitlementSpec added in v0.11.0

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

func (*Client) DeleteApp added in v0.7.0

func (c *Client) DeleteApp(appID string) 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, channelID string) (interface{}, interface{}, error)

func (*Client) GetRelease

func (c *Client) GetRelease(appID string, sequence int64) (interface{}, error)

func (*Client) LintRelease added in v0.8.0

func (c *Client) LintRelease(appID string, yaml string) ([]types.LintMessage, error)

func (*Client) ListApps added in v0.7.0

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

func (*Client) ListChannels

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

func (*Client) ListReleases

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

func (*Client) PromoteRelease

func (c *Client) PromoteRelease(appID 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) UpdateRelease

func (c *Client) UpdateRelease(appID string, sequence int64, releaseOptions interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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