Documentation
¶
Index ¶
- func EnableEngine()
- type Library
- type NativeMockEngine
- func (g *NativeMockEngine) GetVersionString() (string, error)
- func (g *NativeMockEngine) ListAllManaged() ([]engine.ManagedMock, error)
- func (g *NativeMockEngine) Restart(wg *sync.WaitGroup)
- func (g *NativeMockEngine) Start(wg *sync.WaitGroup) bool
- func (g *NativeMockEngine) Stop(wg *sync.WaitGroup)
- func (g *NativeMockEngine) StopAllManaged() int
- func (g *NativeMockEngine) StopImmediately(wg *sync.WaitGroup)
- type Provider
- func (p *Provider) Build(configDir string, startOptions engine.StartOptions) engine.MockEngine
- func (p *Provider) Bundle(configDir string, dest string) error
- func (p *Provider) GetEngineType() engine.EngineType
- func (p *Provider) GetStartCommand(args []string, env []string) *exec.Cmd
- func (p *Provider) Provide(policy engine.PullPolicy) error
- func (p *Provider) Satisfied() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
Library implements the engine.EngineLibrary interface for the native engine
func NewLibrary ¶
func NewLibrary() *Library
NewLibrary creates a new instance of the native engine library
func (*Library) CheckPrereqs ¶
func (*Library) IsSealedDistro ¶
func (*Library) ShouldEnsurePlugins ¶
type NativeMockEngine ¶
type NativeMockEngine struct {
// contains filtered or unexported fields
}
NativeMockEngine implements the MockEngine interface for the native binary implementation
func NewNativeMockEngine ¶
func NewNativeMockEngine(configDir string, options engine.StartOptions, provider *Provider) *NativeMockEngine
NewNativeMockEngine creates a new instance of the native mock engine
func (*NativeMockEngine) GetVersionString ¶
func (g *NativeMockEngine) GetVersionString() (string, error)
func (*NativeMockEngine) ListAllManaged ¶
func (g *NativeMockEngine) ListAllManaged() ([]engine.ManagedMock, error)
func (*NativeMockEngine) Restart ¶
func (g *NativeMockEngine) Restart(wg *sync.WaitGroup)
func (*NativeMockEngine) Stop ¶
func (g *NativeMockEngine) Stop(wg *sync.WaitGroup)
func (*NativeMockEngine) StopAllManaged ¶
func (g *NativeMockEngine) StopAllManaged() int
func (*NativeMockEngine) StopImmediately ¶
func (g *NativeMockEngine) StopImmediately(wg *sync.WaitGroup)
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider handles downloading and managing the native binary
func NewProvider ¶
NewProvider creates a new native provider instance
func (*Provider) Build ¶
func (p *Provider) Build(configDir string, startOptions engine.StartOptions) engine.MockEngine
func (*Provider) GetEngineType ¶
func (p *Provider) GetEngineType() engine.EngineType
func (*Provider) GetStartCommand ¶
Click to show internal directories.
Click to hide internal directories.