mock_platforms

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mock_platforms is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIContainer

type MockIContainer struct {
	// contains filtered or unexported fields
}

MockIContainer is a mock of IContainer interface.

func NewMockIContainer

func NewMockIContainer(ctrl *gomock.Controller) *MockIContainer

NewMockIContainer creates a new mock instance.

func (*MockIContainer) Delete

func (m *MockIContainer) Delete() error

Delete mocks base method.

func (*MockIContainer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIContainer) Exec

func (m *MockIContainer) Exec(command []string) (types.ExecResult, error)

Exec mocks base method.

func (*MockIContainer) GetDefinition

func (m *MockIContainer) GetDefinition() contracts.IDefinition

GetDefinition mocks base method.

func (*MockIContainer) GetDomain

func (m *MockIContainer) GetDomain(network string) string

GetDomain mocks base method.

func (*MockIContainer) GetGeneratedName

func (m *MockIContainer) GetGeneratedName() string

GetGeneratedName mocks base method.

func (*MockIContainer) GetGroup

func (m *MockIContainer) GetGroup() string

GetGroup mocks base method.

func (*MockIContainer) GetGroupIdentifier

func (m *MockIContainer) GetGroupIdentifier() string

GetGroupIdentifier mocks base method.

func (*MockIContainer) GetHeadlessDomain

func (m *MockIContainer) GetHeadlessDomain(network string) string

GetHeadlessDomain mocks base method.

func (*MockIContainer) GetId

func (m *MockIContainer) GetId() string

GetId mocks base method.

func (*MockIContainer) GetLabels

func (m *MockIContainer) GetLabels() map[string]string

GetLabels mocks base method.

func (*MockIContainer) GetName

func (m *MockIContainer) GetName() string

GetName mocks base method.

func (*MockIContainer) GetNode

func (m *MockIContainer) GetNode() uint64

GetNode mocks base method.

func (*MockIContainer) GetNodeName

func (m *MockIContainer) GetNodeName() string

GetNodeName mocks base method.

func (*MockIContainer) GetRuntime

func (m *MockIContainer) GetRuntime() *types.Runtime

GetRuntime mocks base method.

func (*MockIContainer) GetState

func (m *MockIContainer) GetState() (state.State, error)

GetState mocks base method.

func (*MockIContainer) GetStatus

func (m *MockIContainer) GetStatus() *status.Status

GetStatus mocks base method.

func (*MockIContainer) HasDependencyOn

func (m *MockIContainer) HasDependencyOn(arg0, arg1, arg2 string) bool

HasDependencyOn mocks base method.

func (*MockIContainer) HasOwner

func (m *MockIContainer) HasOwner() bool

HasOwner mocks base method.

func (*MockIContainer) IsGhost

func (m *MockIContainer) IsGhost() bool

IsGhost mocks base method.

func (*MockIContainer) Kill

func (m *MockIContainer) Kill(signal string) error

Kill mocks base method.

func (*MockIContainer) Logs

func (m *MockIContainer) Logs(arg0 bool) (io.ReadCloser, error)

Logs mocks base method.

func (*MockIContainer) PostRun

func (m *MockIContainer) PostRun(config *configuration.Configuration, dnsCache *dns.Records) error

PostRun mocks base method.

func (*MockIContainer) PreRun

func (m *MockIContainer) PreRun(config *configuration.Configuration, client *client.Http, user *authentication.User) error

PreRun mocks base method.

func (*MockIContainer) RemoveDns

func (m *MockIContainer) RemoveDns(dnsCache *dns.Records, networkId string) error

RemoveDns mocks base method.

func (*MockIContainer) Rename

func (m *MockIContainer) Rename(newName string) error

Rename mocks base method.

func (*MockIContainer) Restart

func (m *MockIContainer) Restart() error

Restart mocks base method.

func (*MockIContainer) Run

func (m *MockIContainer) Run() error

Run mocks base method.

func (*MockIContainer) SetGhost

func (m *MockIContainer) SetGhost(arg0 bool)

SetGhost mocks base method.

func (*MockIContainer) Start

func (m *MockIContainer) Start() error

Start mocks base method.

func (*MockIContainer) Stop

func (m *MockIContainer) Stop(signal string) error

Stop mocks base method.

func (*MockIContainer) SyncNetwork

func (m *MockIContainer) SyncNetwork() error

SyncNetwork mocks base method.

func (*MockIContainer) ToJson

func (m *MockIContainer) ToJson() ([]byte, error)

ToJson mocks base method.

func (*MockIContainer) UpdateDns

