floci

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

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

func DefaultPorts() map[string]string

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

func (*FlociPlugin) Launch

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

Launch starts the Floci emulator with given configuration

func (*FlociPlugin) Name

func (p *FlociPlugin) Name() string

Name returns the service identifier

func (*FlociPlugin) Stop

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

Stop terminates the Floci service

Jump to

Keyboard shortcuts

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