environment

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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"`
}

Jump to

Keyboard shortcuts

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