mountebank

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MountebankConfig

type MountebankConfig struct {
	Image         string `json:"image"`
	Port          string `json:"port"`
	ImpostersPath string `json:"imposters-path"`
	ContainerName string `json:"container-name"`
}

MountebankConfig holds Mountebank-specific configuration

type MountebankPlugin

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

MountebankPlugin implements the ServicePlugin interface for Mountebank, a service virtualization tool used to mock HTTP/TCP dependencies.

func NewMountebankPlugin

func NewMountebankPlugin(dockerClient *docker.Client, logger *zap.Logger) *MountebankPlugin

NewMountebankPlugin creates a new Mountebank service plugin

func (*MountebankPlugin) GetConnectionInfo

func (p *MountebankPlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)

GetConnectionInfo returns connection details

func (*MountebankPlugin) GetLogs

func (p *MountebankPlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)

GetLogs retrieves service logs

func (*MountebankPlugin) IsReady

func (p *MountebankPlugin) IsReady(ctx context.Context) (bool, error)

IsReady checks if the Mountebank admin API is accepting requests

func (*MountebankPlugin) Launch

func (p *MountebankPlugin) Launch(ctx context.Context, config map[string]interface{}) error

Launch starts the Mountebank service with given configuration

func (*MountebankPlugin) Name

func (p *MountebankPlugin) Name() string

Name returns the service identifier

func (*MountebankPlugin) Stop

func (p *MountebankPlugin) Stop(ctx context.Context) error

Stop terminates the Mountebank service

Jump to

Keyboard shortcuts

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