Documentation ¶
Index ¶
- Constants
- func IsNotFoundError(err error) bool
- type About
- type AboutGRPC
- type Client
- func (self *Client) About() (About, error)
- func (self *Client) CancelDeploymentModification(modificationToken string) (bool, string, error)
- func (self *Client) CreateDeployment(parentDeploymentId string, templateId string, siteId string, ...) (bool, string, string, error)
- func (self *Client) CreateDeploymentRaw(parentDeploymentId string, templateId string, siteId string, ...) (bool, string, string, error)
- func (self *Client) DataClient() (api.DataClient, error)
- func (self *Client) DeleteDeployment(deploymentId string) (bool, string, error)
- func (self *Client) DeletePlugin(pluginId PluginID) (bool, string, error)
- func (self *Client) DeleteSite(siteId string) (bool, string, error)
- func (self *Client) DeleteTemplate(templateId string) (bool, string, error)
- func (self *Client) EndDeploymentModification(modificationToken string, package_ tkoutil.Package) (bool, string, string, error)
- func (self *Client) EndDeploymentModificationRaw(modificationToken string, packageFormat string, package_ []byte) (bool, string, string, error)
- func (self *Client) GetDeployment(deploymentId string) (Deployment, bool, error)
- func (self *Client) GetPlugin(pluginId PluginID) (Plugin, bool, error)
- func (self *Client) GetSite(siteId string) (Site, bool, error)
- func (self *Client) GetTemplate(templateId string) (Template, bool, error)
- func (self *Client) ListAllDeployments(selectDeployments SelectDeployments) util.Results[DeploymentInfo]
- func (self *Client) ListAllPlugins(selectPlugins SelectPlugins) util.Results[Plugin]
- func (self *Client) ListAllSites(selectSites SelectSites) util.Results[SiteInfo]
- func (self *Client) ListAllTemplates(selectTemplates SelectTemplates) util.Results[TemplateInfo]
- func (self *Client) ListDeployments(selectDeployments SelectDeployments, offset uint, maxCount int) (util.Results[DeploymentInfo], error)
- func (self *Client) ListPlugins(selectPlugins SelectPlugins, offset uint, maxCount int) (util.Results[Plugin], error)
- func (self *Client) ListSites(selectSites SelectSites, offset uint, maxCount int) (util.Results[SiteInfo], error)
- func (self *Client) ListTemplates(selectTemplates SelectTemplates, offset uint, maxCount int) (util.Results[TemplateInfo], error)
- func (self *Client) ModifyDeployment(deploymentId string, modify ModifyDeploymentFunc) (bool, error)
- func (self *Client) PurgeDeployments(selectDeployments SelectDeployments) (bool, string, error)
- func (self *Client) PurgePlugins(selectPlugins SelectPlugins) (bool, string, error)
- func (self *Client) PurgeSites(selectSites SelectSites) (bool, string, error)
- func (self *Client) PurgeTemplates(selectTemplates SelectTemplates) (bool, string, error)
- func (self *Client) RegisterPlugin(pluginId PluginID, executor string, arguments []string, ...) (bool, string, error)
- func (self *Client) RegisterSite(siteId string, templateId string, metadata map[string]string, ...) (bool, string, error)
- func (self *Client) RegisterSiteRaw(siteId string, templateId string, metadata map[string]string, ...) (bool, string, error)
- func (self *Client) RegisterTemplate(templateId string, metadata map[string]string, package_ tkoutil.Package) (bool, string, error)
- func (self *Client) RegisterTemplateRaw(templateId string, metadata map[string]string, packageFormat string, ...) (bool, string, error)
- func (self *Client) StartDeploymentModification(deploymentId string) (bool, string, string, tkoutil.Package, error)
- type Deployment
- type DeploymentInfo
- type ModifyDeploymentFunc
- type Plugin
- type PluginID
- type SelectDeployments
- type SelectPlugins
- type SelectSites
- type SelectTemplates
- type Site
- type SiteInfo
- type Template
- type TemplateInfo
Constants ¶
View Source
const ChunkSize = 100
Variables ¶
This section is empty.
Functions ¶
func IsNotFoundError ¶
Types ¶
type About ¶
type About struct { InstanceName string `json:"instanceName" yaml:"instanceName"` InstanceDescription string `json:"instanceDescription" yaml:"instanceDescription"` TKOVersion string `json:"tkoVersion" yaml:"tkoVersion"` Backend string `json:"backend" yaml:"backend"` GRPC AboutGRPC `json:"grpc" yaml:"grpc"` }
type Client ¶
type Client struct { GRPCLevel2Protocol string GRPCAddress string GRPCPort int PackageFormat string Timeout time.Duration Timezone *time.Location // contains filtered or unexported fields }
func (*Client) CancelDeploymentModification ¶
func (*Client) CreateDeployment ¶
func (*Client) CreateDeploymentRaw ¶
func (*Client) DataClient ¶
func (self *Client) DataClient() (api.DataClient, error)
func (*Client) DeleteDeployment ¶
func (*Client) DeletePlugin ¶
func (*Client) DeleteTemplate ¶
func (*Client) EndDeploymentModification ¶
func (*Client) EndDeploymentModificationRaw ¶
func (*Client) GetDeployment ¶
func (self *Client) GetDeployment(deploymentId string) (Deployment, bool, error)
func (*Client) GetTemplate ¶
func (*Client) ListAllDeployments ¶
func (self *Client) ListAllDeployments(selectDeployments SelectDeployments) util.Results[DeploymentInfo]
func (*Client) ListAllPlugins ¶
func (self *Client) ListAllPlugins(selectPlugins SelectPlugins) util.Results[Plugin]
func (*Client) ListAllSites ¶
func (self *Client) ListAllSites(selectSites SelectSites) util.Results[SiteInfo]
func (*Client) ListAllTemplates ¶
func (self *Client) ListAllTemplates(selectTemplates SelectTemplates) util.Results[TemplateInfo]
func (*Client) ListDeployments ¶
func (self *Client) ListDeployments(selectDeployments SelectDeployments, offset uint, maxCount int) (util.Results[DeploymentInfo], error)
func (*Client) ListPlugins ¶
func (*Client) ListTemplates ¶
func (self *Client) ListTemplates(selectTemplates SelectTemplates, offset uint, maxCount int) (util.Results[TemplateInfo], error)
func (*Client) ModifyDeployment ¶
func (self *Client) ModifyDeployment(deploymentId string, modify ModifyDeploymentFunc) (bool, error)
func (*Client) PurgeDeployments ¶
func (self *Client) PurgeDeployments(selectDeployments SelectDeployments) (bool, string, error)
func (*Client) PurgePlugins ¶
func (self *Client) PurgePlugins(selectPlugins SelectPlugins) (bool, string, error)
func (*Client) PurgeSites ¶
func (self *Client) PurgeSites(selectSites SelectSites) (bool, string, error)
func (*Client) PurgeTemplates ¶
func (self *Client) PurgeTemplates(selectTemplates SelectTemplates) (bool, string, error)
func (*Client) RegisterPlugin ¶
func (*Client) RegisterSite ¶
func (*Client) RegisterSiteRaw ¶
func (*Client) RegisterTemplate ¶
func (*Client) RegisterTemplateRaw ¶
type Deployment ¶
type Deployment struct { DeploymentInfo Package tkoutil.Package `json:"package" yaml:"package"` }
type DeploymentInfo ¶
type DeploymentInfo struct { DeploymentID string `json:"deploymentId" yaml:"deploymentId"` ParentDeploymentID string `json:"parentDeploymentId,omitempty" yaml:"parentDeploymentId,omitempty"` TemplateID string `json:"templateId" yaml:"templateId"` SiteID string `json:"siteId,omitempty" yaml:"siteId,omitempty"` Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` Created time.Time `json:"created" yaml:"created"` Updated time.Time `json:"updated" yaml:"updated"` Prepared bool `json:"prepared" yaml:"prepared"` Approved bool `json:"approved" yaml:"approved"` }
type ModifyDeploymentFunc ¶
type PluginID ¶
type PluginID struct { Type string `json:"type" yaml:"type"` Name string `json:"name" yaml:"name"` }
func NewPluginID ¶
type SelectDeployments ¶
type SelectDeployments struct { ParentDeploymentID *string TemplateIDPatterns []string TemplateMetadataPatterns map[string]string SiteIDPatterns []string SiteMetadataPatterns map[string]string MetadataPatterns map[string]string Prepared *bool Approved *bool }
func (SelectDeployments) String ¶
func (self SelectDeployments) String() string
(fmt.Stringer interface)
type SelectPlugins ¶
type SelectSites ¶
type SelectTemplates ¶
func (SelectTemplates) String ¶
func (self SelectTemplates) String() string
(fmt.Stringer interface)
type SiteInfo ¶
type SiteInfo struct { SiteID string `json:"siteId" yaml:"siteId"` TemplateID string `json:"templateId,omitempty" yaml:"templateId,omitempty"` Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` Updated time.Time `json:"updated" yaml:"updated"` DeploymentIDs []string `json:"deploymentIds,omitempty" yaml:"deploymentIds,omitempty"` }
type Template ¶
type Template struct { TemplateInfo Package tkoutil.Package `json:"package" yaml:"package"` }
type TemplateInfo ¶
type TemplateInfo struct { TemplateID string `json:"templateId" yaml:"templateId"` Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` Updated time.Time `json:"updated" yaml:"updated"` DeploymentIDs []string `json:"deploymentIds,omitempty" yaml:"deploymentIds,omitempty"` }
Click to show internal directories.
Click to hide internal directories.