func (m *MockIContainer) UpdateDns(dnsCache *dns.Records) error

UpdateDns mocks base method.

type MockIContainerMockRecorder

type MockIContainerMockRecorder struct {
	// contains filtered or unexported fields
}

MockIContainerMockRecorder is the mock recorder for MockIContainer.

func (*MockIContainerMockRecorder) Delete

func (mr *MockIContainerMockRecorder) Delete() *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIContainerMockRecorder) Exec

func (mr *MockIContainerMockRecorder) Exec(command any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockIContainerMockRecorder) GetDefinition

func (mr *MockIContainerMockRecorder) GetDefinition() *gomock.Call

GetDefinition indicates an expected call of GetDefinition.

func (*MockIContainerMockRecorder) GetDomain

func (mr *MockIContainerMockRecorder) GetDomain(network any) *gomock.Call

GetDomain indicates an expected call of GetDomain.

func (*MockIContainerMockRecorder) GetGeneratedName

func (mr *MockIContainerMockRecorder) GetGeneratedName() *gomock.Call

GetGeneratedName indicates an expected call of GetGeneratedName.

func (*MockIContainerMockRecorder) GetGroup

func (mr *MockIContainerMockRecorder) GetGroup() *gomock.Call

GetGroup indicates an expected call of GetGroup.

func (*MockIContainerMockRecorder) GetGroupIdentifier

func (mr *MockIContainerMockRecorder) GetGroupIdentifier() *gomock.Call

GetGroupIdentifier indicates an expected call of GetGroupIdentifier.

func (*MockIContainerMockRecorder) GetHeadlessDomain

func (mr *MockIContainerMockRecorder) GetHeadlessDomain(network any) *gomock.Call

GetHeadlessDomain indicates an expected call of GetHeadlessDomain.

func (*MockIContainerMockRecorder) GetId

func (mr *MockIContainerMockRecorder) GetId() *gomock.Call

GetId indicates an expected call of GetId.

func (*MockIContainerMockRecorder) GetLabels

func (mr *MockIContainerMockRecorder) GetLabels() *gomock.Call

GetLabels indicates an expected call of GetLabels.

func (*MockIContainerMockRecorder) GetName

func (mr *MockIContainerMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockIContainerMockRecorder) GetNode

func (mr *MockIContainerMockRecorder) GetNode() *gomock.Call

GetNode indicates an expected call of GetNode.

func (*MockIContainerMockRecorder) GetNodeName

func (mr *MockIContainerMockRecorder) GetNodeName() *gomock.Call

GetNodeName indicates an expected call of GetNodeName.

func (*MockIContainerMockRecorder) GetRuntime

func (mr *MockIContainerMockRecorder) GetRuntime() *gomock.Call

GetRuntime indicates an expected call of GetRuntime.

func (*MockIContainerMockRecorder) GetState

func (mr *MockIContainerMockRecorder) GetState() *gomock.Call

GetState indicates an expected call of GetState.

func (*MockIContainerMockRecorder) GetStatus

func (mr *MockIContainerMockRecorder) GetStatus() *gomock.Call

GetStatus indicates an expected call of GetStatus.

func (*MockIContainerMockRecorder) HasDependencyOn

func (mr *MockIContainerMockRecorder) HasDependencyOn(arg0, arg1, arg2 any) *gomock.Call

HasDependencyOn indicates an expected call of HasDependencyOn.

func (*MockIContainerMockRecorder) HasOwner

func (mr *MockIContainerMockRecorder) HasOwner() *gomock.Call

HasOwner indicates an expected call of HasOwner.

func (*MockIContainerMockRecorder) IsGhost

func (mr *MockIContainerMockRecorder) IsGhost() *gomock.Call

IsGhost indicates an expected call of IsGhost.

func (*MockIContainerMockRecorder) Kill

func (mr *MockIContainerMockRecorder) Kill(signal any) *gomock.Call

Kill indicates an expected call of Kill.

func (*MockIContainerMockRecorder) Logs

func (mr *MockIContainerMockRecorder) Logs(arg0 any) *gomock.Call

Logs indicates an expected call of Logs.

func (*MockIContainerMockRecorder) PostRun

func (mr *MockIContainerMockRecorder) PostRun(config, dnsCache any) *gomock.Call

PostRun indicates an expected call of PostRun.

func (*MockIContainerMockRecorder) PreRun

func (mr *MockIContainerMockRecorder) PreRun(config, client, user any) *gomock.Call

PreRun indicates an expected call of PreRun.

