Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Owner ¶
type PrivateServiceDetails ¶
type Service ¶
type Service struct {
ID types.String `tfsdk:"id"`
Name types.String `tfsdk:"name"`
Type types.String `tfsdk:"type"`
Repo types.String `tfsdk:"repo"`
Branch types.String `tfsdk:"branch"`
Owner types.String `tfsdk:"owner"`
AutoDeploy types.Bool `tfsdk:"auto_deploy"`
WebServiceDetails *WebServiceDetails `tfsdk:"web_service_details"`
StaticSiteDetails *StaticSiteDetails `tfsdk:"static_site_details"`
PrivateServiceDetails *PrivateServiceDetails `tfsdk:"private_service_details"`
}
func (Service) ToServicePATCH ¶
func (s Service) ToServicePATCH() (*render.ServicePATCH, error)
func (Service) ToServicePOST ¶
func (s Service) ToServicePOST(ownerId string) (*render.ServicePOST, error)
type ServiceCustomDomain ¶
type ServiceCustomDomain struct {
ServiceID types.String `tfsdk:"service_id"`
DomainName types.String `tfsdk:"domain_name"`
}
func (ServiceCustomDomain) FromResponse ¶
func (s ServiceCustomDomain) FromResponse(response render.CustomDomain) ServiceCustomDomain
type ServiceEnvironment ¶
type ServiceEnvironment struct {
Service types.String `tfsdk:"service"`
Variables []ServiceEnvironmentVariable `tfsdk:"variables"`
}
func (ServiceEnvironment) FromResponse ¶
func (s ServiceEnvironment) FromResponse(variables []ServiceEnvironmentVariable) ServiceEnvironment
type ServiceEnvironmentVariable ¶
type ServiceEnvironmentVariable struct {
Key types.String `tfsdk:"key"`
Value types.String `tfsdk:"value"`
Generated types.Bool `tfsdk:"generated"`
}
func (ServiceEnvironmentVariable) FromResponse ¶
func (v ServiceEnvironmentVariable) FromResponse(response render.EnvVar) ServiceEnvironmentVariable
func (ServiceEnvironmentVariable) ToEnvVarsItemPATCH ¶
func (v ServiceEnvironmentVariable) ToEnvVarsItemPATCH() (*render.EnvVarsPATCH_Item, error)
type StaticSiteDetails ¶
type WebServiceDetails ¶
type WebServiceDetails struct {
Env types.String `tfsdk:"env"`
Region types.String `tfsdk:"region"`
Plan types.String `tfsdk:"plan"`
PullRequestPreviewsEnabled types.Bool `tfsdk:"pull_request_previews_enabled"`
HealthCheckPath types.String `tfsdk:"health_check_path"`
Native *WebServiceDetailsNative `tfsdk:"native"`
Url types.String `tfsdk:"url"`
}
Click to show internal directories.
Click to hide internal directories.