mocks

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

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.

func (*Client) Apply

func (_m *Client) Apply(ctx context.Context) error

Apply provides a mock function with given fields: ctx

func (*Client) GoString

func (_m *Client) GoString() string

GoString provides a mock function with given fields:

func (*Client) Init

func (_m *Client) Init(ctx context.Context) error

Init provides a mock function with given fields: ctx

func (*Client) Plan

func (_m *Client) Plan(ctx context.Context) (bool, error)

Plan provides a mock function with given fields: ctx

func (*Client) SetEnv

func (_m *Client) SetEnv(_a0 map[string]string) error

SetEnv provides a mock function with given fields: _a0

func (*Client) SetStdout

func (_m *Client) SetStdout(w io.Writer)

SetStdout provides a mock function with given fields: w

func (*Client) Validate added in v0.2.0

func (_m *Client) Validate(ctx context.Context) error

Validate provides a mock function with given fields: ctx

type ConsulClientInterface added in v0.6.0

type ConsulClientInterface struct {
	mock.Mock
}

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 (*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

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

RegisterService provides a mock function with given fields: ctx, s

func (*ConsulClientInterface) SessionCreate added in v0.7.0

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

func (*ConsulClientInterface) Unlock added in v0.7.0

func (_m *ConsulClientInterface) Unlock(l *api.Lock) error

Unlock provides a mock function with given fields: l

type ConsulClientInterface_DeregisterService_Call added in v0.7.0

type ConsulClientInterface_DeregisterService_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_DeregisterService_Call) Run added in v0.7.0

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

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

Unlock is a helper method to define mock.On call

  • l *api.Lock

type ConsulClientInterface_GetHealthChecks_Call added in v0.7.0

type ConsulClientInterface_GetHealthChecks_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_GetHealthChecks_Call) Run added in v0.7.0

type ConsulClientInterface_GetLicense_Call added in v0.7.0

type ConsulClientInterface_GetLicense_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_GetLicense_Call) Run added in v0.7.0

type ConsulClientInterface_KVGet_Call added in v0.7.0

type ConsulClientInterface_KVGet_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_KVGet_Call) Run added in v0.7.0

type ConsulClientInterface_LockOpts_Call added in v0.7.0

type ConsulClientInterface_LockOpts_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_LockOpts_Call) Run added in v0.7.0

type ConsulClientInterface_Lock_Call added in v0.7.0

type ConsulClientInterface_Lock_Call struct {
	*mock.Call
}

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

type ConsulClientInterface_QueryServices_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_QueryServices_Call) Run added in v0.7.0

type ConsulClientInterface_RegisterService_Call added in v0.7.0

type ConsulClientInterface_RegisterService_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_RegisterService_Call) Run added in v0.7.0

type ConsulClientInterface_SessionCreate_Call added in v0.7.0

type ConsulClientInterface_SessionCreate_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_SessionCreate_Call) Run added in v0.7.0

type ConsulClientInterface_SessionRenewPeriodic_Call added in v0.7.0

type ConsulClientInterface_SessionRenewPeriodic_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_SessionRenewPeriodic_Call) Run added in v0.7.0

type ConsulClientInterface_Unlock_Call added in v0.7.0

type ConsulClientInterface_Unlock_Call struct {
	*mock.Call
}

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 (*ConsulClientInterface_Unlock_Call) Run added in v0.7.0

type TerraformExec

type TerraformExec struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL