mocks

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBindPlane

type MockBindPlane struct {
	mock.Mock
}

MockBindPlane is an autogenerated mock type for the BindPlane type

func NewMockBindPlane

func NewMockBindPlane(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBindPlane

NewMockBindPlane creates a new instance of MockBindPlane. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockBindPlane) Agent

func (_m *MockBindPlane) Agent(ctx context.Context, id string) (*model.Agent, error)

Agent provides a mock function with given fields: ctx, id

func (*MockBindPlane) AgentInstallCommand

func (_m *MockBindPlane) AgentInstallCommand(ctx context.Context, options client.AgentInstallOptions) (string, error)

AgentInstallCommand provides a mock function with given fields: ctx, options

func (*MockBindPlane) AgentLabels

func (_m *MockBindPlane) AgentLabels(ctx context.Context, id string) (*model.Labels, error)

AgentLabels provides a mock function with given fields: ctx, id

func (*MockBindPlane) AgentUpgrade

func (_m *MockBindPlane) AgentUpgrade(ctx context.Context, id string, _a2 string) error

AgentUpgrade provides a mock function with given fields: ctx, id, _a2

func (*MockBindPlane) AgentVersion

func (_m *MockBindPlane) AgentVersion(ctx context.Context, name string) (*model.AgentVersion, error)

AgentVersion provides a mock function with given fields: ctx, name

func (*MockBindPlane) AgentVersions

func (_m *MockBindPlane) AgentVersions(ctx context.Context) ([]*model.AgentVersion, error)

AgentVersions provides a mock function with given fields: ctx

func (*MockBindPlane) Agents

func (_m *MockBindPlane) Agents(ctx context.Context, options client.QueryOptions) ([]*model.Agent, error)

Agents provides a mock function with given fields: ctx, options

func (*MockBindPlane) Apply

Apply provides a mock function with given fields: ctx, r

func (*MockBindPlane) ApplyAgentLabels

func (_m *MockBindPlane) ApplyAgentLabels(ctx context.Context, id string, labels *model.Labels, override bool) (*model.Labels, error)

ApplyAgentLabels provides a mock function with given fields: ctx, id, labels, override

func (*MockBindPlane) Configuration

func (_m *MockBindPlane) Configuration(ctx context.Context, name string) (*model.Configuration, error)

Configuration provides a mock function with given fields: ctx, name

func (*MockBindPlane) Configurations

func (_m *MockBindPlane) Configurations(ctx context.Context) ([]*model.Configuration, error)

Configurations provides a mock function with given fields: ctx

func (*MockBindPlane) CopyConfig

func (_m *MockBindPlane) CopyConfig(ctx context.Context, name string, copyName string) error

CopyConfig provides a mock function with given fields: ctx, name, copyName

func (*MockBindPlane) Delete

Delete provides a mock function with given fields: ctx, r

func (*MockBindPlane) DeleteAgentVersion

func (_m *MockBindPlane) DeleteAgentVersion(ctx context.Context, name string) error

DeleteAgentVersion provides a mock function with given fields: ctx, name

func (*MockBindPlane) DeleteAgents

func (_m *MockBindPlane) DeleteAgents(ctx context.Context, agentIDs []string) ([]*model.Agent, error)

DeleteAgents provides a mock function with given fields: ctx, agentIDs

func (*MockBindPlane) DeleteConfiguration

func (_m *MockBindPlane) DeleteConfiguration(ctx context.Context, name string) error

DeleteConfiguration provides a mock function with given fields: ctx, name

func (*MockBindPlane) DeleteDestination

func (_m *MockBindPlane) DeleteDestination(ctx context.Context, name string) error

DeleteDestination provides a mock function with given fields: ctx, name

func (*MockBindPlane) DeleteDestinationType

func (_m *MockBindPlane) DeleteDestinationType(ctx context.Context, name string) error

DeleteDestinationType provides a mock function with given fields: ctx, name

func (*MockBindPlane) DeleteProcessor

func (_m *MockBindPlane) DeleteProcessor(ctx context.Context, name string) error

DeleteProcessor provides a mock function with given fields: ctx, name

func (*MockBindPlane) DeleteProcessorType

func (_m *MockBindPlane) DeleteProcessorType(ctx context.Context, name string) error

DeleteProcessorType provides a mock function with given fields: ctx, name

func (*MockBindPlane) DeleteSource

func (_m *MockBindPlane) DeleteSource(ctx context.Context, name string) error

DeleteSource provides a mock function with given fields: ctx, name

func (*MockBindPlane) DeleteSourceType

func (_m *MockBindPlane) DeleteSourceType(ctx context.Context, name string) error

DeleteSourceType provides a mock function with given fields: ctx, name