func (*MockIContainerMockRecorder) RemoveDns

func (mr *MockIContainerMockRecorder) RemoveDns(dnsCache, networkId any) *gomock.Call

RemoveDns indicates an expected call of RemoveDns.

func (*MockIContainerMockRecorder) Rename

func (mr *MockIContainerMockRecorder) Rename(newName any) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockIContainerMockRecorder) Restart

func (mr *MockIContainerMockRecorder) Restart() *gomock.Call

Restart indicates an expected call of Restart.

func (*MockIContainerMockRecorder) Run

Run indicates an expected call of Run.

func (*MockIContainerMockRecorder) SetGhost

func (mr *MockIContainerMockRecorder) SetGhost(arg0 any) *gomock.Call

SetGhost indicates an expected call of SetGhost.

func (*MockIContainerMockRecorder) Start

func (mr *MockIContainerMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockIContainerMockRecorder) Stop

func (mr *MockIContainerMockRecorder) Stop(signal any) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockIContainerMockRecorder) SyncNetwork

func (mr *MockIContainerMockRecorder) SyncNetwork() *gomock.Call

SyncNetwork indicates an expected call of SyncNetwork.

func (*MockIContainerMockRecorder) ToJson

func (mr *MockIContainerMockRecorder) ToJson() *gomock.Call

ToJson indicates an expected call of ToJson.

func (*MockIContainerMockRecorder) UpdateDns

func (mr *MockIContainerMockRecorder) UpdateDns(dnsCache any) *gomock.Call

UpdateDns indicates an expected call of UpdateDns.

type MockIPlatform

type MockIPlatform struct {
	// contains filtered or unexported fields
}

MockIPlatform is a mock of IPlatform interface.

func NewMockIPlatform

func NewMockIPlatform(ctrl *gomock.Controller) *MockIPlatform

NewMockIPlatform creates a new mock instance.

func (*MockIPlatform) Delete

func (m *MockIPlatform) Delete() error

Delete mocks base method.

func (*MockIPlatform) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIPlatform) Exec

func (m *MockIPlatform) Exec(command []string) (types.ExecResult, error)

Exec mocks base method.

func (*MockIPlatform) GetDefinition

func (m *MockIPlatform) GetDefinition() contracts.IDefinition

GetDefinition mocks base method.

func (*MockIPlatform) GetDomain

func (m *MockIPlatform) GetDomain(networkName string) string

GetDomain mocks base method.

func (*MockIPlatform) GetGeneratedName

func (m *MockIPlatform) GetGeneratedName() string

GetGeneratedName mocks base method.

func (*MockIPlatform) GetGroup

func (m *MockIPlatform) GetGroup() string

GetGroup mocks base method.

func (*MockIPlatform) GetGroupIdentifier

func (m *MockIPlatform) GetGroupIdentifier() string

GetGroupIdentifier mocks base method.

func (*MockIPlatform) GetHeadlessDomain

func (m *MockIPlatform) GetHeadlessDomain(networkName string) string

GetHeadlessDomain mocks base method.

func (*MockIPlatform) GetId

func (m *MockIPlatform) GetId() string

GetId mocks base method.

func (*MockIPlatform) GetName

func (m *MockIPlatform) GetName() string

GetName mocks base method.

func (*MockIPlatform) GetState

func (m *MockIPlatform) GetState() (state.State, error)

GetState mocks base method.

func (*MockIPlatform) Kill

func (m *MockIPlatform) Kill(signal string) error

Kill mocks base method.

func (*MockIPlatform) Logs

func (m *MockIPlatform) Logs(arg0 bool) (io.ReadCloser, error)

Logs mocks base method.

func (*MockIPlatform) PostRun

func (m *MockIPlatform) PostRun(config *configuration.Configuration, dnsCache *dns.Records) error

PostRun mocks base method.

func (*MockIPlatform) PreRun

func (m *MockIPlatform) PreRun(config *configuration.Configuration, client *client.Http, user *authentication.User, runtime *types.Runtime) error

PreRun mocks base method.

func (*MockIPlatform) RemoveDns

func (m *MockIPlatform) RemoveDns(dnsCache *dns.Records, networkId string) error

RemoveDns mocks base method.

func (*MockIPlatform) Rename

func (m *MockIPlatform) Rename(newName string) error

Rename mocks base method.

func (*MockIPlatform) Restart

func (m *MockIPlatform) Restart() error

Restart mocks base method.

func (*MockIPlatform) Run

func (m *MockIPlatform) Run() error

Run mocks base method.

