fake

package
v0.0.0-...-a4d1c61 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

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

Fake is a fake store.Store implementation.

func NewDefaultFakeStore

func NewDefaultFakeStore() *Fake

NewDefaultFakeStore initializes a new fake store implementation using default fake configuration providers. This provider uses the mock library

func NewFakeStore

func NewFakeStore(machines *Machines, orchestrator *Orchestrator, ignition *Ign) *Fake

NewFakeStore initializes a new fake store implementation using fake configuration providers. This provider uses the mock library

func (*Fake) Ignition

func (f *Fake) Ignition() store.Ignition

Ignition mocks the Ignition store.

func (*Fake) Machines

func (f *Fake) Machines() store.Machines

Machines mocks the Machine store.

func (*Fake) Orchestrator

func (f *Fake) Orchestrator() store.Orchestrator

Orchestrator mocks the Orchestrator store.

type Ign

type Ign struct {
	*mock.Mock
}

Ign is a fake store.Ignition implementation.

func NewFakeIgnition

func NewFakeIgnition() *Ign

NewFakeIgnition initializes a fake store.Ignition implementation.

func (*Ign) AccessKeyLabel

func (f *Ign) AccessKeyLabel() string

AccessKeyLabel mocks the AccessKeyLabel method.

func (*Ign) DefaultRecipients

func (f *Ign) DefaultRecipients() []string

DefaultRecipients mocks the DefaultRecipients method.

func (*Ign) DefaultSender

func (f *Ign) DefaultSender() string

DefaultSender mocks the DefaultSender method.

func (*Ign) GazeboServerLogsPath

func (f *Ign) GazeboServerLogsPath() string

GazeboServerLogsPath mocks the GazeboServerLogsPath method.

func (*Ign) GetWebsocketPath

func (f *Ign) GetWebsocketPath(groupID simulations.GroupID) string

GetWebsocketPath mocks the GetWebsocketPath method.

func (*Ign) IP

func (f *Ign) IP() string

IP mocks the IP method.

func (*Ign) LogsBucket

func (f *Ign) LogsBucket() string

LogsBucket mocks the LogsBucket method.

func (*Ign) LogsCopyEnabled

func (f *Ign) LogsCopyEnabled() bool

LogsCopyEnabled mocks the LogsCopyEnabled method.

func (*Ign) ROSLogsPath

func (f *Ign) ROSLogsPath() string

ROSLogsPath mocks the ROSLogsPath method.

func (*Ign) Region

func (f *Ign) Region() string

Region mocks the Region method.

func (*Ign) SecretAccessKeyLabel

func (f *Ign) SecretAccessKeyLabel() string

SecretAccessKeyLabel mocks the SecretAccessKeyLabel method.

func (*Ign) SecretsName

func (f *Ign) SecretsName() string

SecretsName mocks the SecretsName method.

func (*Ign) SidecarContainerLogsPath

func (f *Ign) SidecarContainerLogsPath() string

SidecarContainerLogsPath mocks the SidecarContainerLogsPath method.

func (*Ign) Verbosity

func (f *Ign) Verbosity() string

Verbosity mocks the Verbosity method.

type Machines

type Machines struct {
	*mock.Mock
}

Machines is a fake store.Machines implementation.

func NewFakeMachines

func NewFakeMachines() *Machines

NewFakeMachines initializes a new store.Machines implementation.

func (Machines) BaseImage

func (f Machines) BaseImage() string

BaseImage mocks the BaseImage method.

func (Machines) BaseImageGPU

func (f Machines) BaseImageGPU() string

BaseImageGPU mocks the BaseImageGPU method.

func (Machines) ClusterName

func (f Machines) ClusterName() string

ClusterName mocks the ClusterName method.

func (Machines) FirewallRules

func (f Machines) FirewallRules() []string

FirewallRules mocks the FirewallRules method.

func (Machines) InstanceProfile

func (f Machines) InstanceProfile() *string

InstanceProfile mocks the InstanceProfile method.

func (Machines) KeyName

func (f Machines) KeyName() string

KeyName mocks the KeyName method.

func (Machines) Limit

func (f Machines) Limit() int

Limit mocks the Limit method.

func (Machines) NamePrefix

func (f Machines) NamePrefix() string

NamePrefix mocks the NamePrefix method.

func (Machines) PollFrequency

func (f Machines) PollFrequency() time.Duration

PollFrequency mocks the PollFrequency method.

func (Machines) SidecarType

func (f Machines) SidecarType() string

SidecarType mocks the SidecarType method.

func (Machines) Timeout

func (f Machines) Timeout() time.Duration

Timeout mocks the Timeout method.

func (Machines) Type

func (f Machines) Type() string

Type mocks the Type method.

type Orchestrator

type Orchestrator struct {
	*mock.Mock
}

Orchestrator is a fake store.Orchestrator implementation.

func NewFakeOrchestrator

func NewFakeOrchestrator() *Orchestrator

NewFakeOrchestrator initializes a new store.Orchestrator implementation.

func (Orchestrator) IngressHost

func (f Orchestrator) IngressHost() string

IngressHost mocks the IngressHost method.

func (Orchestrator) IngressName

func (f Orchestrator) IngressName() string

IngressName mocks the IngressName method.

func (Orchestrator) IngressNamespace

func (f Orchestrator) IngressNamespace() string

IngressNamespace mocks the IngressNamespace method.

func (Orchestrator) Nameservers

func (f Orchestrator) Nameservers() []string

Nameservers mocks the Nameservers method.

func (Orchestrator) Namespace

func (f Orchestrator) Namespace() string

Namespace mocks the Namespace method.

func (Orchestrator) PollFrequency

func (f Orchestrator) PollFrequency() time.Duration

PollFrequency mocks the PollFrequency method.

func (Orchestrator) TerminationGracePeriod

func (f Orchestrator) TerminationGracePeriod() time.Duration

TerminationGracePeriod mocks the TerminationGracePeriod method.

func (Orchestrator) Timeout

func (f Orchestrator) Timeout() time.Duration

Timeout mocks the Timeout method.

Jump to

Keyboard shortcuts

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