native

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableEngine

func EnableEngine()

EnableEngine registers the native engine implementation

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 (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 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) GetID added in v1.8.0

func (g *NativeMockEngine) GetID() string

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

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

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)

func (*NativeMockEngine) StopManaged added in v1.8.0

func (g *NativeMockEngine) StopManaged(id string) (bool, error)

type Provider

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

Provider handles downloading and managing the native binary

func NewProvider

func NewProvider(version string, binDir string) *Provider

NewProvider creates a new native 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