func (*MockIPlatform) Start

func (m *MockIPlatform) Start() error

Start mocks base method.

func (*MockIPlatform) Stop

func (m *MockIPlatform) Stop(signal string) error

Stop mocks base method.

func (*MockIPlatform) SyncNetwork

func (m *MockIPlatform) SyncNetwork() error

SyncNetwork mocks base method.

func (*MockIPlatform) ToJson

func (m *MockIPlatform) ToJson() ([]byte, error)

ToJson mocks base method.

func (*MockIPlatform) UpdateDns

func (m *MockIPlatform) UpdateDns(dnsCache *dns.Records) error

UpdateDns mocks base method.

type MockIPlatformMockRecorder

type MockIPlatformMockRecorder struct {
	// contains filtered or unexported fields
}

MockIPlatformMockRecorder is the mock recorder for MockIPlatform.

func (*MockIPlatformMockRecorder) Delete

func (mr *MockIPlatformMockRecorder) Delete() *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIPlatformMockRecorder) Exec

func (mr *MockIPlatformMockRecorder) Exec(command any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockIPlatformMockRecorder) GetDefinition

func (mr *MockIPlatformMockRecorder) GetDefinition() *gomock.Call

GetDefinition indicates an expected call of GetDefinition.

func (*MockIPlatformMockRecorder) GetDomain

func (mr *MockIPlatformMockRecorder) GetDomain(networkName any) *gomock.Call

GetDomain indicates an expected call of GetDomain.

func (*MockIPlatformMockRecorder) GetGeneratedName

func (mr *MockIPlatformMockRecorder) GetGeneratedName() *gomock.Call

GetGeneratedName indicates an expected call of GetGeneratedName.

func (*MockIPlatformMockRecorder) GetGroup

func (mr *MockIPlatformMockRecorder) GetGroup() *gomock.Call

GetGroup indicates an expected call of GetGroup.

func (*MockIPlatformMockRecorder) GetGroupIdentifier

func (mr *MockIPlatformMockRecorder) GetGroupIdentifier() *gomock.Call

GetGroupIdentifier indicates an expected call of GetGroupIdentifier.

func (*MockIPlatformMockRecorder) GetHeadlessDomain

func (mr *MockIPlatformMockRecorder) GetHeadlessDomain(networkName any) *gomock.Call

GetHeadlessDomain indicates an expected call of GetHeadlessDomain.

func (*MockIPlatformMockRecorder) GetId

func (mr *MockIPlatformMockRecorder) GetId() *gomock.Call

GetId indicates an expected call of GetId.

func (*MockIPlatformMockRecorder) GetName

func (mr *MockIPlatformMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockIPlatformMockRecorder) GetState

func (mr *MockIPlatformMockRecorder) GetState() *gomock.Call

GetState indicates an expected call of GetState.

func (*MockIPlatformMockRecorder) Kill

func (mr *MockIPlatformMockRecorder) Kill(signal any) *gomock.Call

Kill indicates an expected call of Kill.

func (*MockIPlatformMockRecorder) Logs

func (mr *MockIPlatformMockRecorder) Logs(arg0 any) *gomock.Call

Logs indicates an expected call of Logs.

func (*MockIPlatformMockRecorder) PostRun

func (mr *MockIPlatformMockRecorder) PostRun(config, dnsCache any) *gomock.Call

PostRun indicates an expected call of PostRun.

func (*MockIPlatformMockRecorder) PreRun

func (mr *MockIPlatformMockRecorder) PreRun(config, client, user, runtime any) *gomock.Call

PreRun indicates an expected call of PreRun.

func (*MockIPlatformMockRecorder) RemoveDns

func (mr *MockIPlatformMockRecorder) RemoveDns(dnsCache, networkId any) *gomock.Call

RemoveDns indicates an expected call of RemoveDns.

func (*MockIPlatformMockRecorder) Rename

func (mr *MockIPlatformMockRecorder) Rename(newName any) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockIPlatformMockRecorder) Restart

func (mr *MockIPlatformMockRecorder) Restart() *gomock.Call

Restart indicates an expected call of Restart.

func (*MockIPlatformMockRecorder) Run

Run indicates an expected call of Run.

func (*MockIPlatformMockRecorder) Start

func (mr *MockIPlatformMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockIPlatformMockRecorder) Stop

func (mr *MockIPlatformMockRecorder) Stop(signal any) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockIPlatformMockRecorder) SyncNetwork

func (mr *MockIPlatformMockRecorder) SyncNetwork() *gomock.Call

