Documentation ¶
Index ¶
- func CatalogCommand() cli.Command
- func ConfigCommand() cli.Command
- func DockerCommand() cli.Command
- func EnvCommand() cli.Command
- func EventsCommand() cli.Command
- func ExecCommand() cli.Command
- func ExportCommand() cli.Command
- func FormatEndpoint(data interface{}) string
- func FormatIPAddresses(data interface{}) string
- func FormatJSON(data interface{}) (string, error)
- func GetClient(ctx *cli.Context) (*client.RancherClient, error)
- func GetEnvironment(def string, c *client.RancherClient) (*client.Project, error)
- func GetOrCreateDefaultStack(c *client.RancherClient, name string) (*client.Stack, error)
- func GetRawClient(ctx *cli.Context) (*client.RancherClient, error)
- func GetStackMap(c *client.RancherClient) map[string]client.Stack
- func HostCommand() cli.Command
- func InspectCommand() cli.Command
- func LogsCommand() cli.Command
- func Lookup(c *client.RancherClient, name string, types ...string) (*client.Resource, error)
- func LookupEnvironment(c *client.RancherClient, name string) (*client.Project, error)
- func ParseName(c *client.RancherClient, name string) (*client.Stack, string, error)
- func ProjectUp(p *project.Project, c *cli.Context) error
- func PsCommand() cli.Command
- func RandomName() string
- func RestartCommand() cli.Command
- func RmCommand() cli.Command
- func RunCommand() cli.Command
- func SSHCommand() cli.Command
- func ScaleCommand() cli.Command
- func SecretCommand() cli.Command
- func SimpleFormat(values [][]string) (string, string)
- func StackCommand() cli.Command
- func StartCommand() cli.Command
- func StopCommand() cli.Command
- func UpCommand() cli.Command
- func VolumeCommand() cli.Command
- func WaitCommand() cli.Command
- func WaitFor(ctx *cli.Context, resource string) error
- type CatalogData
- type CatalogOperator
- func (c *CatalogOperator) AskQuestions(tver *catalog.TemplateVersion) (map[string]interface{}, error)
- func (c *CatalogOperator) CheckTemplateVersionUpgrade(externalid, newid string) bool
- func (c *CatalogOperator) GetKubernetesStackByID(id string) (*client.KubernetesStack, error)
- func (c *CatalogOperator) GetStackByID(id string) (*client.Stack, error)
- func (c *CatalogOperator) GetTemplateByID(id string) (*catalog.Template, error)
- func (c *CatalogOperator) GetTemplateVersion(version, url string) (*catalog.TemplateVersion, error)
- func (c *CatalogOperator) GetTemplateVersionByID(id string) (*catalog.TemplateVersion, error)
- func (c *CatalogOperator) GetTemplateVersionByLink(url string) (*catalog.TemplateVersion, error)
- func (c *CatalogOperator) GetTemplateVersionByTemplate(template *catalog.Template, version string) (*catalog.TemplateVersion, error)
- func (c *CatalogOperator) GetTemplateVersionUpgrades(tver *catalog.TemplateVersion) []string
- func (c *CatalogOperator) GetTemplateVersionUpgradesByID(id string) []string
- func (c *CatalogOperator) Install() error
- func (c *CatalogOperator) Ls() error
- func (c *CatalogOperator) Show() error
- func (c *CatalogOperator) Upgrade() error
- type CatalogVersionData
- type Config
- type ContainerPsData
- type EnvData
- type HostsData
- type PsData
- type ResourceID
- type SecretData
- type StackData
- type TableWriter
- type TemplateData
- type VolumeData
- type Waiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatalogCommand ¶
func ConfigCommand ¶
func DockerCommand ¶
func EnvCommand ¶
func EventsCommand ¶
func ExecCommand ¶
func ExportCommand ¶
func FormatEndpoint ¶
func FormatEndpoint(data interface{}) string
func FormatIPAddresses ¶
func FormatIPAddresses(data interface{}) string
func FormatJSON ¶
func GetEnvironment ¶
func GetOrCreateDefaultStack ¶
func GetRawClient ¶
func GetStackMap ¶
func GetStackMap(c *client.RancherClient) map[string]client.Stack
func HostCommand ¶
func InspectCommand ¶ added in v0.1.0
func LogsCommand ¶
func LookupEnvironment ¶
func RandomName ¶
func RandomName() string
func RestartCommand ¶
func RunCommand ¶
func SSHCommand ¶
func ScaleCommand ¶
func SecretCommand ¶ added in v0.5.0
func SimpleFormat ¶
func StackCommand ¶
func StartCommand ¶
func StopCommand ¶
func VolumeCommand ¶
func WaitCommand ¶
Types ¶
type CatalogOperator ¶ added in v0.6.8
type CatalogOperator struct {
// contains filtered or unexported fields
}
func NewCatalogOperator ¶ added in v0.6.8
func NewCatalogOperator(ctx *cli.Context) (*CatalogOperator, error)
func (*CatalogOperator) AskQuestions ¶ added in v0.6.8
func (c *CatalogOperator) AskQuestions(tver *catalog.TemplateVersion) (map[string]interface{}, error)
func (*CatalogOperator) CheckTemplateVersionUpgrade ¶ added in v0.6.8
func (c *CatalogOperator) CheckTemplateVersionUpgrade(externalid, newid string) bool
func (*CatalogOperator) GetKubernetesStackByID ¶ added in v0.6.8
func (c *CatalogOperator) GetKubernetesStackByID(id string) (*client.KubernetesStack, error)
func (*CatalogOperator) GetStackByID ¶ added in v0.6.8
func (c *CatalogOperator) GetStackByID(id string) (*client.Stack, error)
func (*CatalogOperator) GetTemplateByID ¶ added in v0.6.8
func (c *CatalogOperator) GetTemplateByID(id string) (*catalog.Template, error)
func (*CatalogOperator) GetTemplateVersion ¶ added in v0.6.8
func (c *CatalogOperator) GetTemplateVersion(version, url string) (*catalog.TemplateVersion, error)
func (*CatalogOperator) GetTemplateVersionByID ¶ added in v0.6.8
func (c *CatalogOperator) GetTemplateVersionByID(id string) (*catalog.TemplateVersion, error)
func (*CatalogOperator) GetTemplateVersionByLink ¶ added in v0.6.8
func (c *CatalogOperator) GetTemplateVersionByLink(url string) (*catalog.TemplateVersion, error)
func (*CatalogOperator) GetTemplateVersionByTemplate ¶ added in v0.6.8
func (c *CatalogOperator) GetTemplateVersionByTemplate(template *catalog.Template, version string) (*catalog.TemplateVersion, error)
func (*CatalogOperator) GetTemplateVersionUpgrades ¶ added in v0.6.8
func (c *CatalogOperator) GetTemplateVersionUpgrades(tver *catalog.TemplateVersion) []string
func (*CatalogOperator) GetTemplateVersionUpgradesByID ¶ added in v0.6.8
func (c *CatalogOperator) GetTemplateVersionUpgradesByID(id string) []string
func (*CatalogOperator) Install ¶ added in v0.6.8
func (c *CatalogOperator) Install() error
func (*CatalogOperator) Ls ¶ added in v0.6.8
func (c *CatalogOperator) Ls() error
func (*CatalogOperator) Show ¶ added in v0.6.8
func (c *CatalogOperator) Show() error
func (*CatalogOperator) Upgrade ¶ added in v0.6.8
func (c *CatalogOperator) Upgrade() error
type CatalogVersionData ¶ added in v0.6.8
type CatalogVersionData struct { ID string TemplateVersion *catalog.TemplateVersion }
type Config ¶
type Config struct { AccessKey string `json:"accessKey"` SecretKey string `json:"secretKey"` URL string `json:"url"` Environment string `json:"environment"` Path string `json:"path,omitempty"` }
func LoadConfig ¶
func (Config) EnvironmentURL ¶
type ContainerPsData ¶
type EnvData ¶
type EnvData struct { ID string Environment *client.Project }
func NewEnvData ¶
func NewEnvData(project client.Project) *EnvData
type ResourceID ¶
type ResourceID string
func NewResourceID ¶
func NewResourceID(resourceType, id string) ResourceID
func (ResourceID) ID ¶
func (r ResourceID) ID() string
func (ResourceID) Type ¶
func (r ResourceID) Type() string
type SecretData ¶ added in v0.5.0
type SecretData struct { ID string Secret client.Secret }
type TableWriter ¶
type TableWriter struct { HeaderFormat string ValueFormat string Writer *tabwriter.Writer // contains filtered or unexported fields }
func NewTableWriter ¶
func NewTableWriter(values [][]string, ctx *cli.Context) *TableWriter
func (*TableWriter) Close ¶
func (t *TableWriter) Close() error
func (*TableWriter) Err ¶
func (t *TableWriter) Err() error
func (*TableWriter) Write ¶
func (t *TableWriter) Write(obj interface{})
type TemplateData ¶ added in v0.4.0
type TemplateData struct { ID string ProjectTemplate *client.ProjectTemplate }
type VolumeData ¶
type VolumeData struct { ID string Volume client.Volume }
Source Files ¶
- catalog.go
- common.go
- config.go
- docker.go
- docker_api_proxy_unix.go
- env.go
- events.go
- exec.go
- export.go
- format.go
- host.go
- host_create.go
- inspect.go
- logs.go
- ps.go
- questions.go
- restart.go
- rm.go
- run.go
- scale.go
- secret.go
- ssh.go
- stack.go
- start.go
- stop.go
- type.go
- up.go
- util_actions.go
- util_foreach.go
- util_ls.go
- volume.go
- wait.go
- websocket.go
- writer.go
Click to show internal directories.
Click to hide internal directories.