Documentation ¶
Index ¶
- func ActivateContext(val string) error
- func BoolFlag(args *[]string, flags ...string) bool
- func CopyDockerCompose(cfg *Config) error
- func Execute(config *Config, cmd string, args []string) (io.Reader, io.Reader, func(), func() error, error)
- func StringFlag(args *[]string, flags ...string) string
- type Build
- type Command
- type Config
- type Context
- type SSH
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateContext ¶
func CopyDockerCompose ¶
func Execute ¶
func Execute(config *Config, cmd string, args []string) (io.Reader, io.Reader, func(), func() error, error)
Execute executes the command based on the configuration: locally or remotely (ssh).
func StringFlag ¶
Types ¶
type Command ¶
type Config ¶
type Config struct { Name string `yaml:"name"` Image string `yaml:"image,omitempty"` Context string `yaml:"context,omitempty"` Build *Build `yaml:"build,omitempty"` SSH *SSH `yaml:"ssh,omitempty"` }
func DockerCompose ¶
func LoadConfig ¶
func LoadConfig() *Config
type Context ¶
type Context struct { ID string `yaml:"id"` Name string `yaml:"name"` Active bool `yaml:"active,omitempty"` SSH *SSH `yaml:"ssh,omitempty"` Build *Build `yaml:"build,omitempty"` }
func ActiveContext ¶
func ActiveContext() *Context
func AllContexts ¶
func FindContext ¶
Click to show internal directories.
Click to hide internal directories.