models

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk struct {
	Name      types.String `tfsdk:"name"`
	MountPath types.String `tfsdk:"mount_path"`
	SizeGB    types.Int64  `tfsdk:"size_gb"`
}

type Owner

type Owner struct {
	ID    types.String `tfsdk:"id"`
	Name  types.String `tfsdk:"name"`
	Email types.String `tfsdk:"email"`
	Type  types.String `tfsdk:"type"`
}

func (Owner) FromResponse

func (o Owner) FromResponse(response render.Owner) Owner

type PrivateServiceDetails

type PrivateServiceDetails struct {
	Env                        types.String `tfsdk:"env"`
	Region                     types.String `tfsdk:"region"`
	Plan                       types.String `tfsdk:"plan"`
	PullRequestPreviewsEnabled types.Bool   `tfsdk:"pull_request_previews_enabled"`
	Url                        types.String `tfsdk:"url"`
	Disk                       *Disk        `tfsdk:"disk"`
}

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) FromResponse

func (s Service) FromResponse(response render.Service) Service

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

type ServiceEnvironment

type ServiceEnvironment struct {
	Service   types.String                 `tfsdk:"service"`
	Variables []ServiceEnvironmentVariable `tfsdk:"variables"`
}

func (ServiceEnvironment) FromResponse

type ServiceEnvironmentVariable

type ServiceEnvironmentVariable struct {
	Key       types.String `tfsdk:"key"`
	Value     types.String `tfsdk:"value"`
	Generated types.Bool   `tfsdk:"generated"`
}

func (ServiceEnvironmentVariable) FromResponse

func (ServiceEnvironmentVariable) ToEnvVarsItemPATCH

func (v ServiceEnvironmentVariable) ToEnvVarsItemPATCH() (*render.EnvVarsPATCH_Item, error)

type StaticSiteDetails

type StaticSiteDetails struct {
	BuildCommand               types.String `tfsdk:"build_command"`
	PublishPath                types.String `tfsdk:"publish_path"`
	PullRequestPreviewsEnabled types.Bool   `tfsdk:"pull_request_previews_enabled"`
	Url                        types.String `tfsdk:"url"`
}

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"`
}

type WebServiceDetailsNative

type WebServiceDetailsNative struct {
	BuildCommand types.String `tfsdk:"build_command"`
	StartCommand types.String `tfsdk:"start_command"`
}

Jump to

Keyboard shortcuts

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