Documentation
¶
Index ¶
- func EnableEngine()
- type GolangMockEngine
- func (g *GolangMockEngine) GetVersionString() (string, error)
- func (g *GolangMockEngine) ListAllManaged() ([]engine.ManagedMock, error)
- func (g *GolangMockEngine) Restart(wg *sync.WaitGroup)
- func (g *GolangMockEngine) Start(wg *sync.WaitGroup) bool
- func (g *GolangMockEngine) Stop(wg *sync.WaitGroup)
- func (g *GolangMockEngine) StopAllManaged() int
- func (g *GolangMockEngine) StopImmediately(wg *sync.WaitGroup)
- type Library
- 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 GolangMockEngine ¶
type GolangMockEngine struct {
// contains filtered or unexported fields
}
GolangMockEngine implements the MockEngine interface for the golang implementation
func NewGolangMockEngine ¶
func NewGolangMockEngine(configDir string, options engine.StartOptions, provider *Provider) *GolangMockEngine
NewGolangMockEngine creates a new instance of the golang mock engine
func (*GolangMockEngine) GetVersionString ¶
func (g *GolangMockEngine) GetVersionString() (string, error)
func (*GolangMockEngine) ListAllManaged ¶
func (g *GolangMockEngine) ListAllManaged() ([]engine.ManagedMock, error)
func (*GolangMockEngine) Restart ¶
func (g *GolangMockEngine) Restart(wg *sync.WaitGroup)
func (*GolangMockEngine) Stop ¶
func (g *GolangMockEngine) Stop(wg *sync.WaitGroup)
func (*GolangMockEngine) StopAllManaged ¶
func (g *GolangMockEngine) StopAllManaged() int
func (*GolangMockEngine) StopImmediately ¶
func (g *GolangMockEngine) StopImmediately(wg *sync.WaitGroup)
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
Library implements the engine.EngineLibrary interface for the golang engine
func NewLibrary ¶
func NewLibrary() *Library
NewLibrary creates a new instance of the golang engine library
func (*Library) CheckPrereqs ¶
func (*Library) IsSealedDistro ¶
func (*Library) ShouldEnsurePlugins ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider handles downloading and managing the golang binary
func NewProvider ¶
NewProvider creates a new golang 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.