Documentation ¶
Index ¶
- func Arg1Call(arg1 string, work func(string) error) cmdFunc
- func BashQuote(original string) string
- func CheckEnv(env string) (string, error)
- func Config(env string) *config.Config
- func ContainerNameRegexp(svcName, env string) string
- func Env1Call(work func(string, string) error) cmdFunc
- func Env2Call(work func(string, string, string) error) cmdFunc
- func EnvCall(work func(string) error) cmdFunc
- func EnvSliceCall(work func(string, []string) error) cmdFunc
- func EnvSlicesCall(work func(string, [][]string) error) cmdFunc
- func GetClusters(env string) map[string]*Cluster
- func GoCmd() string
- func GoGetByProxy(args ...string) error
- func HasService(env, svcName string) bool
- func ImageDir(env, svcName string) string
- func InProject(env string) bool
- func IsCurrentUser(users string) (bool, error)
- func ModulePath() (string, error)
- func MultiPorts(env string, svcNames []string) bool
- func Name(env string) string
- func NoArgCall(work func() error) cmdFunc
- func ProjectRoot() string
- func Root(env string) string
- func ServiceName(env, svcName string) string
- func ServiceNames(env string) (names []string)
- func SrcDir() string
- func TimeTag(env string) string
- type Cluster
- func (c Cluster) GetNodes(feature string) (nodes []Node)
- func (c Cluster) IsLocalHost() (bool, error)
- func (c Cluster) List()
- func (c Cluster) NodesCount() int
- func (c Cluster) Run(feature string, o cmd.O, script string) (string, error)
- func (c Cluster) ServiceRun(svcName, feature string, o cmd.O, script string) (string, error)
- type Deploy
- type Node
- func (n Node) GetServiceAddr() string
- func (n Node) IsLocalHost() (bool, error)
- func (n Node) IsLocalHostP() bool
- func (n Node) Match(labels map[string]string) bool
- func (n Node) Run(o cmd.O, script string) (string, error)
- func (n Node) Services(env, svcName string) []string
- func (n Node) SshAddr() string
- func (n Node) SshCmd() string
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerNameRegexp ¶
func EnvSliceCall ¶
optional env, and optional signle argument slice seperated by "--"
func EnvSlicesCall ¶
optional env, and optional multiple argument slices seperated by "--"
func GetClusters ¶
func GoGetByProxy ¶
func HasService ¶
func IsCurrentUser ¶
func ModulePath ¶
func MultiPorts ¶
func ProjectRoot ¶
func ProjectRoot() string
func ServiceName ¶
func ServiceNames ¶
Types ¶
type Cluster ¶
type Cluster struct { User string `yaml:"user"` Nodes []Node `yaml:"nodes"` // contains filtered or unexported fields }
func GetCluster ¶
func (Cluster) IsLocalHost ¶
func (Cluster) NodesCount ¶
type Deploy ¶
type Node ¶
type Node struct { // addr for ssh and service may be on different network segments. Addr string `yaml:"addr"` // addr for ssh ServiceAddr string `yaml:"seviceAddr"` // addr for service, use Addr if empty. Labels map[string]string `yaml:"labels"` // contains filtered or unexported fields }
func (Node) GetServiceAddr ¶
func (Node) IsLocalHost ¶
func (Node) IsLocalHostP ¶
Click to show internal directories.
Click to hide internal directories.