volume

package
v0.0.2-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) SoftDeleteInEnvironment

func (c *Controller) SoftDeleteInEnvironment(ctx context.Context, envID, 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