Documentation
¶
Index ¶
- func ConfigKeys() []string
- func DefaultPorts() map[string]string
- type FlociConfig
- type FlociPlugin
- func (p *FlociPlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)
- func (p *FlociPlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)
- func (p *FlociPlugin) IsReady(ctx context.Context) (bool, error)
- func (p *FlociPlugin) Launch(ctx context.Context, config map[string]interface{}) error
- func (p *FlociPlugin) Name() string
- func (p *FlociPlugin) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigKeys ¶
func ConfigKeys() []string
ConfigKeys lists every mock-config key the plugin accepts (aliases included).
func DefaultPorts ¶
DefaultPorts returns the host port used for each port key when the config does not set it.
Types ¶
type FlociConfig ¶
type FlociConfig struct {
Image string `json:"image"`
Port string `json:"port"`
Region string `json:"region"`
Buckets []string `json:"buckets"`
Queues []string `json:"queues"`
ContainerName string `json:"container-name"`
}
FlociConfig holds Floci-specific configuration
type FlociPlugin ¶
type FlociPlugin struct {
// contains filtered or unexported fields
}
FlociPlugin implements the ServicePlugin interface for Floci, a local AWS emulator serving S3, SQS and other AWS APIs on a single port.
func NewFlociPlugin ¶
func NewFlociPlugin(dockerClient *docker.Client, logger *zap.Logger) *FlociPlugin
NewFlociPlugin creates a new Floci service plugin
func (*FlociPlugin) GetConnectionInfo ¶
func (p *FlociPlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)
GetConnectionInfo returns connection details
func (*FlociPlugin) GetLogs ¶
func (p *FlociPlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)
GetLogs retrieves service logs
func (*FlociPlugin) IsReady ¶
func (p *FlociPlugin) IsReady(ctx context.Context) (bool, error)
IsReady checks if the Floci emulator is serving requests
Click to show internal directories.
Click to hide internal directories.