plugin

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	BinaryName  string
	BinaryPath  string
	DockerImage string
	Port        int
	HostPort    int
	Environment map[string]string
	WorkDir     string
}

type ConnectionInfo

type ConnectionInfo struct {
	Host     string
	Port     int
	Protocol string
	Metadata map[string]string
}

type LogOptions

type LogOptions struct {
	Since  time.Time
	Until  time.Time
	Tail   int
	Follow bool
}

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) GetService

func (r *Registry) GetService(name string) (ServicePlugin, error)

func (*Registry) ListServices

func (r *Registry) ListServices() []string

func (*Registry) RegisterService

func (r *Registry) RegisterService(plugin ServicePlugin) error

type ServicePlugin

type ServicePlugin interface {
	Name() string
	Launch(ctx context.Context, config map[string]interface{}) error
	IsReady(ctx context.Context) (bool, error)
	Stop(ctx context.Context) error
	GetConnectionInfo() (*ConnectionInfo, error)
	GetLogs(ctx context.Context, opts *LogOptions) ([]string, error)
}

type TestFailure

type TestFailure struct {
	Name    string
	Feature string
	Message string
	Stack   string
}

type TestResult

type TestResult struct {
	Total     int
	Passed    int
	Failed    int
	Skipped   int
	Duration  time.Duration
	ReportURL string
	Failures  []TestFailure
}

Directories

Path Synopsis
gcs
svcconfig
Package svcconfig holds parsing helpers shared by the mock service plugins.
Package svcconfig holds parsing helpers shared by the mock service plugins.

Jump to

Keyboard shortcuts

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