mocks

package
v0.0.0-...-7ae29b8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basis

type Basis struct {
	mock.Mock
}

Basis is an autogenerated mock type for the Basis type

func NewBasis

func NewBasis(t mockConstructorTestingTNewBasis) *Basis

NewBasis creates a new instance of Basis. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Basis) Boxes

func (_m *Basis) Boxes() (core.BoxCollection, error)

Boxes provides a mock function with given fields:

func (*Basis) CWD

func (_m *Basis) CWD() (path.Path, error)

CWD provides a mock function with given fields:

func (*Basis) Close

func (_m *Basis) Close() error

Close provides a mock function with given fields:

func (*Basis) DataDir

func (_m *Basis) DataDir() (*datadir.Basis, error)

DataDir provides a mock function with given fields:

func (*Basis) DefaultPrivateKey

func (_m *Basis) DefaultPrivateKey() (path.Path, error)

DefaultPrivateKey provides a mock function with given fields:

func (*Basis) DefaultProvider

func (_m *Basis) DefaultProvider() (string, error)

DefaultProvider provides a mock function with given fields:

func (*Basis) Host

func (_m *Basis) Host() (core.Host, error)

Host provides a mock function with given fields:

func (*Basis) ResourceId

func (_m *Basis) ResourceId() (string, error)

ResourceId provides a mock function with given fields:

func (*Basis) TargetIndex

func (_m *Basis) TargetIndex() (core.TargetIndex, error)

TargetIndex provides a mock function with given fields:

func (*Basis) UI

func (_m *Basis) UI() (terminal.UI, error)

UI provides a mock function with given fields:

func (*Basis) Vagrantfile

func (_m *Basis) Vagrantfile() (core.Vagrantfile, error)

Vagrantfile provides a mock function with given fields:

type Box

type Box struct {
	mock.Mock
}

Box is an autogenerated mock type for the Box type

func NewBox

func NewBox(t mockConstructorTestingTNewBox) *Box

NewBox creates a new instance of Box. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Box) AutomaticUpdateCheckAllowed

func (_m *Box) AutomaticUpdateCheckAllowed() (bool, error)

AutomaticUpdateCheckAllowed provides a mock function with given fields:

func (*Box) BoxMetadata

func (_m *Box) BoxMetadata() (map[string]interface{}, error)

BoxMetadata provides a mock function with given fields:

func (*Box) Compare

func (_m *Box) Compare(box core.Box) (int, error)

Compare provides a mock function with given fields: box

func (*Box) Destroy

func (_m *Box) Destroy() error

Destroy provides a mock function with given fields:

func (*Box) Directory

func (_m *Box) Directory() (path.Path, error)

Directory provides a mock function with given fields:

func (*Box) HasUpdate

func (_m *Box) HasUpdate(version string) (bool, error)

HasUpdate provides a mock function with given fields: version

func (*Box) InUse

func (_m *Box) InUse(index core.TargetIndex) (bool, error)

InUse provides a mock function with given fields: index

func (*Box) Machines

func (_m *Box) Machines(index core.TargetIndex) ([]core.Machine, error)

Machines provides a mock function with given fields: index

func (*Box) Metadata

func (_m *Box) Metadata() (core.BoxMetadata, error)

Metadata provides a mock function with given fields:

func (*Box) MetadataURL

func (_m *Box) MetadataURL() (string, error)

MetadataURL provides a mock function with given fields:

func (*Box) Name

func (_m *Box) Name() (string, error)

Name provides a mock function with given fields:

func (*Box) Provider

func (_m *Box) Provider() (string, error)

Provider provides a mock function with given fields:

func (*Box) Repackage

func (_m *Box) Repackage(_a0 path.Path) error

Repackage provides a mock function with given fields: _a0

func (*Box) UpdateInfo

func (_m *Box) UpdateInfo(version string) (bool, core.BoxMetadata, string, string, error)

UpdateInfo provides a mock function with given fields: version

func (*Box) Version

func (_m *Box) Version() (string, error)

Version provides a mock function with given fields:

type BoxCollection

type BoxCollection struct {
	mock.Mock
}

BoxCollection is an autogenerated mock type for the BoxCollection type

func NewBoxCollection

func NewBoxCollection(t mockConstructorTestingTNewBoxCollection) *BoxCollection

NewBoxCollection creates a new instance of BoxCollection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BoxCollection) Add

