environment

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: 14 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

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