SyncNetwork indicates an expected call of SyncNetwork.

func (*MockIPlatformMockRecorder) ToJson

func (mr *MockIPlatformMockRecorder) ToJson() *gomock.Call

ToJson indicates an expected call of ToJson.

func (*MockIPlatformMockRecorder) UpdateDns

func (mr *MockIPlatformMockRecorder) UpdateDns(dnsCache any) *gomock.Call

UpdateDns indicates an expected call of UpdateDns.

type MockRegistry

type MockRegistry struct {
	// contains filtered or unexported fields
}

MockRegistry is a mock of Registry interface.

func NewMockRegistry

func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry

NewMockRegistry creates a new mock instance.

func (*MockRegistry) AddOrUpdate

func (m *MockRegistry) AddOrUpdate(group, name string, containerAddr platforms.IContainer)

AddOrUpdate mocks base method.

func (*MockRegistry) BackOff

func (m *MockRegistry) BackOff(group, name string) error

BackOff mocks base method.

func (*MockRegistry) BackOffReset

func (m *MockRegistry) BackOffReset(group, name string)

BackOffReset mocks base method.

func (*MockRegistry) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRegistry) Find

func (m *MockRegistry) Find(prefix, group, name string) platforms.IContainer

Find mocks base method.

func (*MockRegistry) FindGroup

func (m *MockRegistry) FindGroup(prefix, group string) []platforms.IContainer

FindGroup mocks base method.

func (*MockRegistry) FindLocal

func (m *MockRegistry) FindLocal(group, name string) platforms.IContainer

FindLocal mocks base method.

func (*MockRegistry) GetIndexes

func (m *MockRegistry) GetIndexes(group, name string) []uint64

GetIndexes mocks base method.

func (*MockRegistry) Name

func (m *MockRegistry) Name(client *client.Http, group, name string) (string, []uint64)

Name mocks base method.

func (*MockRegistry) NameReplica

func (m *MockRegistry) NameReplica(group, name string, index uint64) string

NameReplica mocks base method.

func (*MockRegistry) Remove

func (m *MockRegistry) Remove(prefix, group, name string) error

Remove mocks base method.

func (*MockRegistry) Sync

func (m *MockRegistry) Sync(group, name string) error

Sync mocks base method.

type MockRegistryMockRecorder

type MockRegistryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRegistryMockRecorder is the mock recorder for MockRegistry.

func (*MockRegistryMockRecorder) AddOrUpdate

func (mr *MockRegistryMockRecorder) AddOrUpdate(group, name, containerAddr any) *gomock.Call

AddOrUpdate indicates an expected call of AddOrUpdate.

func (*MockRegistryMockRecorder) BackOff

func (mr *MockRegistryMockRecorder) BackOff(group, name any) *gomock.Call

BackOff indicates an expected call of BackOff.

func (*MockRegistryMockRecorder) BackOffReset

func (mr *MockRegistryMockRecorder) BackOffReset(group, name any) *gomock.Call

BackOffReset indicates an expected call of BackOffReset.

func (*MockRegistryMockRecorder) Find

func (mr *MockRegistryMockRecorder) Find(prefix, group, name any) *gomock.Call

Find indicates an expected call of Find.

func (*MockRegistryMockRecorder) FindGroup

func (mr *MockRegistryMockRecorder) FindGroup(prefix, group any) *gomock.Call

FindGroup indicates an expected call of FindGroup.

func (*MockRegistryMockRecorder) FindLocal

func (mr *MockRegistryMockRecorder) FindLocal(group, name any) *gomock.Call

FindLocal indicates an expected call of FindLocal.

func (*MockRegistryMockRecorder) GetIndexes

func (mr *MockRegistryMockRecorder) GetIndexes(group, name any) *gomock.Call

GetIndexes indicates an expected call of GetIndexes.

func (*MockRegistryMockRecorder) Name

func (mr *MockRegistryMockRecorder) Name(client, group, name any) *gomock.Call

Name indicates an expected call of Name.

func (*MockRegistryMockRecorder) NameReplica

func (mr *MockRegistryMockRecorder) NameReplica(group, name, index any) *gomock.Call

NameReplica indicates an expected call of NameReplica.

func (*MockRegistryMockRecorder) Remove

func (mr *MockRegistryMockRecorder) Remove(prefix, group, name any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockRegistryMockRecorder) Sync

func (mr *MockRegistryMockRecorder) Sync(group, name any) *gomock.Call

Sync indicates an expected call of Sync.

Jump to

Keyboard shortcuts

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