Documentation
¶
Index ¶
- type ServiceService
- func (self *ServiceService) CreateService(ctx context.Context, requesterUserID uuid.UUID, ...) (*models.ServiceResponse, error)
- func (self *ServiceService) DeleteServiceByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, ...) error
- func (self *ServiceService) DeployAdhocServices(ctx context.Context, services []*ent.Service) ([]*ent.Deployment, error)
- func (self *ServiceService) EnqueueFullBuildDeployments(ctx context.Context, services []*ent.Service) error
- func (self *ServiceService) GetDNSForService(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, ...) (*models.EndpointDiscovery, error)
- func (self *ServiceService) GetServiceByID(ctx context.Context, requesterUserID uuid.UUID, ...) (*models.ServiceResponse, error)
- func (self *ServiceService) GetServicesInEnvironment(ctx context.Context, requesterUserID uuid.UUID, ...) ([]*models.ServiceResponse, error)
- func (self *ServiceService) RedeployServices(ctx context.Context, services []*ent.Service) ([]*ent.Deployment, error)
- func (self *ServiceService) RestartServiceByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, ...) error
- func (self *ServiceService) UpdateService(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, ...) (*models.ServiceResponse, error)
- func (self *ServiceService) VerifyInputs(ctx context.Context, teamID, projectID, environmentID uuid.UUID) (*ent.Environment, *ent.Project, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceService ¶
type ServiceService struct {
// contains filtered or unexported fields
}
Integrate service management with internal permissions and kubernetes RBAC
func NewServiceService ¶
func NewServiceService(cfg *config.Config, repo repositories.RepositoriesInterface, githubClient *github.GithubClient, k8s *k8s.KubeClient, deploymentController *deployctl.DeploymentController, dbProvider *databases.DatabaseProvider, webhookService *webhooks_service.WebhooksService, variableService *variables_service.VariablesService, promClient *prometheus.PrometheusClient, deploymentService *deployments_service.DeploymentService) *ServiceService
func (*ServiceService) CreateService ¶
func (self *ServiceService) CreateService(ctx context.Context, requesterUserID uuid.UUID, input *models.CreateServiceInput, bearerToken string) (*models.ServiceResponse, error)
CreateService creates a new service and its configuration
func (*ServiceService) DeleteServiceByID ¶
func (*ServiceService) DeployAdhocServices ¶
func (self *ServiceService) DeployAdhocServices(ctx context.Context, services []*ent.Service) ([]*ent.Deployment, error)
DeployAdhocServices deploys services that need an ad-hoc deployment (config changes only)
func (*ServiceService) EnqueueFullBuildDeployments ¶
func (self *ServiceService) EnqueueFullBuildDeployments(ctx context.Context, services []*ent.Service) error
EnqueueFullBuildDeployments enqueues full deployment jobs for services that need a complete rebuild
func (*ServiceService) GetDNSForService ¶
func (self *ServiceService) GetDNSForService(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID, projectID, environmentID, serviceID uuid.UUID) (*models.EndpointDiscovery, error)
Get a service by ID
func (*ServiceService) GetServiceByID ¶
func (self *ServiceService) GetServiceByID(ctx context.Context, requesterUserID uuid.UUID, teamID, projectID, environmentID, serviceID uuid.UUID) (*models.ServiceResponse, error)
Get a service by ID
func (*ServiceService) GetServicesInEnvironment ¶
func (self *ServiceService) GetServicesInEnvironment(ctx context.Context, requesterUserID uuid.UUID, teamID, projectID, environmentID uuid.UUID) ([]*models.ServiceResponse, error)
Get all services in an environment
func (*ServiceService) RedeployServices ¶
func (self *ServiceService) RedeployServices(ctx context.Context, services []*ent.Service) ([]*ent.Deployment, error)
RedeployServices determines which services need rebuilding vs redeploying and performs the appropriate action
func (*ServiceService) RestartServiceByID ¶
func (self *ServiceService) RestartServiceByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID, projectID, environmentID, serviceID uuid.UUID) error
Restart a service by ID
func (*ServiceService) UpdateService ¶
func (self *ServiceService) UpdateService(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.UpdateServiceInput) (*models.ServiceResponse, error)
UpdateService updates a service and its configuration
func (*ServiceService) VerifyInputs ¶
func (self *ServiceService) VerifyInputs(ctx context.Context, teamID, projectID, environmentID uuid.UUID) (*ent.Environment, *ent.Project, error)
Click to show internal directories.
Click to hide internal directories.