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 GetCatalogClient(ctx *cli.Context) (*catalog.RancherClient, 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 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 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 Config
- type ContainerPsData
- type EnvData
- type HostsData
- type PsData
- type ResourceID
- 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 GetCatalogClient ¶
func GetCatalogClient(ctx *cli.Context) (*catalog.RancherClient, error)
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 SimpleFormat ¶
func StackCommand ¶
func StartCommand ¶
func StopCommand ¶
func VolumeCommand ¶
func WaitCommand ¶
Types ¶
type CatalogData ¶
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 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 ¶
Click to show internal directories.
Click to hide internal directories.