golang

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableEngine

func EnableEngine()

EnableEngine registers the Golang engine implementation

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) Start

func (g *GolangMockEngine) Start(wg *sync.WaitGroup) bool

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 (l *Library) CheckPrereqs() (bool, []string)

func (*Library) GetProvider

func (l *Library) GetProvider(version string) engine.Provider

func (*Library) IsSealedDistro

func (l *Library) IsSealedDistro() bool

func (*Library) List

func (l *Library) List() ([]engine.EngineMetadata, error)

func (*Library) ShouldEnsurePlugins

func (l *Library) ShouldEnsurePlugins() bool

type Provider

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

Provider handles downloading and managing the golang binary

func NewProvider

func NewProvider(version string, binDir string) *Provider

NewProvider creates a new golang provider instance

func (*Provider) Build

func (p *Provider) Build(configDir string, startOptions engine.StartOptions) engine.MockEngine

func (*Provider) Bundle

func (p *Provider) Bundle(configDir string, dest string) error

func (*Provider) GetEngineType

func (p *Provider) GetEngineType() engine.EngineType

func (*Provider) GetStartCommand

func (p *Provider) GetStartCommand(args []string, env []string) *exec.Cmd

func (*Provider) Provide

func (p *Provider) Provide(policy engine.PullPolicy) error

func (*Provider) Satisfied

func (p *Provider) Satisfied() bool

Jump to

Keyboard shortcuts

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