environment_service

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 14 Imported by: 0 modules, 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

This section is empty.

Functions

This section is empty.

Types

type CreateEnvironmentInput

type CreateEnvironmentInput struct {
	TeamID      uuid.UUID `json:"team_id" format:"uuid" required:"true"`
	ProjectID   uuid.UUID `json:"project_id" format:"uuid" required:"true"`
	Name        string    `json:"name" required:"true"`
	Description *string   `json:"description"`
}

type EnvironmentService

type EnvironmentService struct {
	// contains filtered or unexported fields
}

Integrate environment management with internal permissions and kubernetes RBAC

func (*EnvironmentService) CreateEnvironment

func (self *EnvironmentService) CreateEnvironment(ctx context.Context, requesterUserID uuid.UUID, input *CreateEnvironmentInput, bearerToken string) (*models.EnvironmentResponse, error)

func (*EnvironmentService) DeleteEnvironmentByID

func (self *EnvironmentService) DeleteEnvironmentByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID, projectID, environmentID uuid.UUID) error

func (*EnvironmentService) GetEnvironmentByID

func (self *EnvironmentService) GetEnvironmentByID(ctx context.Context, requesterUserID uuid.UUID, teamID uuid.UUID, projectID uuid.UUID, environmentID uuid.UUID) (*models.EnvironmentResponse, error)

Get a single environment by ID

func (*EnvironmentService) GetEnvironmentsByProjectID

func (self *EnvironmentService) GetEnvironmentsByProjectID(ctx context.Context, requesterUserID uuid.UUID, teamID uuid.UUID, projectID uuid.UUID) ([]*models.EnvironmentResponse, error)

Get all environments in a project

func (*EnvironmentService) UpdateEnvironment

func (self *EnvironmentService) UpdateEnvironment(ctx context.Context, requesterUserID uuid.UUID, input *UpdateEnvironmentInput) (*models.EnvironmentResponse, error)

func (*EnvironmentService) VerifyInputs

func (self *EnvironmentService) VerifyInputs(ctx context.Context, teamID, projectID, environmentID uuid.UUID) (*ent.Team, *ent.Environment, error)

type UpdateEnvironmentInput

type UpdateEnvironmentInput struct {
	TeamID        uuid.UUID `json:"team_id" format:"uuid" required:"true"`
	ProjectID     uuid.UUID `json:"project_id" format:"uuid" required:"true"`
	EnvironmentID uuid.UUID `json:"environment_id" format:"uuid" required:"true"`
	Name          *string   `json:"name"`
	Description   *string   `json:"description"`
}

Jump to

Keyboard shortcuts

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