gcs

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSConfig

type GCSConfig struct {
	Image         string   `json:"image"`
	Port          string   `json:"port"`
	ProjectID     string   `json:"project-id"`
	Buckets       []string `json:"buckets"`
	ContainerName string   `json:"container-name"`
}

GCSConfig holds GCS-specific configuration

type GCSPlugin

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

GCSPlugin implements the ServicePlugin interface for the fake-gcs-server Google Cloud Storage emulator.

func NewGCSPlugin

func NewGCSPlugin(dockerClient *docker.Client, logger *zap.Logger) *GCSPlugin

NewGCSPlugin creates a new GCS service plugin

func (*GCSPlugin) GetConnectionInfo

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

GetConnectionInfo returns connection details

func (*GCSPlugin) GetLogs

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

GetLogs retrieves service logs

func (*GCSPlugin) IsReady

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

IsReady checks if the GCS emulator REST API is accepting requests

func (*GCSPlugin) Launch

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

Launch starts the GCS emulator with given configuration

func (*GCSPlugin) Name

func (p *GCSPlugin) Name() string

Name returns the service identifier

func (*GCSPlugin) Stop

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

Stop terminates the GCS service

Jump to

Keyboard shortcuts

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