Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) Create(ctx context.Context, tenant *types.Tenant, project *types.Project, ...) (*types.Volume, error)
- func (c *Controller) Detach(ctx context.Context, volume *types.Volume) (*types.Volume, error)
- func (c *Controller) Get(ctx context.Context, tenantID, projectID, envID, volumeUID int64) (*types.Volume, error)
- func (c *Controller) ListForApp(ctx context.Context, app *types.Application) ([]*types.Volume, error)
- func (c *Controller) ListUnattached(ctx context.Context, tenantID, projectID, envID int64, serverID *int64) ([]*types.Volume, error)
- func (c *Controller) SoftDelete(ctx context.Context, volume *types.Volume) error
- func (c *Controller) SoftDeleteInApplication(ctx context.Context, appID, now int64) error
- func (c *Controller) Update(ctx context.Context, volume *types.Volume) (*types.Volume, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
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) ListForApp ¶
func (c *Controller) ListForApp(ctx context.Context, app *types.Application) ([]*types.Volume, error)
func (*Controller) ListUnattached ¶
func (*Controller) SoftDelete ¶
func (*Controller) SoftDeleteInApplication ¶
func (c *Controller) SoftDeleteInApplication(ctx context.Context, appID, now int64) error
Click to show internal directories.
Click to hide internal directories.