func (_m *BoxCollection) Add(_a0 path.Path, name string, version string, metadataURL string, force bool, providers ...string) (core.Box, error)

Add provides a mock function with given fields: _a0, name, version, metadataURL, force, providers

func (*BoxCollection) All

func (_m *BoxCollection) All() ([]core.Box, error)

All provides a mock function with given fields:

func (*BoxCollection) Clean

func (_m *BoxCollection) Clean(name string) error

Clean provides a mock function with given fields: name

func (*BoxCollection) Find

func (_m *BoxCollection) Find(name string, version string, providers ...string) (core.Box, error)

Find provides a mock function with given fields: name, version, providers

type BoxMetadata

type BoxMetadata struct {
	mock.Mock
}

BoxMetadata is an autogenerated mock type for the BoxMetadata type

func NewBoxMetadata

func NewBoxMetadata(t mockConstructorTestingTNewBoxMetadata) *BoxMetadata

NewBoxMetadata creates a new instance of BoxMetadata. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BoxMetadata) BoxName

func (_m *BoxMetadata) BoxName() string

BoxName provides a mock function with given fields:

func (*BoxMetadata) ListProviders

func (_m *BoxMetadata) ListProviders(version string) ([]string, error)

ListProviders provides a mock function with given fields: version

func (*BoxMetadata) ListVersions

func (_m *BoxMetadata) ListVersions(opts ...*core.BoxProvider) ([]string, error)

ListVersions provides a mock function with given fields: opts

func (*BoxMetadata) LoadMetadata

func (_m *BoxMetadata) LoadMetadata(url string) error

LoadMetadata provides a mock function with given fields: url

func (*BoxMetadata) Provider

func (_m *BoxMetadata) Provider(version string, name string) (*core.BoxProvider, error)

Provider provides a mock function with given fields: version, name

func (*BoxMetadata) Version

func (_m *BoxMetadata) Version(version string, opts ...*core.BoxProvider) (*core.BoxVersion, error)

Version provides a mock function with given fields: version, opts

type CapabilityPlatform

type CapabilityPlatform struct {
	mock.Mock
}

CapabilityPlatform is an autogenerated mock type for the CapabilityPlatform type

func NewCapabilityPlatform

func NewCapabilityPlatform(t mockConstructorTestingTNewCapabilityPlatform) *CapabilityPlatform

NewCapabilityPlatform creates a new instance of CapabilityPlatform. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CapabilityPlatform) Capability

func (_m *CapabilityPlatform) Capability(name string, args ...interface{}) (interface{}, error)

Capability provides a mock function with given fields: name, args

func (*CapabilityPlatform) HasCapability

func (_m *CapabilityPlatform) HasCapability(name string) (bool, error)

HasCapability provides a mock function with given fields: name

type Command

type Command struct {
	mock.Mock
}

Command is an autogenerated mock type for the Command type

func NewCommand

func NewCommand(t mockConstructorTestingTNewCommand) *Command

NewCommand creates a new instance of Command. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Command) Close

func (_m *Command) Close() error

Close provides a mock function with given fields:

func (*Command) CommandInfo

func (_m *Command) CommandInfo() (*component.CommandInfo, error)

CommandInfo provides a mock function with given fields:

func (*Command) Execute

func (_m *Command) Execute(_a0 []string) (int32, error)

Execute provides a mock function with given fields: _a0

type Communicator

type Communicator struct {
	mock.Mock
}

Communicator is an autogenerated mock type for the Communicator type

func NewCommunicator

func NewCommunicator(t mockConstructorTestingTNewCommunicator) *Communicator

NewCommunicator creates a new instance of Communicator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Communicator) Download

func (_m *Communicator) Download(machine core.Machine, source string, destination string) error

Download provides a mock function with given fields: machine, source, destination

func (*Communicator) Execute

func (_m *Communicator) Execute(machine core.Machine, command []string, opts ...interface{}) (int32, error)

Execute provides a mock function with given fields: machine, command, opts

func (*Communicator) Init

func (_m *Communicator) Init(machine core.Machine) error

Init provides a mock function with given fields: machine

func (*Communicator) Match

func (_m *Communicator) Match(machine core.Machine) (bool, error)

Match provides a mock function with given fields: machine

func (*Communicator) PrivilegedExecute

