Versions in this module Expand all Collapse all v1 v1.1.2 Jan 31, 2025 v1.1.1 Jan 30, 2025 Changes in this version + const BackgroundWorkerResourceType + const CronJobResourceType + const PrivateServiceResourceType + const StaticSiteResourceType + const WebServiceResourceType + var NonStaticServerTypes = []string + var NonStaticTypes = append([]string{ ... }, NonStaticServerTypes) + var Types = append([]string{ ... }, NonStaticTypes) + type Model struct + Environment *client.Environment + Project *client.Project + Service *client.Service + func (s Model) EnvironmentName() string + func (s Model) ID() string + func (s Model) Name() string + func (s Model) ProjectName() string + func (s Model) Type() string + type Repo struct + func NewRepo(c *client.ClientWithResponses) *Repo + func (s *Repo) CreateService(ctx context.Context, data client.CreateServiceJSONRequestBody) (*client.Service, error) + func (s *Repo) DeployService(ctx context.Context, svc *client.Service) (*client.Deploy, error) + func (s *Repo) GetService(ctx context.Context, id string) (*client.Service, error) + func (s *Repo) ListServices(ctx context.Context, params *client.ListServicesParams) ([]*client.Service, error) + func (s *Repo) RestartService(ctx context.Context, id string) error + func (s *Repo) UpdateService(ctx context.Context, id string, data client.UpdateServiceJSONRequestBody) (*client.Service, error) + type Service struct + func NewService(repo *Repo, environmentRepo *environment.Repo, projectRepo *project.Repo) *Service + func (s *Service) GetService(ctx context.Context, id string) (*Model, error) + func (s *Service) ListServices(ctx context.Context, params *client.ListServicesParams) ([]*Model, error) + func (s *Service) RestartService(ctx context.Context, id string) error