Documentation
¶
Index ¶
- type MountebankConfig
- type MountebankPlugin
- func (p *MountebankPlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)
- func (p *MountebankPlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)
- func (p *MountebankPlugin) IsReady(ctx context.Context) (bool, error)
- func (p *MountebankPlugin) Launch(ctx context.Context, config map[string]interface{}) error
- func (p *MountebankPlugin) Name() string
- func (p *MountebankPlugin) Stop(ctx context.Context) error
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
Click to show internal directories.
Click to hide internal directories.