func (_m *Communicator) PrivilegedExecute(machine core.Machine, command []string, opts ...interface{}) (int32, error)

PrivilegedExecute provides a mock function with given fields: machine, command, opts

func (*Communicator) Ready

func (_m *Communicator) Ready(machine core.Machine) (bool, error)

Ready provides a mock function with given fields: machine

func (*Communicator) Reset

func (_m *Communicator) Reset(machine core.Machine) error

Reset provides a mock function with given fields: machine

func (*Communicator) Seed

func (_m *Communicator) Seed(_a0 *core.Seeds) error

Seed provides a mock function with given fields: _a0

func (*Communicator) Seeds

func (_m *Communicator) Seeds() (*core.Seeds, error)

Seeds provides a mock function with given fields:

func (*Communicator) Test

func (_m *Communicator) Test(machine core.Machine, command []string, opts ...interface{}) (bool, error)

Test provides a mock function with given fields: machine, command, opts

func (*Communicator) Upload

func (_m *Communicator) Upload(machine core.Machine, source string, destination string) error

Upload provides a mock function with given fields: machine, source, destination

func (*Communicator) WaitForReady

func (_m *Communicator) WaitForReady(machine core.Machine, wait int) (bool, error)

WaitForReady provides a mock function with given fields: machine, wait

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func NewConfig

func NewConfig(t mockConstructorTestingTNewConfig) *Config

NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Config) Finalize

func (_m *Config) Finalize(_a0 *component.ConfigData) (*component.ConfigData, error)

Finalize provides a mock function with given fields: _a0

func (*Config) Merge

func (_m *Config) Merge(base *component.ConfigData, toMerge *component.ConfigData) (*component.ConfigData, error)

Merge provides a mock function with given fields: base, toMerge

func (*Config) Register

func (_m *Config) Register() (*component.ConfigRegistration, error)

Register provides a mock function with given fields:

func (*Config) Struct

func (_m *Config) Struct() (interface{}, error)

Struct provides a mock function with given fields:

type ConfigFn

type ConfigFn struct {
	mock.Mock
}

ConfigFn is an autogenerated mock type for the ConfigFn type

func (*ConfigFn) Execute

func (_m *ConfigFn) Execute(configStruct interface{}) (interface{}, error)

Execute provides a mock function with given fields: configStruct

type CorePluginManager

type CorePluginManager struct {
	mock.Mock
}

CorePluginManager is an autogenerated mock type for the CorePluginManager type

func NewCorePluginManager

func NewCorePluginManager(t mockConstructorTestingTNewCorePluginManager) *CorePluginManager

NewCorePluginManager creates a new instance of CorePluginManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorePluginManager) GetPlugin

func (_m *CorePluginManager) GetPlugin(pluginType core.Type) (interface{}, error)

GetPlugin provides a mock function with given fields: pluginType

type Downloader

type Downloader struct {
	mock.Mock
}

Downloader is an autogenerated mock type for the Downloader type

func NewDownloader

func NewDownloader(t mockConstructorTestingTNewDownloader) *Downloader

NewDownloader creates a new instance of Downloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Downloader) Download

func (_m *Downloader) Download() error

Download provides a mock function with given fields:

type DownloaderOptions

type DownloaderOptions struct {
	mock.Mock
}

DownloaderOptions is an autogenerated mock type for the DownloaderOptions type

func (*DownloaderOptions) Execute

func (_m *DownloaderOptions) Execute(_a0 *core.Downloader) error

Execute provides a mock function with given fields: _a0

type Guest

type Guest struct {
	mock.Mock
}

Guest is an autogenerated mock type for the Guest type

func NewGuest

func NewGuest(t mockConstructorTestingTNewGuest) *Guest

NewGuest creates a new instance of Guest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Guest) Capability

func (_m *Guest) Capability(name string, args ...interface{}) (interface{}, error)

Capability provides a mock function with given fields: name, args

func (*Guest) Close

func (_m *Guest) Close() error

Close provides a mock function with given fields:

func (*Guest) Detect

func (_m *Guest) Detect(_a0 core.Target) (bool, error)

Detect provides a mock function with given fields: _a0

func (*Guest) HasCapability

func (_m *Guest) HasCapability(name string) (bool, error)

HasCapability provides a mock function with given fields: name

func (*Guest) Parent

func (_m *Guest) Parent() (string, error)

Parent provides a mock function with given fields:

