Documentation
¶
Index ¶
- type CreateEnvironmentInput
- type EnvironmentService
- func (self *EnvironmentService) CreateEnvironment(ctx context.Context, requesterUserID uuid.UUID, input *CreateEnvironmentInput, ...) (*models.EnvironmentResponse, error)
- func (self *EnvironmentService) DeleteEnvironmentByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, ...) error
- func (self *EnvironmentService) GetEnvironmentByID(ctx context.Context, requesterUserID uuid.UUID, teamID uuid.UUID, ...) (*models.EnvironmentResponse, error)
- func (self *EnvironmentService) GetEnvironmentsByProjectID(ctx context.Context, requesterUserID uuid.UUID, teamID uuid.UUID, ...) ([]*models.EnvironmentResponse, error)
- func (self *EnvironmentService) UpdateEnvironment(ctx context.Context, requesterUserID uuid.UUID, input *UpdateEnvironmentInput) (*models.EnvironmentResponse, error)
- func (self *EnvironmentService) VerifyInputs(ctx context.Context, teamID, projectID, environmentID uuid.UUID) (*ent.Team, *ent.Environment, error)
- type UpdateEnvironmentInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEnvironmentInput ¶
type EnvironmentService ¶
type EnvironmentService struct {
// contains filtered or unexported fields
}
Integrate environment management with internal permissions and kubernetes RBAC
func NewEnvironmentService ¶
func NewEnvironmentService(repo repositories.RepositoriesInterface, k8sClient *k8s.KubeClient, deployCtl *deployctl.DeploymentController) *EnvironmentService
func (*EnvironmentService) CreateEnvironment ¶
func (self *EnvironmentService) CreateEnvironment(ctx context.Context, requesterUserID uuid.UUID, input *CreateEnvironmentInput, bearerToken string) (*models.EnvironmentResponse, error)
func (*EnvironmentService) DeleteEnvironmentByID ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.