Documentation ¶
Index ¶
- Variables
- type ClusterManager
- type CmdWithExp
- type Command
- type Environment
- func (e *Environment) Add(k string, v string)
- func (e *Environment) All(k string) []string
- func (e *Environment) Clone() *Environment
- func (e *Environment) Get(k string) string
- func (e *Environment) Has(k string) bool
- func (e *Environment) IsDry() bool
- func (e *Environment) Set(k string, v ...string)
- func (e *Environment) SetLocal(k string, v ...string)
- func (e *Environment) String() string
- func (e *Environment) VerboseLevel() int
- type ExecFlow
- type Expected
- type GceClusterManager
- type MinikubeClusterManager
- func (m *MinikubeClusterManager) Delete() *Result
- func (m *MinikubeClusterManager) IP() string
- func (m *MinikubeClusterManager) Name() string
- func (m *MinikubeClusterManager) Provisioner() string
- func (m *MinikubeClusterManager) Start() *Result
- func (m *MinikubeClusterManager) UpdateParams() []string
- type Result
- type SwarmClusterManager
Constants ¶
This section is empty.
Variables ¶
View Source
var ResultMatches = &baseMatcher{ name: "ResultMatches", params: []string{"result", "expected"}, check: func(result *Result, params []interface{}) (bool, string) { expected, ok := params[1].(Expected) if !ok { return false, fmt.Sprintf("second param must be a Expected, got %T", params[0]) } err := result.Compare(expected) if err != nil { return false, fmt.Sprintf("%v\n%v", err.Error(), result) } return true, "" }, }
View Source
var ResultOk = &baseMatcher{ name: "ResultOK", params: []string{"result"}, check: func(result *Result, params []interface{}) (bool, string) { if result.Error != nil || result.ExitCode != 0 { return false, fmt.Sprintf("result error: %v", result) } if result.Timeout { return false, fmt.Sprintf("result timeout after %v: %v", result.Command.Timeout, result) } return true, "" }, }
Functions ¶
This section is empty.
Types ¶
type ClusterManager ¶
type ClusterManager interface { Name() string Provisioner() string Start() *Result Delete() *Result UpdateParams() []string }
ClusterManager is an abstraction to a Tsuru cluster
type CmdWithExp ¶
type Command ¶
func NewCommand ¶
func (*Command) Run ¶
func (c *Command) Run(e *Environment) *Result
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func NewEnvironment ¶
func NewEnvironment() *Environment
func (*Environment) Add ¶
func (e *Environment) Add(k string, v string)
func (*Environment) All ¶
func (e *Environment) All(k string) []string
func (*Environment) Clone ¶
func (e *Environment) Clone() *Environment
func (*Environment) Get ¶
func (e *Environment) Get(k string) string
func (*Environment) Has ¶
func (e *Environment) Has(k string) bool
func (*Environment) IsDry ¶
func (e *Environment) IsDry() bool
func (*Environment) Set ¶
func (e *Environment) Set(k string, v ...string)
func (*Environment) SetLocal ¶
func (e *Environment) SetLocal(k string, v ...string)
func (*Environment) String ¶
func (e *Environment) String() string
func (*Environment) VerboseLevel ¶
func (e *Environment) VerboseLevel() int
type ExecFlow ¶
type ExecFlow struct {
// contains filtered or unexported fields
}
func (*ExecFlow) Rollback ¶
func (f *ExecFlow) Rollback(c *check.C, env *Environment)
func (*ExecFlow) Run ¶
func (f *ExecFlow) Run(c *check.C, env *Environment)
type GceClusterManager ¶
type GceClusterManager struct {
// contains filtered or unexported fields
}
GceClusterManager represents a Google Compute Engine cluster (Container Engine)
func (*GceClusterManager) Delete ¶
func (g *GceClusterManager) Delete() *Result
func (*GceClusterManager) IP ¶
func (g *GceClusterManager) IP() string
func (*GceClusterManager) Name ¶
func (g *GceClusterManager) Name() string
func (*GceClusterManager) Provisioner ¶
func (g *GceClusterManager) Provisioner() string
func (*GceClusterManager) Start ¶
func (g *GceClusterManager) Start() *Result
func (*GceClusterManager) UpdateParams ¶
func (g *GceClusterManager) UpdateParams() []string
type MinikubeClusterManager ¶
type MinikubeClusterManager struct {
// contains filtered or unexported fields
}
MinikubeClusterManager represents a minikube local instance
func (*MinikubeClusterManager) Delete ¶
func (m *MinikubeClusterManager) Delete() *Result
func (*MinikubeClusterManager) IP ¶
func (m *MinikubeClusterManager) IP() string
func (*MinikubeClusterManager) Name ¶
func (m *MinikubeClusterManager) Name() string
func (*MinikubeClusterManager) Provisioner ¶
func (m *MinikubeClusterManager) Provisioner() string
func (*MinikubeClusterManager) Start ¶
func (m *MinikubeClusterManager) Start() *Result
func (*MinikubeClusterManager) UpdateParams ¶
func (m *MinikubeClusterManager) UpdateParams() []string
type Result ¶
type SwarmClusterManager ¶
type SwarmClusterManager struct {
// contains filtered or unexported fields
}
func (*SwarmClusterManager) Delete ¶
func (m *SwarmClusterManager) Delete() *Result
func (*SwarmClusterManager) Name ¶
func (m *SwarmClusterManager) Name() string
func (*SwarmClusterManager) Provisioner ¶
func (m *SwarmClusterManager) Provisioner() string
func (*SwarmClusterManager) RequiredNodes ¶
func (m *SwarmClusterManager) RequiredNodes() int
func (*SwarmClusterManager) Start ¶
func (m *SwarmClusterManager) Start() *Result
func (*SwarmClusterManager) UpdateParams ¶
func (m *SwarmClusterManager) UpdateParams() []string
Click to show internal directories.
Click to hide internal directories.