func (*Guest) PluginName

func (_m *Guest) PluginName() (string, error)

PluginName provides a mock function with given fields:

func (*Guest) Seed

func (_m *Guest) Seed(_a0 *core.Seeds) error

Seed provides a mock function with given fields: _a0

func (*Guest) Seeds

func (_m *Guest) Seeds() (*core.Seeds, error)

Seeds provides a mock function with given fields:

func (*Guest) SetPluginName

func (_m *Guest) SetPluginName(_a0 string) error

SetPluginName provides a mock function with given fields: _a0

type Host

type Host struct {
	mock.Mock
}

Host is an autogenerated mock type for the Host type

func NewHost

func NewHost(t mockConstructorTestingTNewHost) *Host

NewHost creates a new instance of Host. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Host) Capability

func (_m *Host) Capability(name string, args ...interface{}) (interface{}, error)

Capability provides a mock function with given fields: name, args

func (*Host) Close

func (_m *Host) Close() error

Close provides a mock function with given fields:

func (*Host) Detect

func (_m *Host) Detect(state core.StateBag) (bool, error)

Detect provides a mock function with given fields: state

func (*Host) HasCapability

func (_m *Host) HasCapability(name string) (bool, error)

HasCapability provides a mock function with given fields: name

func (*Host) Parent

func (_m *Host) Parent() (string, error)

Parent provides a mock function with given fields:

func (*Host) PluginName

func (_m *Host) PluginName() (string, error)

PluginName provides a mock function with given fields:

func (*Host) Seed

func (_m *Host) Seed(_a0 *core.Seeds) error

Seed provides a mock function with given fields: _a0

func (*Host) Seeds

func (_m *Host) Seeds() (*core.Seeds, error)

Seeds provides a mock function with given fields:

func (*Host) SetPluginName

func (_m *Host) SetPluginName(_a0 string) error

SetPluginName provides a mock function with given fields: _a0

type Machine

type Machine struct {
	mock.Mock
}

Machine is an autogenerated mock type for the Machine type

func NewMachine

func NewMachine(t mockConstructorTestingTNewMachine) *Machine

NewMachine creates a new instance of Machine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Machine) AsTarget

func (_m *Machine) AsTarget() (core.Target, error)

AsTarget provides a mock function with given fields:

func (*Machine) Box

func (_m *Machine) Box() (core.Box, error)

Box provides a mock function with given fields:

func (*Machine) Close

func (_m *Machine) Close() error

Close provides a mock function with given fields:

func (*Machine) Communicate

func (_m *Machine) Communicate() (core.Communicator, error)

Communicate provides a mock function with given fields:

func (*Machine) ConnectionInfo

func (_m *Machine) ConnectionInfo() (*core.ConnectionInfo, error)

ConnectionInfo provides a mock function with given fields:

func (*Machine) DataDir

func (_m *Machine) DataDir() (*datadir.Target, error)

DataDir provides a mock function with given fields:

func (*Machine) Destroy

func (_m *Machine) Destroy() error

Destroy provides a mock function with given fields:

func (*Machine) GetUUID

func (_m *Machine) GetUUID() (string, error)

GetUUID provides a mock function with given fields:

func (*Machine) Guest

func (_m *Machine) Guest() (core.Guest, error)

Guest provides a mock function with given fields:

func (*Machine) ID

func (_m *Machine) ID() (string, error)

ID provides a mock function with given fields:

func (*Machine) Inspect

func (_m *Machine) Inspect() (string, error)

Inspect provides a mock function with given fields:

func (*Machine) MachineState

func (_m *Machine) MachineState() (*core.MachineState, error)

MachineState provides a mock function with given fields:

func (*Machine) Metadata

func (_m *Machine) Metadata() (map[string]string, error)

Metadata provides a mock function with given fields:

func (*Machine) Name

func (_m *Machine) Name() (string, error)

Name provides a mock function with given fields:

func (*Machine) Project

func (_m *Machine) Project() (core.Project, error)

Project provides a mock function with given fields:

func (*Machine) Provider

func (_m *Machine) Provider() (core.Provider, error)

Provider provides a mock function with given fields:

func (*Machine) ProviderName

func (_m *Machine) ProviderName() (string, error)

ProviderName provides a mock function with given fields:

func (*Machine) Record

func (_m *Machine) Record() (*anypb.Any, error)

Record provides a mock function with given fields:

