Help us shape the future of Go! Take the 2026 Go Developer Survey

objectstorage

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderProject = "baseharbor-object-storage"
	ProviderService = "seaweedfs"
	ProviderNetwork = "baseharbor-object-storage"
	ProviderImage   = "chrislusf/seaweedfs:4.47"
)

Variables

This section is empty.

Functions

func DestroySharedProvider

func DestroySharedProvider(ctx context.Context, runtime Runtime) error

func PhysicalBucketName

func PhysicalBucketName(m application.Manifest, logical string) string

func VerifyApplicationBuckets

func VerifyApplicationBuckets(ctx context.Context, runtime Runtime, app application.Manifest, files application.RuntimeFiles) error

Types

type Driver

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

func NewDriver

func NewDriver(runtime Runtime, app application.Manifest, files application.RuntimeFiles) *Driver

func (*Driver) Bind

func (d *Driver) Bind(_ context.Context, resource capability.Resource, _ capability.Binding) error

func (*Driver) Descriptor

func (d *Driver) Descriptor() capability.Provider

func (*Driver) DestroyBucket

func (d *Driver) DestroyBucket(ctx context.Context, logicalBucket string) error

func (*Driver) Preflight

func (d *Driver) Preflight(_ context.Context, resource capability.Resource, binding capability.Binding) error

func (*Driver) Provision

func (d *Driver) Provision(ctx context.Context, resource capability.Resource, _ capability.Binding) error

func (*Driver) Rollback

func (d *Driver) Rollback(ctx context.Context)

func (*Driver) Verify

func (d *Driver) Verify(ctx context.Context, resource capability.Resource, _ capability.Binding) error

type ProviderFiles

type ProviderFiles struct {
	Dir     string
	Compose string
	Env     string
}

func EnsureProviderFiles

func EnsureProviderFiles() (ProviderFiles, error)

func ExistingProviderFiles

func ExistingProviderFiles() (ProviderFiles, error)

type Runtime

type Runtime interface {
	ConfigProject(context.Context, string, string, string) error
	UpProject(context.Context, string, string, string) error
	ExecProject(context.Context, string, string, string, string, ...string) (string, error)
	ExecProjectInput(context.Context, string, string, string, []byte, string, ...string) (string, error)
	DestroyProject(context.Context, string, string, string) error
}

Jump to

Keyboard shortcuts

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