Documentation ¶
Index ¶
- type Client
- func (_m *Client) Apply(ctx context.Context) error
- func (_m *Client) GoString() string
- func (_m *Client) Init(ctx context.Context) error
- func (_m *Client) Plan(ctx context.Context) (bool, error)
- func (_m *Client) SetEnv(_a0 map[string]string) error
- func (_m *Client) SetStdout(w io.Writer)
- func (_m *Client) Validate(ctx context.Context) error
- type ConsulClientInterface
- func (_m *ConsulClientInterface) DeregisterService(ctx context.Context, serviceID string, q *api.QueryOptions) error
- func (_m *ConsulClientInterface) EXPECT() *ConsulClientInterface_Expecter
- func (_m *ConsulClientInterface) GetHealthChecks(ctx context.Context, serviceName string, q *api.QueryOptions) (api.HealthChecks, error)
- func (_m *ConsulClientInterface) GetLicense(ctx context.Context, q *api.QueryOptions) (string, error)
- func (_m *ConsulClientInterface) KVGet(ctx context.Context, key string, q *api.QueryOptions) (*api.KVPair, *api.QueryMeta, error)
- func (_m *ConsulClientInterface) Lock(l *api.Lock, stopCh <-chan struct{}) (<-chan struct{}, error)
- func (_m *ConsulClientInterface) LockOpts(opts *api.LockOptions) (*api.Lock, error)
- func (_m *ConsulClientInterface) QueryServices(ctx context.Context, filter string, q *api.QueryOptions) ([]*api.AgentService, error)
- func (_m *ConsulClientInterface) RegisterService(ctx context.Context, s *api.AgentServiceRegistration) error
- func (_m *ConsulClientInterface) SessionCreate(ctx context.Context, se *api.SessionEntry, q *api.WriteOptions) (string, *api.WriteMeta, error)
- func (_m *ConsulClientInterface) SessionRenewPeriodic(initialTTL string, id string, q *api.WriteOptions, doneCh <-chan struct{}) error
- func (_m *ConsulClientInterface) Unlock(l *api.Lock) error
- type ConsulClientInterface_DeregisterService_Call
- type ConsulClientInterface_Expecter
- func (_e *ConsulClientInterface_Expecter) DeregisterService(ctx interface{}, serviceID interface{}, q interface{}) *ConsulClientInterface_DeregisterService_Call
- func (_e *ConsulClientInterface_Expecter) GetHealthChecks(ctx interface{}, serviceName interface{}, q interface{}) *ConsulClientInterface_GetHealthChecks_Call
- func (_e *ConsulClientInterface_Expecter) GetLicense(ctx interface{}, q interface{}) *ConsulClientInterface_GetLicense_Call
- func (_e *ConsulClientInterface_Expecter) KVGet(ctx interface{}, key interface{}, q interface{}) *ConsulClientInterface_KVGet_Call
- func (_e *ConsulClientInterface_Expecter) Lock(l interface{}, stopCh interface{}) *ConsulClientInterface_Lock_Call
- func (_e *ConsulClientInterface_Expecter) LockOpts(opts interface{}) *ConsulClientInterface_LockOpts_Call
- func (_e *ConsulClientInterface_Expecter) QueryServices(ctx interface{}, filter interface{}, q interface{}) *ConsulClientInterface_QueryServices_Call
- func (_e *ConsulClientInterface_Expecter) RegisterService(ctx interface{}, s interface{}) *ConsulClientInterface_RegisterService_Call
- func (_e *ConsulClientInterface_Expecter) SessionCreate(ctx interface{}, se interface{}, q interface{}) *ConsulClientInterface_SessionCreate_Call
- func (_e *ConsulClientInterface_Expecter) SessionRenewPeriodic(initialTTL interface{}, id interface{}, q interface{}, doneCh interface{}) *ConsulClientInterface_SessionRenewPeriodic_Call
- func (_e *ConsulClientInterface_Expecter) Unlock(l interface{}) *ConsulClientInterface_Unlock_Call
- type ConsulClientInterface_GetHealthChecks_Call
- func (_c *ConsulClientInterface_GetHealthChecks_Call) Return(_a0 api.HealthChecks, _a1 error) *ConsulClientInterface_GetHealthChecks_Call
- func (_c *ConsulClientInterface_GetHealthChecks_Call) Run(run func(ctx context.Context, serviceName string, q *api.QueryOptions)) *ConsulClientInterface_GetHealthChecks_Call
- type ConsulClientInterface_GetLicense_Call
- type ConsulClientInterface_KVGet_Call
- type ConsulClientInterface_LockOpts_Call
- type ConsulClientInterface_Lock_Call
- type ConsulClientInterface_QueryServices_Call
- func (_c *ConsulClientInterface_QueryServices_Call) Return(_a0 []*api.AgentService, _a1 error) *ConsulClientInterface_QueryServices_Call
- func (_c *ConsulClientInterface_QueryServices_Call) Run(run func(ctx context.Context, filter string, q *api.QueryOptions)) *ConsulClientInterface_QueryServices_Call
- type ConsulClientInterface_RegisterService_Call
- type ConsulClientInterface_SessionCreate_Call
- func (_c *ConsulClientInterface_SessionCreate_Call) Return(_a0 string, _a1 *api.WriteMeta, _a2 error) *ConsulClientInterface_SessionCreate_Call
- func (_c *ConsulClientInterface_SessionCreate_Call) Run(run func(ctx context.Context, se *api.SessionEntry, q *api.WriteOptions)) *ConsulClientInterface_SessionCreate_Call
- type ConsulClientInterface_SessionRenewPeriodic_Call
- type ConsulClientInterface_Unlock_Call
- type TerraformExec
- func (_m *TerraformExec) Apply(ctx context.Context, opts ...tfexec.ApplyOption) error
- func (_m *TerraformExec) Init(ctx context.Context, opts ...tfexec.InitOption) error
- func (_m *TerraformExec) Plan(ctx context.Context, opts ...tfexec.PlanOption) (bool, error)
- func (_m *TerraformExec) SetEnv(env map[string]string) error
- func (_m *TerraformExec) SetStdout(w io.Writer)
- func (_m *TerraformExec) Validate(ctx context.Context) (*tfjson.ValidateOutput, error)
- func (_m *TerraformExec) WorkspaceNew(ctx context.Context, workspace string, opts ...tfexec.WorkspaceNewCmdOption) error
- func (_m *TerraformExec) WorkspaceSelect(ctx context.Context, workspace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v0.6.0
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ConsulClientInterface ¶ added in v0.6.0
ConsulClientInterface is an autogenerated mock type for the ConsulClientInterface type
func NewConsulClientInterface ¶ added in v0.6.0
func NewConsulClientInterface(t mockConstructorTestingTNewConsulClientInterface) *ConsulClientInterface
NewConsulClientInterface creates a new instance of ConsulClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConsulClientInterface) DeregisterService ¶ added in v0.6.0
func (_m *ConsulClientInterface) DeregisterService(ctx context.Context, serviceID string, q *api.QueryOptions) error
DeregisterService provides a mock function with given fields: ctx, serviceID, q
func (*ConsulClientInterface) EXPECT ¶ added in v0.7.0
func (_m *ConsulClientInterface) EXPECT() *ConsulClientInterface_Expecter
func (*ConsulClientInterface) GetHealthChecks ¶ added in v0.7.0
func (_m *ConsulClientInterface) GetHealthChecks(ctx context.Context, serviceName string, q *api.QueryOptions) (api.HealthChecks, error)
GetHealthChecks provides a mock function with given fields: ctx, serviceName, q
func (*ConsulClientInterface) GetLicense ¶ added in v0.6.0
func (_m *ConsulClientInterface) GetLicense(ctx context.Context, q *api.QueryOptions) (string, error)
GetLicense provides a mock function with given fields: ctx, q
func (*ConsulClientInterface) KVGet ¶ added in v0.7.0
func (_m *ConsulClientInterface) KVGet(ctx context.Context, key string, q *api.QueryOptions) (*api.KVPair, *api.QueryMeta, error)
KVGet provides a mock function with given fields: ctx, key, q
func (*ConsulClientInterface) Lock ¶ added in v0.7.0
func (_m *ConsulClientInterface) Lock(l *api.Lock, stopCh <-chan struct{}) (<-chan struct{}, error)
Lock provides a mock function with given fields: l, stopCh
func (*ConsulClientInterface) LockOpts ¶ added in v0.7.0
func (_m *ConsulClientInterface) LockOpts(opts *api.LockOptions) (*api.Lock, error)
LockOpts provides a mock function with given fields: opts
func (*ConsulClientInterface) QueryServices ¶ added in v0.7.0
func (_m *ConsulClientInterface) QueryServices(ctx context.Context, filter string, q *api.QueryOptions) ([]*api.AgentService, error)
QueryServices provides a mock function with given fields: ctx, filter, q
func (*ConsulClientInterface) RegisterService ¶ added in v0.6.0
func (_m *ConsulClientInterface) RegisterService(ctx context.Context, s *api.AgentServiceRegistration) error
RegisterService provides a mock function with given fields: ctx, s
func (*ConsulClientInterface) SessionCreate ¶ added in v0.7.0
func (_m *ConsulClientInterface) SessionCreate(ctx context.Context, se *api.SessionEntry, q *api.WriteOptions) (string, *api.WriteMeta, error)
SessionCreate provides a mock function with given fields: ctx, se, q
func (*ConsulClientInterface) SessionRenewPeriodic ¶ added in v0.7.0
func (_m *ConsulClientInterface) SessionRenewPeriodic(initialTTL string, id string, q *api.WriteOptions, doneCh <-chan struct{}) error
SessionRenewPeriodic provides a mock function with given fields: initialTTL, id, q, doneCh
type ConsulClientInterface_DeregisterService_Call ¶ added in v0.7.0
ConsulClientInterface_DeregisterService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeregisterService'
func (*ConsulClientInterface_DeregisterService_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_DeregisterService_Call) Return(_a0 error) *ConsulClientInterface_DeregisterService_Call
func (*ConsulClientInterface_DeregisterService_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_DeregisterService_Call) Run(run func(ctx context.Context, serviceID string, q *api.QueryOptions)) *ConsulClientInterface_DeregisterService_Call
type ConsulClientInterface_Expecter ¶ added in v0.7.0
type ConsulClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ConsulClientInterface_Expecter) DeregisterService ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) DeregisterService(ctx interface{}, serviceID interface{}, q interface{}) *ConsulClientInterface_DeregisterService_Call
DeregisterService is a helper method to define mock.On call
- ctx context.Context
- serviceID string
- q *api.QueryOptions
func (*ConsulClientInterface_Expecter) GetHealthChecks ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) GetHealthChecks(ctx interface{}, serviceName interface{}, q interface{}) *ConsulClientInterface_GetHealthChecks_Call
GetHealthChecks is a helper method to define mock.On call
- ctx context.Context
- serviceName string
- q *api.QueryOptions
func (*ConsulClientInterface_Expecter) GetLicense ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) GetLicense(ctx interface{}, q interface{}) *ConsulClientInterface_GetLicense_Call
GetLicense is a helper method to define mock.On call
- ctx context.Context
- q *api.QueryOptions
func (*ConsulClientInterface_Expecter) KVGet ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) KVGet(ctx interface{}, key interface{}, q interface{}) *ConsulClientInterface_KVGet_Call
KVGet is a helper method to define mock.On call
- ctx context.Context
- key string
- q *api.QueryOptions
func (*ConsulClientInterface_Expecter) Lock ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) Lock(l interface{}, stopCh interface{}) *ConsulClientInterface_Lock_Call
Lock is a helper method to define mock.On call
- l *api.Lock
- stopCh <-chan struct{}
func (*ConsulClientInterface_Expecter) LockOpts ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) LockOpts(opts interface{}) *ConsulClientInterface_LockOpts_Call
LockOpts is a helper method to define mock.On call
- opts *api.LockOptions
func (*ConsulClientInterface_Expecter) QueryServices ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) QueryServices(ctx interface{}, filter interface{}, q interface{}) *ConsulClientInterface_QueryServices_Call
QueryServices is a helper method to define mock.On call
- ctx context.Context
- filter string
- q *api.QueryOptions
func (*ConsulClientInterface_Expecter) RegisterService ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) RegisterService(ctx interface{}, s interface{}) *ConsulClientInterface_RegisterService_Call
RegisterService is a helper method to define mock.On call
- ctx context.Context
- s *api.AgentServiceRegistration
func (*ConsulClientInterface_Expecter) SessionCreate ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) SessionCreate(ctx interface{}, se interface{}, q interface{}) *ConsulClientInterface_SessionCreate_Call
SessionCreate is a helper method to define mock.On call
- ctx context.Context
- se *api.SessionEntry
- q *api.WriteOptions
func (*ConsulClientInterface_Expecter) SessionRenewPeriodic ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) SessionRenewPeriodic(initialTTL interface{}, id interface{}, q interface{}, doneCh interface{}) *ConsulClientInterface_SessionRenewPeriodic_Call
SessionRenewPeriodic is a helper method to define mock.On call
- initialTTL string
- id string
- q *api.WriteOptions
- doneCh <-chan struct{}
func (*ConsulClientInterface_Expecter) Unlock ¶ added in v0.7.0
func (_e *ConsulClientInterface_Expecter) Unlock(l interface{}) *ConsulClientInterface_Unlock_Call
Unlock is a helper method to define mock.On call
- l *api.Lock
type ConsulClientInterface_GetHealthChecks_Call ¶ added in v0.7.0
ConsulClientInterface_GetHealthChecks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHealthChecks'
func (*ConsulClientInterface_GetHealthChecks_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_GetHealthChecks_Call) Return(_a0 api.HealthChecks, _a1 error) *ConsulClientInterface_GetHealthChecks_Call
func (*ConsulClientInterface_GetHealthChecks_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_GetHealthChecks_Call) Run(run func(ctx context.Context, serviceName string, q *api.QueryOptions)) *ConsulClientInterface_GetHealthChecks_Call
type ConsulClientInterface_GetLicense_Call ¶ added in v0.7.0
ConsulClientInterface_GetLicense_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLicense'
func (*ConsulClientInterface_GetLicense_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_GetLicense_Call) Return(_a0 string, _a1 error) *ConsulClientInterface_GetLicense_Call
func (*ConsulClientInterface_GetLicense_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_GetLicense_Call) Run(run func(ctx context.Context, q *api.QueryOptions)) *ConsulClientInterface_GetLicense_Call
type ConsulClientInterface_KVGet_Call ¶ added in v0.7.0
ConsulClientInterface_KVGet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVGet'
func (*ConsulClientInterface_KVGet_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_KVGet_Call) Return(_a0 *api.KVPair, _a1 *api.QueryMeta, _a2 error) *ConsulClientInterface_KVGet_Call
func (*ConsulClientInterface_KVGet_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_KVGet_Call) Run(run func(ctx context.Context, key string, q *api.QueryOptions)) *ConsulClientInterface_KVGet_Call
type ConsulClientInterface_LockOpts_Call ¶ added in v0.7.0
ConsulClientInterface_LockOpts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LockOpts'
func (*ConsulClientInterface_LockOpts_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_LockOpts_Call) Return(_a0 *api.Lock, _a1 error) *ConsulClientInterface_LockOpts_Call
func (*ConsulClientInterface_LockOpts_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_LockOpts_Call) Run(run func(opts *api.LockOptions)) *ConsulClientInterface_LockOpts_Call
type ConsulClientInterface_Lock_Call ¶ added in v0.7.0
ConsulClientInterface_Lock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lock'
func (*ConsulClientInterface_Lock_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_Lock_Call) Return(_a0 <-chan struct{}, _a1 error) *ConsulClientInterface_Lock_Call
func (*ConsulClientInterface_Lock_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_Lock_Call) Run(run func(l *api.Lock, stopCh <-chan struct{})) *ConsulClientInterface_Lock_Call
type ConsulClientInterface_QueryServices_Call ¶ added in v0.7.0
ConsulClientInterface_QueryServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryServices'
func (*ConsulClientInterface_QueryServices_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_QueryServices_Call) Return(_a0 []*api.AgentService, _a1 error) *ConsulClientInterface_QueryServices_Call
func (*ConsulClientInterface_QueryServices_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_QueryServices_Call) Run(run func(ctx context.Context, filter string, q *api.QueryOptions)) *ConsulClientInterface_QueryServices_Call
type ConsulClientInterface_RegisterService_Call ¶ added in v0.7.0
ConsulClientInterface_RegisterService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterService'
func (*ConsulClientInterface_RegisterService_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_RegisterService_Call) Return(_a0 error) *ConsulClientInterface_RegisterService_Call
func (*ConsulClientInterface_RegisterService_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_RegisterService_Call) Run(run func(ctx context.Context, s *api.AgentServiceRegistration)) *ConsulClientInterface_RegisterService_Call
type ConsulClientInterface_SessionCreate_Call ¶ added in v0.7.0
ConsulClientInterface_SessionCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SessionCreate'
func (*ConsulClientInterface_SessionCreate_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_SessionCreate_Call) Return(_a0 string, _a1 *api.WriteMeta, _a2 error) *ConsulClientInterface_SessionCreate_Call
func (*ConsulClientInterface_SessionCreate_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_SessionCreate_Call) Run(run func(ctx context.Context, se *api.SessionEntry, q *api.WriteOptions)) *ConsulClientInterface_SessionCreate_Call
type ConsulClientInterface_SessionRenewPeriodic_Call ¶ added in v0.7.0
ConsulClientInterface_SessionRenewPeriodic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SessionRenewPeriodic'
func (*ConsulClientInterface_SessionRenewPeriodic_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_SessionRenewPeriodic_Call) Return(_a0 error) *ConsulClientInterface_SessionRenewPeriodic_Call
func (*ConsulClientInterface_SessionRenewPeriodic_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_SessionRenewPeriodic_Call) Run(run func(initialTTL string, id string, q *api.WriteOptions, doneCh <-chan struct{})) *ConsulClientInterface_SessionRenewPeriodic_Call
type ConsulClientInterface_Unlock_Call ¶ added in v0.7.0
ConsulClientInterface_Unlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unlock'
func (*ConsulClientInterface_Unlock_Call) Return ¶ added in v0.7.0
func (_c *ConsulClientInterface_Unlock_Call) Return(_a0 error) *ConsulClientInterface_Unlock_Call
func (*ConsulClientInterface_Unlock_Call) Run ¶ added in v0.7.0
func (_c *ConsulClientInterface_Unlock_Call) Run(run func(l *api.Lock)) *ConsulClientInterface_Unlock_Call
type TerraformExec ¶
TerraformExec is an autogenerated mock type for the terraformExec type
func NewTerraformExec ¶ added in v0.6.0
func NewTerraformExec(t mockConstructorTestingTNewTerraformExec) *TerraformExec
NewTerraformExec creates a new instance of TerraformExec. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TerraformExec) Apply ¶
func (_m *TerraformExec) Apply(ctx context.Context, opts ...tfexec.ApplyOption) error
Apply provides a mock function with given fields: ctx, opts
func (*TerraformExec) Init ¶
func (_m *TerraformExec) Init(ctx context.Context, opts ...tfexec.InitOption) error
Init provides a mock function with given fields: ctx, opts
func (*TerraformExec) Plan ¶
func (_m *TerraformExec) Plan(ctx context.Context, opts ...tfexec.PlanOption) (bool, error)
Plan provides a mock function with given fields: ctx, opts
func (*TerraformExec) SetEnv ¶
func (_m *TerraformExec) SetEnv(env map[string]string) error
SetEnv provides a mock function with given fields: env
func (*TerraformExec) SetStdout ¶
func (_m *TerraformExec) SetStdout(w io.Writer)
SetStdout provides a mock function with given fields: w
func (*TerraformExec) Validate ¶ added in v0.2.0
func (_m *TerraformExec) Validate(ctx context.Context) (*tfjson.ValidateOutput, error)
Validate provides a mock function with given fields: ctx
func (*TerraformExec) WorkspaceNew ¶
func (_m *TerraformExec) WorkspaceNew(ctx context.Context, workspace string, opts ...tfexec.WorkspaceNewCmdOption) error
WorkspaceNew provides a mock function with given fields: ctx, workspace, opts
func (*TerraformExec) WorkspaceSelect ¶
func (_m *TerraformExec) WorkspaceSelect(ctx context.Context, workspace string) error
WorkspaceSelect provides a mock function with given fields: ctx, workspace