Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) Create(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Environment, error)
- func (c *Controller) FindByUID(ctx context.Context, projectID, environmentUID int64) (*types.Environment, error)
- func (c *Controller) Get(ctx context.Context, projectID int64, environmentUID int64) (*types.Environment, error)
- func (c *Controller) List(ctx context.Context, tenantID, projectID int64) ([]*types.Environment, error)
- func (c *Controller) SoftDelete(ctx context.Context, environment *types.Environment) error
- func (c *Controller) SoftDeleteInProject(ctx context.Context, projectID, now int64) error
- func (c *Controller) Update(ctx context.Context, environmentID int64, in *CreateEnvironmentInput) (*types.Environment, error)
- type CreateEnvironmentInput
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( tx dbtx.Transactor, appCtrl *application.Controller, volumeCtrl *volume.Controller, environmentStore store.EnvironmentStore, ) *Controller
func ProvideController ¶
func ProvideController( tx dbtx.Transactor, appCtrl *application.Controller, volumeCtrl *volume.Controller, environmentStore store.EnvironmentStore, ) *Controller
func (*Controller) Create ¶
func (c *Controller) Create(ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, in *CreateEnvironmentInput) (*types.Environment, error)
func (*Controller) FindByUID ¶
func (c *Controller) FindByUID(ctx context.Context, projectID, environmentUID int64) (*types.Environment, error)
func (*Controller) Get ¶
func (c *Controller) Get(ctx context.Context, projectID int64, environmentUID int64) (*types.Environment, error)
func (*Controller) List ¶
func (c *Controller) List(ctx context.Context, tenantID, projectID int64) ([]*types.Environment, error)
func (*Controller) SoftDelete ¶
func (c *Controller) SoftDelete(ctx context.Context, environment *types.Environment) error
func (*Controller) SoftDeleteInProject ¶
func (c *Controller) SoftDeleteInProject(ctx context.Context, projectID, now int64) error
func (*Controller) Update ¶
func (c *Controller) Update(ctx context.Context, environmentID int64, in *CreateEnvironmentInput) (*types.Environment, error)
type CreateEnvironmentInput ¶
type CreateEnvironmentInput struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.