Documentation
¶
Overview ¶
Package environment manages promotion stages (dev → staging → prod) within a workspace. An Environment carries an ordering rank and an approval policy that the release-promotion flow enforces.
Index ¶
- Variables
- type Input
- type Service
- func (s *Service) Create(workspaceID uint, in Input) (*models.Environment, error)
- func (s *Service) Delete(workspaceID, id uint) error
- func (s *Service) Get(workspaceID, id uint) (*models.Environment, error)
- func (s *Service) List(workspaceID uint) ([]models.Environment, error)
- func (s *Service) Update(workspaceID, id uint, in Input) (*models.Environment, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
Name string
DisplayName string
Description string
Rank int
RequiredApprovals int
GitSourceID *uint
}
Input is the create/update payload for an environment. Name is the desired unique slug handle; DisplayName is the free-text label (falls back to Name).
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages environments.
func NewService ¶
func NewService(repo *repositories.EnvironmentRepository) *Service
NewService wires the environment service.
Click to show internal directories.
Click to hide internal directories.