func (*MockBindPlane) Destination

func (_m *MockBindPlane) Destination(ctx context.Context, name string) (*model.Destination, error)

Destination provides a mock function with given fields: ctx, name

func (*MockBindPlane) DestinationType

func (_m *MockBindPlane) DestinationType(ctx context.Context, name string) (*model.DestinationType, error)

DestinationType provides a mock function with given fields: ctx, name

func (*MockBindPlane) DestinationTypes

func (_m *MockBindPlane) DestinationTypes(ctx context.Context) ([]*model.DestinationType, error)

DestinationTypes provides a mock function with given fields: ctx

func (*MockBindPlane) Destinations

func (_m *MockBindPlane) Destinations(ctx context.Context) ([]*model.Destination, error)

Destinations provides a mock function with given fields: ctx

func (*MockBindPlane) PauseRollout added in v1.16.0

func (_m *MockBindPlane) PauseRollout(ctx context.Context, name string) (*model.Configuration, error)

PauseRollout provides a mock function with given fields: ctx, name

func (*MockBindPlane) Processor

func (_m *MockBindPlane) Processor(ctx context.Context, name string) (*model.Processor, error)

Processor provides a mock function with given fields: ctx, name

func (*MockBindPlane) ProcessorType

func (_m *MockBindPlane) ProcessorType(ctx context.Context, name string) (*model.ProcessorType, error)

ProcessorType provides a mock function with given fields: ctx, name

func (*MockBindPlane) ProcessorTypes

func (_m *MockBindPlane) ProcessorTypes(ctx context.Context) ([]*model.ProcessorType, error)

ProcessorTypes provides a mock function with given fields: ctx

func (*MockBindPlane) Processors

func (_m *MockBindPlane) Processors(ctx context.Context) ([]*model.Processor, error)

Processors provides a mock function with given fields: ctx

func (*MockBindPlane) RawConfiguration

func (_m *MockBindPlane) RawConfiguration(ctx context.Context, name string) (string, error)

RawConfiguration provides a mock function with given fields: ctx, name

func (*MockBindPlane) ResourceHistory added in v1.16.0

func (_m *MockBindPlane) ResourceHistory(ctx context.Context, kind model.Kind, name string) ([]*model.AnyResource, error)

ResourceHistory provides a mock function with given fields: ctx, kind, name

func (*MockBindPlane) ResumeRollout added in v1.16.0

func (_m *MockBindPlane) ResumeRollout(ctx context.Context, name string) (*model.Configuration, error)

ResumeRollout provides a mock function with given fields: ctx, name

func (*MockBindPlane) RolloutStatus added in v1.16.0

func (_m *MockBindPlane) RolloutStatus(ctx context.Context, name string) (*model.Configuration, error)

RolloutStatus provides a mock function with given fields: ctx, name

func (*MockBindPlane) Source

func (_m *MockBindPlane) Source(ctx context.Context, name string) (*model.Source, error)

Source provides a mock function with given fields: ctx, name

func (*MockBindPlane) SourceType

func (_m *MockBindPlane) SourceType(ctx context.Context, name string) (*model.SourceType, error)

SourceType provides a mock function with given fields: ctx, name

func (*MockBindPlane) SourceTypes

func (_m *MockBindPlane) SourceTypes(ctx context.Context) ([]*model.SourceType, error)

SourceTypes provides a mock function with given fields: ctx

func (*MockBindPlane) Sources

func (_m *MockBindPlane) Sources(ctx context.Context) ([]*model.Source, error)

Sources provides a mock function with given fields: ctx

func (*MockBindPlane) StartRollout added in v1.16.0

func (_m *MockBindPlane) StartRollout(ctx context.Context, name string, options *model.RolloutOptions) (*model.Configuration, error)

StartRollout provides a mock function with given fields: ctx, name, options

func (*MockBindPlane) SyncAgentVersions

func (_m *MockBindPlane) SyncAgentVersions(ctx context.Context, _a1 string) ([]*model.AnyResourceStatus, error)

SyncAgentVersions provides a mock function with given fields: ctx, _a1

func (*MockBindPlane) UpdateRollout added in v1.16.0

func (_m *MockBindPlane) UpdateRollout(ctx context.Context, name string) (*model.Configuration, error)

UpdateRollout provides a mock function with given fields: ctx, name

func (*MockBindPlane) UpdateRollouts added in v1.16.0

func (_m *MockBindPlane) UpdateRollouts(ctx context.Context) ([]*model.Configuration, error)

UpdateRollouts provides a mock function with given fields: ctx

func (*MockBindPlane) Version

func (_m *MockBindPlane) Version(ctx context.Context) (version.Version, error)

Version provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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