service_service

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 33 Imported by: 0

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