func (*Machine) ResourceId

func (_m *Machine) ResourceId() (string, error)

ResourceId provides a mock function with given fields:

func (*Machine) Save

func (_m *Machine) Save() error

Save provides a mock function with given fields:

func (*Machine) SetID

func (_m *Machine) SetID(value string) error

SetID provides a mock function with given fields: value

func (*Machine) SetMachineState

func (_m *Machine) SetMachineState(state *core.MachineState) error

SetMachineState provides a mock function with given fields: state

func (*Machine) SetName

func (_m *Machine) SetName(value string) error

SetName provides a mock function with given fields: value

func (*Machine) SetUUID

func (_m *Machine) SetUUID(id string) error

SetUUID provides a mock function with given fields: id

func (*Machine) Specialize

func (_m *Machine) Specialize(kind interface{}) (interface{}, error)

Specialize provides a mock function with given fields: kind

func (*Machine) State

func (_m *Machine) State() (core.State, error)

State provides a mock function with given fields:

func (*Machine) SyncedFolders

func (_m *Machine) SyncedFolders() ([]*core.MachineSyncedFolder, error)

SyncedFolders provides a mock function with given fields:

func (*Machine) UI

func (_m *Machine) UI() (terminal.UI, error)

UI provides a mock function with given fields:

func (*Machine) UID

func (_m *Machine) UID() (string, error)

UID provides a mock function with given fields:

func (*Machine) UpdatedAt

func (_m *Machine) UpdatedAt() (*time.Time, error)

UpdatedAt provides a mock function with given fields:

func (*Machine) Vagrantfile

func (_m *Machine) Vagrantfile() (core.Vagrantfile, error)

Vagrantfile provides a mock function with given fields:

type MachineEntry

type MachineEntry struct {
	mock.Mock
}

MachineEntry is an autogenerated mock type for the MachineEntry type

func (*MachineEntry) Project

func (_m *MachineEntry) Project(homePath string) (core.Project, error)

Project provides a mock function with given fields: homePath

func (*MachineEntry) Valid

func (_m *MachineEntry) Valid(homePath string) (bool, error)

Valid provides a mock function with given fields: homePath

type Named

type Named struct {
	mock.Mock
}

Named is an autogenerated mock type for the Named type

func NewNamed

func NewNamed(t mockConstructorTestingTNewNamed) *Named

NewNamed creates a new instance of Named. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Named) PluginName

func (_m *Named) PluginName() (string, error)

PluginName provides a mock function with given fields:

func (*Named) SetPluginName

func (_m *Named) SetPluginName(_a0 string) error

SetPluginName provides a mock function with given fields: _a0

type PluginManager

type PluginManager struct {
	mock.Mock
}

PluginManager is an autogenerated mock type for the PluginManager type

func NewPluginManager

func NewPluginManager(t mockConstructorTestingTNewPluginManager) *PluginManager

NewPluginManager creates a new instance of PluginManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PluginManager) Close

func (_m *PluginManager) Close() error

Close provides a mock function with given fields:

func (*PluginManager) GetPlugin

func (_m *PluginManager) GetPlugin(name string, typeName string) (*core.NamedPlugin, error)

GetPlugin provides a mock function with given fields: name, typeName

func (*PluginManager) ListPlugins

func (_m *PluginManager) ListPlugins(types ...string) ([]*core.NamedPlugin, error)

ListPlugins provides a mock function with given fields: types

type Project

type Project struct {
	mock.Mock
}

Project is an autogenerated mock type for the Project type

func NewProject

func NewProject(t mockConstructorTestingTNewProject) *Project

NewProject creates a new instance of Project. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Project) ActiveTargets

func (_m *Project) ActiveTargets() ([]core.Target, error)

ActiveTargets provides a mock function with given fields:

func (*Project) Boxes

func (_m *Project) Boxes() (core.BoxCollection, error)

Boxes provides a mock function with given fields:

func (*Project) CWD

func (_m *Project) CWD() (path.Path, error)

CWD provides a mock function with given fields:

func (*Project) Close

func (_m *Project) Close() error

Close provides a mock function with given fields:

func (*Project) Config

func (_m *Project) Config() (core.Vagrantfile, error)

Config provides a mock function with given fields:

func (*Project) DataDir

func (_m *Project) DataDir() (*datadir.Project, error)

DataDir provides a mock function with given fields:

