service_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: 33 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 ServiceService

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

Integrate service management with internal permissions and kubernetes RBAC

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 (self *ServiceService) DeleteServiceByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID, projectID, environmentID, serviceID uuid.UUID) error

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)

Jump to

Keyboard shortcuts

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