Documentation ¶
Index ¶
- type MockCommander
- func (mock *MockCommander) CurrentArgs() []string
- func (mock *MockCommander) CurrentDir() string
- func (mock *MockCommander) CurrentEnv() map[string]string
- func (mock *MockCommander) CurrentName() string
- func (mock *MockCommander) DidError() bool
- func (mock *MockCommander) DidFail() bool
- func (mock *MockCommander) Error() error
- func (mock *MockCommander) FailHandler() pegomock.FailHandler
- func (mock *MockCommander) Run() (string, error)
- func (mock *MockCommander) RunWithoutRetry() (string, error)
- func (mock *MockCommander) SetArgs(_param0 []string)
- func (mock *MockCommander) SetDir(_param0 string)
- func (mock *MockCommander) SetEnv(_param0 map[string]string)
- func (mock *MockCommander) SetEnvVariable(_param0 string, _param1 string)
- func (mock *MockCommander) SetExponentialBackOff(_param0 *backoff.ExponentialBackOff)
- func (mock *MockCommander) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockCommander) SetName(_param0 string)
- func (mock *MockCommander) SetTimeout(_param0 time.Duration)
- func (mock *MockCommander) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockCommander
- func (mock *MockCommander) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockCommander
- func (mock *MockCommander) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierMockCommander
- func (mock *MockCommander) VerifyWasCalledOnce() *VerifierMockCommander
- type MockCommander_CurrentArgs_OngoingVerification
- type MockCommander_CurrentDir_OngoingVerification
- type MockCommander_CurrentEnv_OngoingVerification
- type MockCommander_CurrentName_OngoingVerification
- type MockCommander_DidError_OngoingVerification
- type MockCommander_DidFail_OngoingVerification
- type MockCommander_Error_OngoingVerification
- type MockCommander_RunWithoutRetry_OngoingVerification
- type MockCommander_Run_OngoingVerification
- type MockCommander_SetArgs_OngoingVerification
- type MockCommander_SetDir_OngoingVerification
- type MockCommander_SetEnvVariable_OngoingVerification
- type MockCommander_SetEnv_OngoingVerification
- type MockCommander_SetExponentialBackOff_OngoingVerification
- type MockCommander_SetName_OngoingVerification
- type MockCommander_SetTimeout_OngoingVerification
- type VerifierMockCommander
- func (verifier *VerifierMockCommander) CurrentArgs() *MockCommander_CurrentArgs_OngoingVerification
- func (verifier *VerifierMockCommander) CurrentDir() *MockCommander_CurrentDir_OngoingVerification
- func (verifier *VerifierMockCommander) CurrentEnv() *MockCommander_CurrentEnv_OngoingVerification
- func (verifier *VerifierMockCommander) CurrentName() *MockCommander_CurrentName_OngoingVerification
- func (verifier *VerifierMockCommander) DidError() *MockCommander_DidError_OngoingVerification
- func (verifier *VerifierMockCommander) DidFail() *MockCommander_DidFail_OngoingVerification
- func (verifier *VerifierMockCommander) Error() *MockCommander_Error_OngoingVerification
- func (verifier *VerifierMockCommander) Run() *MockCommander_Run_OngoingVerification
- func (verifier *VerifierMockCommander) RunWithoutRetry() *MockCommander_RunWithoutRetry_OngoingVerification
- func (verifier *VerifierMockCommander) SetArgs(_param0 []string) *MockCommander_SetArgs_OngoingVerification
- func (verifier *VerifierMockCommander) SetDir(_param0 string) *MockCommander_SetDir_OngoingVerification
- func (verifier *VerifierMockCommander) SetEnv(_param0 map[string]string) *MockCommander_SetEnv_OngoingVerification
- func (verifier *VerifierMockCommander) SetEnvVariable(_param0 string, _param1 string) *MockCommander_SetEnvVariable_OngoingVerification
- func (verifier *VerifierMockCommander) SetExponentialBackOff(_param0 *backoff.ExponentialBackOff) *MockCommander_SetExponentialBackOff_OngoingVerification
- func (verifier *VerifierMockCommander) SetName(_param0 string) *MockCommander_SetName_OngoingVerification
- func (verifier *VerifierMockCommander) SetTimeout(_param0 time.Duration) *MockCommander_SetTimeout_OngoingVerification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommander ¶
type MockCommander struct {
// contains filtered or unexported fields
}
func NewMockCommander ¶
func NewMockCommander(options ...pegomock.Option) *MockCommander
func (*MockCommander) CurrentArgs ¶
func (mock *MockCommander) CurrentArgs() []string
func (*MockCommander) CurrentDir ¶
func (mock *MockCommander) CurrentDir() string
func (*MockCommander) CurrentEnv ¶
func (mock *MockCommander) CurrentEnv() map[string]string
func (*MockCommander) CurrentName ¶
func (mock *MockCommander) CurrentName() string
func (*MockCommander) DidError ¶
func (mock *MockCommander) DidError() bool
func (*MockCommander) DidFail ¶
func (mock *MockCommander) DidFail() bool
func (*MockCommander) Error ¶
func (mock *MockCommander) Error() error
func (*MockCommander) FailHandler ¶ added in v1.3.1104
func (mock *MockCommander) FailHandler() pegomock.FailHandler
func (*MockCommander) Run ¶
func (mock *MockCommander) Run() (string, error)
func (*MockCommander) RunWithoutRetry ¶
func (mock *MockCommander) RunWithoutRetry() (string, error)
func (*MockCommander) SetArgs ¶
func (mock *MockCommander) SetArgs(_param0 []string)
func (*MockCommander) SetDir ¶
func (mock *MockCommander) SetDir(_param0 string)
func (*MockCommander) SetEnv ¶
func (mock *MockCommander) SetEnv(_param0 map[string]string)
func (*MockCommander) SetEnvVariable ¶
func (mock *MockCommander) SetEnvVariable(_param0 string, _param1 string)
func (*MockCommander) SetExponentialBackOff ¶
func (mock *MockCommander) SetExponentialBackOff(_param0 *backoff.ExponentialBackOff)
func (*MockCommander) SetFailHandler ¶ added in v1.3.1104
func (mock *MockCommander) SetFailHandler(fh pegomock.FailHandler)
func (*MockCommander) SetName ¶
func (mock *MockCommander) SetName(_param0 string)
func (*MockCommander) SetTimeout ¶
func (mock *MockCommander) SetTimeout(_param0 time.Duration)
func (*MockCommander) VerifyWasCalled ¶
func (mock *MockCommander) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockCommander
func (*MockCommander) VerifyWasCalledEventually ¶ added in v1.3.818
func (mock *MockCommander) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockCommander
func (*MockCommander) VerifyWasCalledInOrder ¶
func (mock *MockCommander) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockCommander
func (*MockCommander) VerifyWasCalledOnce ¶
func (mock *MockCommander) VerifyWasCalledOnce() *VerifierMockCommander
type MockCommander_CurrentArgs_OngoingVerification ¶ added in v1.3.1104
type MockCommander_CurrentArgs_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments()
type MockCommander_CurrentDir_OngoingVerification ¶ added in v1.3.1104
type MockCommander_CurrentDir_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments()
type MockCommander_CurrentEnv_OngoingVerification ¶ added in v1.3.1104
type MockCommander_CurrentEnv_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments()
type MockCommander_CurrentName_OngoingVerification ¶ added in v1.3.1104
type MockCommander_CurrentName_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_CurrentName_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_CurrentName_OngoingVerification) GetCapturedArguments()
type MockCommander_DidError_OngoingVerification ¶ added in v1.3.1104
type MockCommander_DidError_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_DidError_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_DidError_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_DidError_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_DidError_OngoingVerification) GetCapturedArguments()
type MockCommander_DidFail_OngoingVerification ¶ added in v1.3.1104
type MockCommander_DidFail_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_DidFail_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_DidFail_OngoingVerification) GetCapturedArguments()
type MockCommander_Error_OngoingVerification ¶ added in v1.3.1104
type MockCommander_Error_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_Error_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_Error_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_Error_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_Error_OngoingVerification) GetCapturedArguments()
type MockCommander_RunWithoutRetry_OngoingVerification ¶ added in v1.3.1104
type MockCommander_RunWithoutRetry_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments()
type MockCommander_Run_OngoingVerification ¶ added in v1.3.1104
type MockCommander_Run_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_Run_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_Run_OngoingVerification) GetAllCapturedArguments()
func (*MockCommander_Run_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_Run_OngoingVerification) GetCapturedArguments()
type MockCommander_SetArgs_OngoingVerification ¶ added in v1.3.1104
type MockCommander_SetArgs_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_SetArgs_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetArgs_OngoingVerification) GetAllCapturedArguments() (_param0 [][]string)
func (*MockCommander_SetArgs_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetArgs_OngoingVerification) GetCapturedArguments() []string
type MockCommander_SetDir_OngoingVerification ¶ added in v1.3.1104
type MockCommander_SetDir_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_SetDir_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetDir_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*MockCommander_SetDir_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetDir_OngoingVerification) GetCapturedArguments() string
type MockCommander_SetEnvVariable_OngoingVerification ¶ added in v1.3.1104
type MockCommander_SetEnvVariable_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_SetEnvVariable_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetEnvVariable_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string)
func (*MockCommander_SetEnvVariable_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetEnvVariable_OngoingVerification) GetCapturedArguments() (string, string)
type MockCommander_SetEnv_OngoingVerification ¶ added in v1.3.1104
type MockCommander_SetEnv_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_SetEnv_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetEnv_OngoingVerification) GetAllCapturedArguments() (_param0 []map[string]string)
func (*MockCommander_SetEnv_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetEnv_OngoingVerification) GetCapturedArguments() map[string]string
type MockCommander_SetExponentialBackOff_OngoingVerification ¶ added in v1.3.1104
type MockCommander_SetExponentialBackOff_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetExponentialBackOff_OngoingVerification) GetAllCapturedArguments() (_param0 []*backoff.ExponentialBackOff)
func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetExponentialBackOff_OngoingVerification) GetCapturedArguments() *backoff.ExponentialBackOff
type MockCommander_SetName_OngoingVerification ¶ added in v1.3.1104
type MockCommander_SetName_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_SetName_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetName_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*MockCommander_SetName_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetName_OngoingVerification) GetCapturedArguments() string
type MockCommander_SetTimeout_OngoingVerification ¶ added in v1.3.1104
type MockCommander_SetTimeout_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCommander_SetTimeout_OngoingVerification) GetAllCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetTimeout_OngoingVerification) GetAllCapturedArguments() (_param0 []time.Duration)
func (*MockCommander_SetTimeout_OngoingVerification) GetCapturedArguments ¶ added in v1.3.1104
func (c *MockCommander_SetTimeout_OngoingVerification) GetCapturedArguments() time.Duration
type VerifierMockCommander ¶ added in v1.3.1104
type VerifierMockCommander struct {
// contains filtered or unexported fields
}
func (*VerifierMockCommander) CurrentArgs ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) CurrentArgs() *MockCommander_CurrentArgs_OngoingVerification
func (*VerifierMockCommander) CurrentDir ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) CurrentDir() *MockCommander_CurrentDir_OngoingVerification
func (*VerifierMockCommander) CurrentEnv ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) CurrentEnv() *MockCommander_CurrentEnv_OngoingVerification
func (*VerifierMockCommander) CurrentName ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) CurrentName() *MockCommander_CurrentName_OngoingVerification
func (*VerifierMockCommander) DidError ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) DidError() *MockCommander_DidError_OngoingVerification
func (*VerifierMockCommander) DidFail ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) DidFail() *MockCommander_DidFail_OngoingVerification
func (*VerifierMockCommander) Error ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) Error() *MockCommander_Error_OngoingVerification
func (*VerifierMockCommander) Run ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) Run() *MockCommander_Run_OngoingVerification
func (*VerifierMockCommander) RunWithoutRetry ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) RunWithoutRetry() *MockCommander_RunWithoutRetry_OngoingVerification
func (*VerifierMockCommander) SetArgs ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) SetArgs(_param0 []string) *MockCommander_SetArgs_OngoingVerification
func (*VerifierMockCommander) SetDir ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) SetDir(_param0 string) *MockCommander_SetDir_OngoingVerification
func (*VerifierMockCommander) SetEnv ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) SetEnv(_param0 map[string]string) *MockCommander_SetEnv_OngoingVerification
func (*VerifierMockCommander) SetEnvVariable ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) SetEnvVariable(_param0 string, _param1 string) *MockCommander_SetEnvVariable_OngoingVerification
func (*VerifierMockCommander) SetExponentialBackOff ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) SetExponentialBackOff(_param0 *backoff.ExponentialBackOff) *MockCommander_SetExponentialBackOff_OngoingVerification
func (*VerifierMockCommander) SetName ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) SetName(_param0 string) *MockCommander_SetName_OngoingVerification
func (*VerifierMockCommander) SetTimeout ¶ added in v1.3.1104
func (verifier *VerifierMockCommander) SetTimeout(_param0 time.Duration) *MockCommander_SetTimeout_OngoingVerification
Click to show internal directories.
Click to hide internal directories.