Documentation
¶
Index ¶
- type Basis
- func (_m *Basis) Boxes() (core.BoxCollection, error)
- func (_m *Basis) CWD() (path.Path, error)
- func (_m *Basis) Close() error
- func (_m *Basis) DataDir() (*datadir.Basis, error)
- func (_m *Basis) DefaultPrivateKey() (path.Path, error)
- func (_m *Basis) DefaultProvider() (string, error)
- func (_m *Basis) Host() (core.Host, error)
- func (_m *Basis) ResourceId() (string, error)
- func (_m *Basis) TargetIndex() (core.TargetIndex, error)
- func (_m *Basis) UI() (terminal.UI, error)
- func (_m *Basis) Vagrantfile() (core.Vagrantfile, error)
- type Box
- func (_m *Box) AutomaticUpdateCheckAllowed() (bool, error)
- func (_m *Box) BoxMetadata() (map[string]interface{}, error)
- func (_m *Box) Compare(box core.Box) (int, error)
- func (_m *Box) Destroy() error
- func (_m *Box) Directory() (path.Path, error)
- func (_m *Box) HasUpdate(version string) (bool, error)
- func (_m *Box) InUse(index core.TargetIndex) (bool, error)
- func (_m *Box) Machines(index core.TargetIndex) ([]core.Machine, error)
- func (_m *Box) Metadata() (core.BoxMetadata, error)
- func (_m *Box) MetadataURL() (string, error)
- func (_m *Box) Name() (string, error)
- func (_m *Box) Provider() (string, error)
- func (_m *Box) Repackage(_a0 path.Path) error
- func (_m *Box) UpdateInfo(version string) (bool, core.BoxMetadata, string, string, error)
- func (_m *Box) Version() (string, error)
- type BoxCollection
- func (_m *BoxCollection) Add(_a0 path.Path, name string, version string, metadataURL string, force bool, ...) (core.Box, error)
- func (_m *BoxCollection) All() ([]core.Box, error)
- func (_m *BoxCollection) Clean(name string) error
- func (_m *BoxCollection) Find(name string, version string, providers ...string) (core.Box, error)
- type BoxMetadata
- func (_m *BoxMetadata) BoxName() string
- func (_m *BoxMetadata) ListProviders(version string) ([]string, error)
- func (_m *BoxMetadata) ListVersions(opts ...*core.BoxProvider) ([]string, error)
- func (_m *BoxMetadata) LoadMetadata(url string) error
- func (_m *BoxMetadata) Provider(version string, name string) (*core.BoxProvider, error)
- func (_m *BoxMetadata) Version(version string, opts ...*core.BoxProvider) (*core.BoxVersion, error)
- type CapabilityPlatform
- type Command
- type Communicator
- func (_m *Communicator) Download(machine core.Machine, source string, destination string) error
- func (_m *Communicator) Execute(machine core.Machine, command []string, opts ...interface{}) (int32, error)
- func (_m *Communicator) Init(machine core.Machine) error
- func (_m *Communicator) Match(machine core.Machine) (bool, error)
- func (_m *Communicator) PrivilegedExecute(machine core.Machine, command []string, opts ...interface{}) (int32, error)
- func (_m *Communicator) Ready(machine core.Machine) (bool, error)
- func (_m *Communicator) Reset(machine core.Machine) error
- func (_m *Communicator) Seed(_a0 *core.Seeds) error
- func (_m *Communicator) Seeds() (*core.Seeds, error)
- func (_m *Communicator) Test(machine core.Machine, command []string, opts ...interface{}) (bool, error)
- func (_m *Communicator) Upload(machine core.Machine, source string, destination string) error
- func (_m *Communicator) WaitForReady(machine core.Machine, wait int) (bool, error)
- type Config
- func (_m *Config) Finalize(_a0 *component.ConfigData) (*component.ConfigData, error)
- func (_m *Config) Merge(base *component.ConfigData, toMerge *component.ConfigData) (*component.ConfigData, error)
- func (_m *Config) Register() (*component.ConfigRegistration, error)
- func (_m *Config) Struct() (interface{}, error)
- type ConfigFn
- type CorePluginManager
- type Downloader
- type DownloaderOptions
- type Guest
- func (_m *Guest) Capability(name string, args ...interface{}) (interface{}, error)
- func (_m *Guest) Close() error
- func (_m *Guest) Detect(_a0 core.Target) (bool, error)
- func (_m *Guest) HasCapability(name string) (bool, error)
- func (_m *Guest) Parent() (string, error)
- func (_m *Guest) PluginName() (string, error)
- func (_m *Guest) Seed(_a0 *core.Seeds) error
- func (_m *Guest) Seeds() (*core.Seeds, error)
- func (_m *Guest) SetPluginName(_a0 string) error
- type Host
- func (_m *Host) Capability(name string, args ...interface{}) (interface{}, error)
- func (_m *Host) Close() error
- func (_m *Host) Detect(state core.StateBag) (bool, error)
- func (_m *Host) HasCapability(name string) (bool, error)
- func (_m *Host) Parent() (string, error)
- func (_m *Host) PluginName() (string, error)
- func (_m *Host) Seed(_a0 *core.Seeds) error
- func (_m *Host) Seeds() (*core.Seeds, error)
- func (_m *Host) SetPluginName(_a0 string) error
- type Machine
- func (_m *Machine) AsTarget() (core.Target, error)
- func (_m *Machine) Box() (core.Box, error)
- func (_m *Machine) Close() error
- func (_m *Machine) Communicate() (core.Communicator, error)
- func (_m *Machine) ConnectionInfo() (*core.ConnectionInfo, error)
- func (_m *Machine) DataDir() (*datadir.Target, error)
- func (_m *Machine) Destroy() error
- func (_m *Machine) GetUUID() (string, error)
- func (_m *Machine) Guest() (core.Guest, error)
- func (_m *Machine) ID() (string, error)
- func (_m *Machine) Inspect() (string, error)
- func (_m *Machine) MachineState() (*core.MachineState, error)
- func (_m *Machine) Metadata() (map[string]string, error)
- func (_m *Machine) Name() (string, error)
- func (_m *Machine) Project() (core.Project, error)
- func (_m *Machine) Provider() (core.Provider, error)
- func (_m *Machine) ProviderName() (string, error)
- func (_m *Machine) Record() (*anypb.Any, error)
- func (_m *Machine) ResourceId() (string, error)
- func (_m *Machine) Save() error
- func (_m *Machine) SetID(value string) error
- func (_m *Machine) SetMachineState(state *core.MachineState) error
- func (_m *Machine) SetName(value string) error
- func (_m *Machine) SetUUID(id string) error
- func (_m *Machine) Specialize(kind interface{}) (interface{}, error)
- func (_m *Machine) State() (core.State, error)
- func (_m *Machine) SyncedFolders() ([]*core.MachineSyncedFolder, error)
- func (_m *Machine) UI() (terminal.UI, error)
- func (_m *Machine) UID() (string, error)
- func (_m *Machine) UpdatedAt() (*time.Time, error)
- func (_m *Machine) Vagrantfile() (core.Vagrantfile, error)
- type MachineEntry
- type Named
- type PluginManager
- type Project
- func (_m *Project) ActiveTargets() ([]core.Target, error)
- func (_m *Project) Boxes() (core.BoxCollection, error)
- func (_m *Project) CWD() (path.Path, error)
- func (_m *Project) Close() error
- func (_m *Project) Config() (core.Vagrantfile, error)
- func (_m *Project) DataDir() (*datadir.Project, error)
- func (_m *Project) DefaultPrivateKey() (path.Path, error)
- func (_m *Project) DefaultProvider(opts *core.DefaultProviderOptions) (string, error)
- func (_m *Project) Home() (path.Path, error)
- func (_m *Project) Host() (core.Host, error)
- func (_m *Project) LocalData() (path.Path, error)
- func (_m *Project) PrimaryTargetName() (string, error)
- func (_m *Project) ResourceId() (string, error)
- func (_m *Project) RootPath() (path.Path, error)
- func (_m *Project) Target(name string, provider string) (core.Target, error)
- func (_m *Project) TargetIds() ([]string, error)
- func (_m *Project) TargetIndex() (core.TargetIndex, error)
- func (_m *Project) TargetNames() ([]string, error)
- func (_m *Project) Tmp() (path.Path, error)
- func (_m *Project) UI() (terminal.UI, error)
- func (_m *Project) Vagrantfile() (core.Vagrantfile, error)
- func (_m *Project) VagrantfileName() (string, error)
- func (_m *Project) VagrantfilePath() (path.Path, error)
- type Provider
- func (_m *Provider) Action(name string, args ...interface{}) error
- func (_m *Provider) Capability(name string, args ...interface{}) (interface{}, error)
- func (_m *Provider) HasCapability(name string) (bool, error)
- func (_m *Provider) Installed() (bool, error)
- func (_m *Provider) MachineIdChanged() error
- func (_m *Provider) SshInfo() (*core.SshInfo, error)
- func (_m *Provider) State() (*core.MachineState, error)
- func (_m *Provider) Usable() (bool, error)
- type Provisioner
- type Push
- type Seeder
- type StateBag
- type SyncedFolder
- func (_m *SyncedFolder) Capability(name string, args ...interface{}) (interface{}, error)
- func (_m *SyncedFolder) Cleanup(machine core.Machine, opts ...interface{}) error
- func (_m *SyncedFolder) Disable(machine core.Machine, folders []*core.Folder, opts ...interface{}) error
- func (_m *SyncedFolder) Enable(machine core.Machine, folders []*core.Folder, opts ...interface{}) error
- func (_m *SyncedFolder) HasCapability(name string) (bool, error)
- func (_m *SyncedFolder) Prepare(machine core.Machine, folders []*core.Folder, opts ...interface{}) error
- func (_m *SyncedFolder) Seed(_a0 *core.Seeds) error
- func (_m *SyncedFolder) Seeds() (*core.Seeds, error)
- func (_m *SyncedFolder) Usable(machine core.Machine) (bool, error)
- type Target
- func (_m *Target) Close() error
- func (_m *Target) Communicate() (core.Communicator, error)
- func (_m *Target) DataDir() (*datadir.Target, error)
- func (_m *Target) Destroy() error
- func (_m *Target) GetUUID() (string, error)
- func (_m *Target) Metadata() (map[string]string, error)
- func (_m *Target) Name() (string, error)
- func (_m *Target) Project() (core.Project, error)
- func (_m *Target) Provider() (core.Provider, error)
- func (_m *Target) ProviderName() (string, error)
- func (_m *Target) Record() (*anypb.Any, error)
- func (_m *Target) ResourceId() (string, error)
- func (_m *Target) Save() error
- func (_m *Target) SetName(value string) error
- func (_m *Target) SetUUID(id string) error
- func (_m *Target) Specialize(kind interface{}) (interface{}, error)
- func (_m *Target) State() (core.State, error)
- func (_m *Target) UI() (terminal.UI, error)
- func (_m *Target) UpdatedAt() (*time.Time, error)
- func (_m *Target) Vagrantfile() (core.Vagrantfile, error)
- type TargetIndex
- type Vagrantfile
- func (_m *Vagrantfile) GetConfig(namespace string) (*component.ConfigData, error)
- func (_m *Vagrantfile) GetValue(path ...string) (interface{}, error)
- func (_m *Vagrantfile) PrimaryTargetName() (string, error)
- func (_m *Vagrantfile) Target(name string, provider string) (core.Target, error)
- func (_m *Vagrantfile) TargetConfig(name string, provider string, validateProvider bool) (core.Vagrantfile, error)
- func (_m *Vagrantfile) TargetNames() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basis ¶
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) DefaultPrivateKey ¶
DefaultPrivateKey provides a mock function with given fields:
func (*Basis) DefaultProvider ¶
DefaultProvider provides a mock function with given fields:
func (*Basis) ResourceId ¶
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) Vagrantfile ¶
func (_m *Basis) Vagrantfile() (core.Vagrantfile, error)
Vagrantfile provides a mock function with given fields:
type Box ¶
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 ¶
AutomaticUpdateCheckAllowed provides a mock function with given fields:
func (*Box) BoxMetadata ¶
BoxMetadata provides a mock function with given fields:
func (*Box) InUse ¶
func (_m *Box) InUse(index core.TargetIndex) (bool, error)
InUse 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 ¶
MetadataURL provides a mock function with given fields:
func (*Box) UpdateInfo ¶
UpdateInfo provides a mock function with given fields: version
type BoxCollection ¶
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
type BoxMetadata ¶
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 ¶
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 ¶
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) CommandInfo ¶
func (_m *Command) CommandInfo() (*component.CommandInfo, error)
CommandInfo provides a mock function with given fields:
type Communicator ¶
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 ¶
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 ¶
Upload provides a mock function with given fields: machine, source, destination
func (*Communicator) WaitForReady ¶
WaitForReady provides a mock function with given fields: machine, wait
type Config ¶
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
type CorePluginManager ¶
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.
type Downloader ¶
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 ¶
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 ¶
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 ¶
Capability provides a mock function with given fields: name, args
func (*Guest) HasCapability ¶
HasCapability provides a mock function with given fields: name
func (*Guest) PluginName ¶
PluginName provides a mock function with given fields:
func (*Guest) SetPluginName ¶
SetPluginName provides a mock function with given fields: _a0
type Host ¶
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 ¶
Capability provides a mock function with given fields: name, args
func (*Host) HasCapability ¶
HasCapability provides a mock function with given fields: name
func (*Host) PluginName ¶
PluginName provides a mock function with given fields:
func (*Host) SetPluginName ¶
SetPluginName provides a mock function with given fields: _a0
type Machine ¶
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) 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) MachineState ¶
func (_m *Machine) MachineState() (*core.MachineState, error)
MachineState provides a mock function with given fields:
func (*Machine) ProviderName ¶
ProviderName provides a mock function with given fields:
func (*Machine) ResourceId ¶
ResourceId provides a mock function with given fields:
func (*Machine) SetMachineState ¶
func (_m *Machine) SetMachineState(state *core.MachineState) error
SetMachineState provides a mock function with given fields: state
func (*Machine) Specialize ¶
Specialize provides a mock function with given fields: kind
func (*Machine) SyncedFolders ¶
func (_m *Machine) SyncedFolders() ([]*core.MachineSyncedFolder, error)
SyncedFolders 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 ¶
MachineEntry is an autogenerated mock type for the MachineEntry type
type Named ¶
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 ¶
PluginName provides a mock function with given fields:
func (*Named) SetPluginName ¶
SetPluginName provides a mock function with given fields: _a0
type PluginManager ¶
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 ¶
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 ¶
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) Config ¶
func (_m *Project) Config() (core.Vagrantfile, error)
Config provides a mock function with given fields:
func (*Project) DefaultPrivateKey ¶
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) PrimaryTargetName ¶
PrimaryTargetName provides a mock function with given fields:
func (*Project) ResourceId ¶
ResourceId 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 ¶
TargetNames 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 ¶
VagrantfileName provides a mock function with given fields:
type Provider ¶
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) Capability ¶
Capability provides a mock function with given fields: name, args
func (*Provider) HasCapability ¶
HasCapability provides a mock function with given fields: name
func (*Provider) MachineIdChanged ¶
MachineIdChanged provides a mock function with given fields:
type Provisioner ¶
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 ¶
Push is an autogenerated mock type for the Push type
type Seeder ¶
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.
type StateBag ¶
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.
type SyncedFolder ¶
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
type Target ¶
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) Communicate ¶
func (_m *Target) Communicate() (core.Communicator, error)
Communicate provides a mock function with given fields:
func (*Target) ProviderName ¶
ProviderName provides a mock function with given fields:
func (*Target) ResourceId ¶
ResourceId provides a mock function with given fields:
func (*Target) Specialize ¶
Specialize provides a mock function with given fields: kind
func (*Target) Vagrantfile ¶
func (_m *Target) Vagrantfile() (core.Vagrantfile, error)
Vagrantfile provides a mock function with given fields:
type TargetIndex ¶
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
type Vagrantfile ¶
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) 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:
Source Files
¶
- Basis.go
- Box.go
- BoxCollection.go
- BoxMetadata.go
- CapabilityPlatform.go
- Command.go
- Communicator.go
- Config.go
- ConfigFn.go
- CorePluginManager.go
- Downloader.go
- DownloaderOptions.go
- Guest.go
- Host.go
- Machine.go
- MachineEntry.go
- Named.go
- PluginManager.go
- Project.go
- Provider.go
- Provisioner.go
- Push.go
- Seeder.go
- StateBag.go
- SyncedFolder.go
- Target.go
- TargetIndex.go
- Vagrantfile.go