volume

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(configSvc *config.Service, volumeStore store.VolumeStore) *Controller

func ProvideController

func ProvideController(configSvc *config.Service, volumeStore store.VolumeStore) *Controller

func (*Controller) Create

func (c *Controller) Create(ctx context.Context, tenant *types.Tenant, project *types.Project, env *types.Environment, app *types.Application, in *types.VolumeCreateInput) (*types.Volume, error)

func (*Controller) Detach

func (c *Controller) Detach(ctx context.Context, volume *types.Volume) (*types.Volume, error)

func (*Controller) Get

func (c *Controller) Get(ctx context.Context, tenantID, projectID, envID, volumeUID int64) (*types.Volume, error)

func (*Controller) ListForApp

func (c *Controller) ListForApp(ctx context.Context, app *types.Application) ([]*types.Volume, error)

func (*Controller) ListUnattached

func (c *Controller) ListUnattached(ctx context.Context, tenantID, projectID, envID int64, serverID *int64) ([]*types.Volume, error)

func (*Controller) SoftDelete

func (c *Controller) SoftDelete(ctx context.Context, volume *types.Volume) error

func (*Controller) SoftDeleteInApplication

func (c *Controller) SoftDeleteInApplication(ctx context.Context, appID, now int64) error

func (*Controller) Update

func (c *Controller) Update(ctx context.Context, volume *types.Volume) (*types.Volume, error)

Jump to

Keyboard shortcuts

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