func (*Project) DefaultPrivateKey

func (_m *Project) DefaultPrivateKey() (path.Path, error)

DefaultPrivateKey provides a mock function with given fields:

func (*Project) DefaultProvider

func (_m *Project) DefaultProvider(opts *core.DefaultProviderOptions) (string, error)

DefaultProvider provides a mock function with given fields: opts

func (*Project) Home

func (_m *Project) Home() (path.Path, error)

Home provides a mock function with given fields:

func (*Project) Host

func (_m *Project) Host() (core.Host, error)

Host provides a mock function with given fields:

func (*Project) LocalData

func (_m *Project) LocalData() (path.Path, error)

LocalData provides a mock function with given fields:

func (*Project) PrimaryTargetName

func (_m *Project) PrimaryTargetName() (string, error)

PrimaryTargetName provides a mock function with given fields:

func (*Project) ResourceId

func (_m *Project) ResourceId() (string, error)

ResourceId provides a mock function with given fields:

func (*Project) RootPath

func (_m *Project) RootPath() (path.Path, error)

RootPath provides a mock function with given fields:

func (*Project) Target

func (_m *Project) Target(name string, provider string) (core.Target, error)

Target provides a mock function with given fields: name, provider

func (*Project) TargetIds

func (_m *Project) TargetIds() ([]string, error)

TargetIds provides a mock function with given fields:

func (*Project) TargetIndex

func (_m *Project) TargetIndex() (core.TargetIndex, error)

TargetIndex provides a mock function with given fields:

func (*Project) TargetNames

func (_m *Project) TargetNames() ([]string, error)

TargetNames provides a mock function with given fields:

func (*Project) Tmp

func (_m *Project) Tmp() (path.Path, error)

Tmp provides a mock function with given fields:

func (*Project) UI

func (_m *Project) UI() (terminal.UI, error)

UI provides a mock function with given fields:

func (*Project) Vagrantfile

func (_m *Project) Vagrantfile() (core.Vagrantfile, error)

Vagrantfile provides a mock function with given fields:

func (*Project) VagrantfileName

func (_m *Project) VagrantfileName() (string, error)

VagrantfileName provides a mock function with given fields:

func (*Project) VagrantfilePath

func (_m *Project) VagrantfilePath() (path.Path, error)

VagrantfilePath provides a mock function with given fields:

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t mockConstructorTestingTNewProvider) *Provider

NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Provider) Action

func (_m *Provider) Action(name string, args ...interface{}) error

Action provides a mock function with given fields: name, args

func (*Provider) Capability

func (_m *Provider) Capability(name string, args ...interface{}) (interface{}, error)

Capability provides a mock function with given fields: name, args

func (*Provider) HasCapability

func (_m *Provider) HasCapability(name string) (bool, error)

HasCapability provides a mock function with given fields: name

func (*Provider) Installed

func (_m *Provider) Installed() (bool, error)

Installed provides a mock function with given fields:

func (*Provider) MachineIdChanged

func (_m *Provider) MachineIdChanged() error

MachineIdChanged provides a mock function with given fields:

func (*Provider) SshInfo

func (_m *Provider) SshInfo() (*core.SshInfo, error)

SshInfo provides a mock function with given fields:

func (*Provider) State

func (_m *Provider) State() (*core.MachineState, error)

State provides a mock function with given fields:

func (*Provider) Usable

func (_m *Provider) Usable() (bool, error)

Usable provides a mock function with given fields:

type Provisioner

type Provisioner struct {
	mock.Mock
}

Provisioner is an autogenerated mock type for the Provisioner type

func NewProvisioner

func NewProvisioner(t mockConstructorTestingTNewProvisioner) *Provisioner

NewProvisioner creates a new instance of Provisioner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Provisioner) Cleanup

func (_m *Provisioner) Cleanup(machine core.Machine, config *component.ConfigData) error

Cleanup provides a mock function with given fields: machine, config

func (*Provisioner) Configure

func (_m *Provisioner) Configure(machine core.Machine, config *component.ConfigData, rootConfig *component.ConfigData) error

Configure provides a mock function with given fields: machine, config, rootConfig

func (*Provisioner) Provision

func (_m *Provisioner) Provision(machine core.Machine, config *component.ConfigData) error

Provision provides a mock function with given fields: machine, config

type Push

type Push struct {
	mock.Mock
}

