Documentation
¶
Index ¶
- Constants
- Variables
- type Model
- type 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
Constants ¶
View Source
const ( BackgroundWorkerResourceType = "Background Worker" CronJobResourceType = "Cron Job" PrivateServiceResourceType = "Private Service" StaticSiteResourceType = "Static Site" WebServiceResourceType = "Web Service" )
Variables ¶
View Source
var NonStaticServerTypes = []string{ BackgroundWorkerResourceType, PrivateServiceResourceType, WebServiceResourceType, }
View Source
var NonStaticTypes = append([]string{CronJobResourceType}, NonStaticServerTypes..., )
View Source
var Types = append([]string{StaticSiteResourceType}, NonStaticTypes..., )
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Service *client.Service `json:"service"`
Project *client.Project `json:"project,omitempty"`
Environment *client.Environment `json:"environment,omitempty"`
}
func (Model) EnvironmentName ¶
func (Model) ProjectName ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewRepo ¶
func NewRepo(c *client.ClientWithResponses) *Repo
func (*Repo) CreateService ¶
func (*Repo) DeployService ¶
func (*Repo) GetService ¶
func (*Repo) ListServices ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetService ¶
func (*Service) ListServices ¶
Click to show internal directories.
Click to hide internal directories.