deploygate

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v0.2.0

type App struct {
	Name            string    `json:"name"`
	PackageName     string    `json:"package_name"`
	Labels          AppLabels `json:"labels"`
	OSName          string    `json:"os_name"`
	CurrentRevision int       `json:"current_revision"`
	URL             string    `json:"url"`
	IconURL         string    `json:"icon_url"`
	Owner           Owner     `json:"owner"`
}

type AppLabels added in v0.2.0

type AppLabels map[string]string

type Client added in v0.1.0

type Client struct {
	ApiKey string
}

func NewClient added in v0.1.0

func NewClient(apiKey string) *Client

func (*Client) GetApp added in v0.2.0

func (c *Client) GetApp(organization, platform, packageName string) (*GetAppResponse, error)

func (*Client) GetApps added in v0.2.0

func (c *Client) GetApps(organization string) (*GetAppsResponse, error)

func (*Client) Upload added in v0.1.0

func (c *Client) Upload(userName, filePath, message, distributionKey, distributionName, releaseNote string, disableNotify bool, visibility string) (*UploadResponse, error)

type Enterprise added in v0.2.0

type Enterprise struct {
	Type        string `json:"type"`
	Name        string `json:"name"`
	DisplayName string `json:"display_name"`
	URL         string `json:"url"`
	IconURL     string `json:"icon_url"`
}

type GetAppResponse added in v0.2.0

type GetAppResponse struct {
	ResponseBase
	App App `json:"application"`
}

type GetAppsResponse added in v0.2.0

type GetAppsResponse struct {
	ResponseBase
	Apps []App `json:"applications"`
}

type Owner added in v0.2.0

type Owner struct {
	Type        string     `json:"type"`
	Name        string     `json:"name"`
	Description string     `json:"description"`
	URL         string     `json:"url"`
	Enterprise  Enterprise `json:"enterprise"`
}

type ResponseBase added in v0.2.0

type ResponseBase struct {
	Error   bool   `json:"error"`
	Message string `json:"message,omitempty"`
	Because string `json:"because,omitempty"`
}

type Results

type Results struct {
	Name        string `json:"name"`
	PackageName string `json:"package_name"`
	OSName      string `json:"os_name"`
	Path        string `json:"path"`
	Revision    int    `json:"revision"`
	VersionCode string `json:"version_code"`
	VersionName string `json:"version_name"`
	Message     string `json:"message"`
}

type UploadResponse added in v0.2.1

type UploadResponse struct {
	ResponseBase
	Results Results `json:"results"`
}

Jump to

Keyboard shortcuts

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