Push is an autogenerated mock type for the Push type

func NewPush

func NewPush(t mockConstructorTestingTNewPush) *Push

NewPush creates a new instance of Push. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Push) Push

func (_m *Push) Push() error

Push provides a mock function with given fields:

type Seeder

type Seeder struct {
	mock.Mock
}

Seeder is an autogenerated mock type for the Seeder type

func NewSeeder

func NewSeeder(t mockConstructorTestingTNewSeeder) *Seeder

NewSeeder creates a new instance of Seeder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Seeder) Seed

func (_m *Seeder) Seed(_a0 *core.Seeds) error

Seed provides a mock function with given fields: _a0

func (*Seeder) Seeds

func (_m *Seeder) Seeds() (*core.Seeds, error)

Seeds provides a mock function with given fields:

type StateBag

type StateBag struct {
	mock.Mock
}

StateBag is an autogenerated mock type for the StateBag type

func NewStateBag

func NewStateBag(t mockConstructorTestingTNewStateBag) *StateBag

NewStateBag creates a new instance of StateBag. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StateBag) Get

func (_m *StateBag) Get(_a0 string) interface{}

Get provides a mock function with given fields: _a0

func (*StateBag) GetOk

func (_m *StateBag) GetOk(_a0 string) (interface{}, bool)

GetOk provides a mock function with given fields: _a0

func (*StateBag) Put

func (_m *StateBag) Put(_a0 string, _a1 interface{})

Put provides a mock function with given fields: _a0, _a1

func (*StateBag) Remove

func (_m *StateBag) Remove(_a0 string)

Remove provides a mock function with given fields: _a0

type SyncedFolder

type SyncedFolder struct {
	mock.Mock
}

SyncedFolder is an autogenerated mock type for the SyncedFolder type

func NewSyncedFolder

func NewSyncedFolder(t mockConstructorTestingTNewSyncedFolder) *SyncedFolder

NewSyncedFolder creates a new instance of SyncedFolder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SyncedFolder) Capability

func (_m *SyncedFolder) Capability(name string, args ...interface{}) (interface{}, error)

Capability provides a mock function with given fields: name, args

func (*SyncedFolder) Cleanup

func (_m *SyncedFolder) Cleanup(machine core.Machine, opts ...interface{}) error

Cleanup provides a mock function with given fields: machine, opts

func (*SyncedFolder) Disable

func (_m *SyncedFolder) Disable(machine core.Machine, folders []*core.Folder, opts ...interface{}) error

Disable provides a mock function with given fields: machine, folders, opts

func (*SyncedFolder) Enable

func (_m *SyncedFolder) Enable(machine core.Machine, folders []*core.Folder, opts ...interface{}) error

Enable provides a mock function with given fields: machine, folders, opts

func (*SyncedFolder) HasCapability

func (_m *SyncedFolder) HasCapability(name string) (bool, error)

HasCapability provides a mock function with given fields: name

func (*SyncedFolder) Prepare

func (_m *SyncedFolder) Prepare(machine core.Machine, folders []*core.Folder, opts ...interface{}) error

Prepare provides a mock function with given fields: machine, folders, opts

func (*SyncedFolder) Seed

func (_m *SyncedFolder) Seed(_a0 *core.Seeds) error

Seed provides a mock function with given fields: _a0

func (*SyncedFolder) Seeds

func (_m *SyncedFolder) Seeds() (*core.Seeds, error)

Seeds provides a mock function with given fields:

func (*SyncedFolder) Usable

func (_m *SyncedFolder) Usable(machine core.Machine) (bool, error)

Usable provides a mock function with given fields: machine

type Target

type Target struct {
	mock.Mock
}

Target is an autogenerated mock type for the Target type

func NewTarget

func NewTarget(t mockConstructorTestingTNewTarget) *Target

NewTarget creates a new instance of Target. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Target) Close

func (_m *Target) Close() error

Close provides a mock function with given fields:

func (*Target) Communicate

func (_m *Target) Communicate() (core.Communicator, error)

Communicate provides a mock function with given fields:

func (*Target) DataDir

func (_m *Target) DataDir() (*datadir.Target, error)

DataDir provides a mock function with given fields:

func (*Target) Destroy

func (_m *Target) Destroy() error

Destroy provides a mock function with given fields:

func (*Target) GetUUID

