Documentation
¶
Index ¶
- Variables
- func SetupIndividualType(t *testing.T, individualFuncCalls []IndividualFuncCall)
- func SetupMergeableType(t *testing.T, individualFuncCalls []MergeableFuncCall)
- type Individual
- func (i Individual) Configure(ctx context.Context, hst host.Host, name resource.Name, state resource.State) error
- func (i Individual) Destroy(ctx context.Context, hst host.Host, name resource.Name) error
- func (i Individual) GetState(ctx context.Context, hst host.Host, name resource.Name) (resource.State, error)
- func (i Individual) ValidateName(name resource.Name) error
- type IndividualFuncCall
- type IndividualFuncCalls
- type IndividualFuncConfigure
- type IndividualFuncDestroy
- type IndividualFuncGetState
- type IndividualFuncValidateName
- type IndividualState
- type Mergeable
- type MergeableFuncCall
- type MergeableFuncCalls
- type MergeableFuncConfigureAll
- type MergeableFuncDestroy
- type MergeableFuncGetStates
- type MergeableFuncValidateName
- type MergeableState
Constants ¶
This section is empty.
Variables ¶
View Source
var IndividualT *testing.T
View Source
var MergeableT *testing.T
Functions ¶
func SetupIndividualType ¶
func SetupIndividualType(t *testing.T, individualFuncCalls []IndividualFuncCall)
func SetupMergeableType ¶
func SetupMergeableType(t *testing.T, individualFuncCalls []MergeableFuncCall)
Types ¶
type Individual ¶
type Individual struct{}
func (Individual) ValidateName ¶
func (i Individual) ValidateName(name resource.Name) error
type IndividualFuncCall ¶
type IndividualFuncCall struct {
ValidateName *IndividualFuncValidateName
GetState *IndividualFuncGetState
Configure *IndividualFuncConfigure
Destroy *IndividualFuncDestroy
}
func (IndividualFuncCall) String ¶
func (ifc IndividualFuncCall) String() string
type IndividualFuncCalls ¶
type IndividualFuncCalls []IndividualFuncCall
var IndividualExpectedFuncCalls IndividualFuncCalls
func (IndividualFuncCalls) String ¶
func (ifcs IndividualFuncCalls) String() string
type IndividualFuncConfigure ¶
func (IndividualFuncConfigure) String ¶
func (ifc IndividualFuncConfigure) String() string
type IndividualFuncDestroy ¶
func (IndividualFuncDestroy) String ¶
func (ifd IndividualFuncDestroy) String() string
type IndividualFuncGetState ¶
type IndividualFuncGetState struct {
Name resource.Name
ReturnState resource.State
ReturnError error
}
func (IndividualFuncGetState) String ¶
func (ifgs IndividualFuncGetState) String() string
type IndividualFuncValidateName ¶
func (IndividualFuncValidateName) String ¶
func (ifvn IndividualFuncValidateName) String() string
type IndividualState ¶
type IndividualState struct {
Value string
}
func (IndividualState) ValidateAndUpdate ¶
type Mergeable ¶
type Mergeable struct{}
func (Mergeable) ConfigureAll ¶
type MergeableFuncCall ¶
type MergeableFuncCall struct {
ValidateName *MergeableFuncValidateName
GetStates *MergeableFuncGetStates
ConfigureAll *MergeableFuncConfigureAll
}
func (MergeableFuncCall) String ¶
func (mfc MergeableFuncCall) String() string
type MergeableFuncCalls ¶
type MergeableFuncCalls []MergeableFuncCall
var MergeableExpectedFuncCalls MergeableFuncCalls
func (MergeableFuncCalls) String ¶
func (mfcs MergeableFuncCalls) String() string
type MergeableFuncConfigureAll ¶
type MergeableFuncConfigureAll struct {
ActionNameStateMap map[resource.Action]map[resource.Name]resource.State
ReturnError error
}
func (MergeableFuncConfigureAll) String ¶
func (mfca MergeableFuncConfigureAll) String() string
type MergeableFuncDestroy ¶
func (MergeableFuncDestroy) String ¶
func (ifd MergeableFuncDestroy) String() string
type MergeableFuncGetStates ¶
type MergeableFuncGetStates struct {
Names []resource.Name
ReturnNameStateMap map[resource.Name]resource.State
ReturnError error
}
func (MergeableFuncGetStates) String ¶
func (mfgs MergeableFuncGetStates) String() string
type MergeableFuncValidateName ¶
func (MergeableFuncValidateName) String ¶
func (mfvn MergeableFuncValidateName) String() string
type MergeableState ¶
type MergeableState struct {
Value string
}
func (MergeableState) ValidateAndUpdate ¶
Click to show internal directories.
Click to hide internal directories.