func (_m *Target) GetUUID() (string, error)

GetUUID provides a mock function with given fields:

func (*Target) Metadata

func (_m *Target) Metadata() (map[string]string, error)

Metadata provides a mock function with given fields:

func (*Target) Name

func (_m *Target) Name() (string, error)

Name provides a mock function with given fields:

func (*Target) Project

func (_m *Target) Project() (core.Project, error)

Project provides a mock function with given fields:

func (*Target) Provider

func (_m *Target) Provider() (core.Provider, error)

Provider provides a mock function with given fields:

func (*Target) ProviderName

func (_m *Target) ProviderName() (string, error)

ProviderName provides a mock function with given fields:

func (*Target) Record

func (_m *Target) Record() (*anypb.Any, error)

Record provides a mock function with given fields:

func (*Target) ResourceId

func (_m *Target) ResourceId() (string, error)

ResourceId provides a mock function with given fields:

func (*Target) Save

func (_m *Target) Save() error

Save provides a mock function with given fields:

func (*Target) SetName

func (_m *Target) SetName(value string) error

SetName provides a mock function with given fields: value

func (*Target) SetUUID

func (_m *Target) SetUUID(id string) error

SetUUID provides a mock function with given fields: id

func (*Target) Specialize

func (_m *Target) Specialize(kind interface{}) (interface{}, error)

Specialize provides a mock function with given fields: kind

func (*Target) State

func (_m *Target) State() (core.State, error)

State provides a mock function with given fields:

func (*Target) UI

func (_m *Target) UI() (terminal.UI, error)

UI provides a mock function with given fields:

func (*Target) UpdatedAt

func (_m *Target) UpdatedAt() (*time.Time, error)

UpdatedAt provides a mock function with given fields:

func (*Target) Vagrantfile

func (_m *Target) Vagrantfile() (core.Vagrantfile, error)

Vagrantfile provides a mock function with given fields:

type TargetIndex

type TargetIndex struct {
	mock.Mock
}

TargetIndex is an autogenerated mock type for the TargetIndex type

func NewTargetIndex

func NewTargetIndex(t mockConstructorTestingTNewTargetIndex) *TargetIndex

NewTargetIndex creates a new instance of TargetIndex. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TargetIndex) All

func (_m *TargetIndex) All() ([]core.Target, error)

All provides a mock function with given fields:

func (*TargetIndex) Delete

func (_m *TargetIndex) Delete(uuid string) error

Delete provides a mock function with given fields: uuid

func (*TargetIndex) Get

func (_m *TargetIndex) Get(uuid string) (core.Target, error)

Get provides a mock function with given fields: uuid

func (*TargetIndex) Includes

func (_m *TargetIndex) Includes(uuid string) (bool, error)

Includes provides a mock function with given fields: uuid

func (*TargetIndex) Set

func (_m *TargetIndex) Set(entry core.Target) (core.Target, error)

Set provides a mock function with given fields: entry

type Vagrantfile

type Vagrantfile struct {
	mock.Mock
}

Vagrantfile is an autogenerated mock type for the Vagrantfile type

func NewVagrantfile

func NewVagrantfile(t mockConstructorTestingTNewVagrantfile) *Vagrantfile

NewVagrantfile creates a new instance of Vagrantfile. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Vagrantfile) GetConfig

func (_m *Vagrantfile) GetConfig(namespace string) (*component.ConfigData, error)

GetConfig provides a mock function with given fields: namespace

func (*Vagrantfile) GetValue

func (_m *Vagrantfile) GetValue(path ...string) (interface{}, error)

GetValue provides a mock function with given fields: path

func (*Vagrantfile) PrimaryTargetName

func (_m *Vagrantfile) PrimaryTargetName() (string, error)

PrimaryTargetName provides a mock function with given fields:

func (*Vagrantfile) Target

func (_m *Vagrantfile) Target(name string, provider string) (core.Target, error)

Target provides a mock function with given fields: name, provider

func (*Vagrantfile) TargetConfig

func (_m *Vagrantfile) TargetConfig(name string, provider string, validateProvider bool) (core.Vagrantfile, error)

TargetConfig provides a mock function with given fields: name, provider, validateProvider

func (*Vagrantfile) TargetNames

func (_m *Vagrantfile) TargetNames() ([]string, error)

TargetNames provides a mock function with given fields:

Jump to

Keyboard shortcuts

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