provider

package
v0.4.0 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: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewCustomDomainResource added in v0.2.0

func NewCustomDomainResource() resource.Resource

func NewDeploymentTriggerResource added in v0.1.2

func NewDeploymentTriggerResource() resource.Resource

func NewEnvironmentResource

func NewEnvironmentResource() resource.Resource

func NewProjectResource

func NewProjectResource() resource.Resource

func NewServiceDomainResource added in v0.2.0

func NewServiceDomainResource() resource.Resource

func NewServiceResource

func NewServiceResource() resource.Resource

func NewSharedVariableResource added in v0.1.0

func NewSharedVariableResource() resource.Resource

func NewTcpProxyResource added in v0.3.0

func NewTcpProxyResource() resource.Resource

func NewVariableResource added in v0.1.0

func NewVariableResource() resource.Resource

Types

type Builder added in v0.1.1

type Builder string
const (
	BuilderHeroku   Builder = "HEROKU"
	BuilderNixpacks Builder = "NIXPACKS"
	BuilderPaketo   Builder = "PAKETO"
)

type CustomDomain added in v0.2.0

type CustomDomain struct {
	Id            string             `json:"id"`
	Domain        string             `json:"domain"`
	Status        CustomDomainStatus `json:"status"`
	EnvironmentId string             `json:"environmentId"`
	ServiceId     string             `json:"serviceId"`
}

CustomDomain includes the GraphQL fields of CustomDomain requested by the fragment CustomDomain.

func (*CustomDomain) GetDomain added in v0.2.0

func (v *CustomDomain) GetDomain() string

GetDomain returns CustomDomain.Domain, and is useful for accessing the field via an interface.

func (*CustomDomain) GetEnvironmentId added in v0.2.0

func (v *CustomDomain) GetEnvironmentId() string

GetEnvironmentId returns CustomDomain.EnvironmentId, and is useful for accessing the field via an interface.

func (*CustomDomain) GetId added in v0.2.0

func (v *CustomDomain) GetId() string

GetId returns CustomDomain.Id, and is useful for accessing the field via an interface.

func (*CustomDomain) GetServiceId added in v0.2.0

func (v *CustomDomain) GetServiceId() string

GetServiceId returns CustomDomain.ServiceId, and is useful for accessing the field via an interface.

func (*CustomDomain) GetStatus added in v0.2.0

func (v *CustomDomain) GetStatus() CustomDomainStatus

GetStatus returns CustomDomain.Status, and is useful for accessing the field via an interface.

type CustomDomainCreateInput added in v0.2.0

type CustomDomainCreateInput struct {
	Domain        string `json:"domain"`
	EnvironmentId string `json:"environmentId"`
	ServiceId     string `json:"serviceId"`
}

func (*CustomDomainCreateInput) GetDomain added in v0.2.0

func (v *CustomDomainCreateInput) GetDomain() string

GetDomain returns CustomDomainCreateInput.Domain, and is useful for accessing the field via an interface.

func (*CustomDomainCreateInput) GetEnvironmentId added in v0.2.0

func (v *CustomDomainCreateInput) GetEnvironmentId() string

GetEnvironmentId returns CustomDomainCreateInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*CustomDomainCreateInput) GetServiceId added in v0.2.0

func (v *CustomDomainCreateInput) GetServiceId() string

GetServiceId returns CustomDomainCreateInput.ServiceId, and is useful for accessing the field via an interface.

type CustomDomainResource added in v0.2.0

type CustomDomainResource struct {
	// contains filtered or unexported fields
}

func (*CustomDomainResource) Configure added in v0.2.0

func (*CustomDomainResource) Create added in v0.2.0

func (*CustomDomainResource) Delete added in v0.2.0

func (*CustomDomainResource) ImportState added in v0.2.0

func (*CustomDomainResource) Metadata added in v0.2.0

func (*CustomDomainResource) Read added in v0.2.0

func (*CustomDomainResource) Schema added in v0.2.0

func (*CustomDomainResource) Update added in v0.2.0

type CustomDomainResourceModel added in v0.2.0

type CustomDomainResourceModel struct {
	Id             types.String `tfsdk:"id"`
	Domain         types.String `tfsdk:"domain"`
	EnvironmentId  types.String `tfsdk:"environment_id"`
	ServiceId      types.String `tfsdk:"service_id"`
	ProjectId      types.String `tfsdk:"project_id"`
	HostLabel      types.String `tfsdk:"host_label"`
	Zone           types.String `tfsdk:"zone"`
	DNSRecordValue types.String `tfsdk:"dns_record_value"`
}

type CustomDomainStatus added in v0.2.0

type CustomDomainStatus struct {
	DnsRecords []CustomDomainStatusDnsRecordsDNSRecords `json:"dnsRecords"`
}

CustomDomainStatus includes the requested fields of the GraphQL type CustomDomainStatus.

func (*CustomDomainStatus) GetDnsRecords added in v0.2.0

GetDnsRecords returns CustomDomainStatus.DnsRecords, and is useful for accessing the field via an interface.

type CustomDomainStatusDnsRecordsDNSRecords added in v0.2.0

type CustomDomainStatusDnsRecordsDNSRecords struct {
	Hostlabel     string `json:"hostlabel"`
	RequiredValue string `json:"requiredValue"`
	Zone          string `json:"zone"`
}

CustomDomainStatusDnsRecordsDNSRecords includes the requested fields of the GraphQL type DNSRecords.

func (*CustomDomainStatusDnsRecordsDNSRecords) GetHostlabel added in v0.2.0

GetHostlabel returns CustomDomainStatusDnsRecordsDNSRecords.Hostlabel, and is useful for accessing the field via an interface.

func (*CustomDomainStatusDnsRecordsDNSRecords) GetRequiredValue added in v0.2.0

func (v *CustomDomainStatusDnsRecordsDNSRecords) GetRequiredValue() string

GetRequiredValue returns CustomDomainStatusDnsRecordsDNSRecords.RequiredValue, and is useful for accessing the field via an interface.

func (*CustomDomainStatusDnsRecordsDNSRecords) GetZone added in v0.2.0

GetZone returns CustomDomainStatusDnsRecordsDNSRecords.Zone, and is useful for accessing the field via an interface.

type DeploymentTrigger added in v0.1.2

type DeploymentTrigger struct {
	Id            string `json:"id"`
	Provider      string `json:"provider"`
	Repository    string `json:"repository"`
	Branch        string `json:"branch"`
	CheckSuites   bool   `json:"checkSuites"`
	ProjectId     string `json:"projectId"`
	ServiceId     string `json:"serviceId"`
	EnvironmentId string `json:"environmentId"`
}

DeploymentTrigger includes the GraphQL fields of DeploymentTrigger requested by the fragment DeploymentTrigger.

func (*DeploymentTrigger) GetBranch added in v0.1.2

func (v *DeploymentTrigger) GetBranch() string

GetBranch returns DeploymentTrigger.Branch, and is useful for accessing the field via an interface.

func (*DeploymentTrigger) GetCheckSuites added in v0.1.2

func (v *DeploymentTrigger) GetCheckSuites() bool

GetCheckSuites returns DeploymentTrigger.CheckSuites, and is useful for accessing the field via an interface.

func (*DeploymentTrigger) GetEnvironmentId added in v0.1.2

func (v *DeploymentTrigger) GetEnvironmentId() string

GetEnvironmentId returns DeploymentTrigger.EnvironmentId, and is useful for accessing the field via an interface.

func (*DeploymentTrigger) GetId added in v0.1.2

func (v *DeploymentTrigger) GetId() string

GetId returns DeploymentTrigger.Id, and is useful for accessing the field via an interface.

func (*DeploymentTrigger) GetProjectId added in v0.1.2

func (v *DeploymentTrigger) GetProjectId() string

GetProjectId returns DeploymentTrigger.ProjectId, and is useful for accessing the field via an interface.

func (*DeploymentTrigger) GetProvider added in v0.1.2

func (v *DeploymentTrigger) GetProvider() string

GetProvider returns DeploymentTrigger.Provider, and is useful for accessing the field via an interface.

func (*DeploymentTrigger) GetRepository added in v0.1.2

func (v *DeploymentTrigger) GetRepository() string

GetRepository returns DeploymentTrigger.Repository, and is useful for accessing the field via an interface.

func (*DeploymentTrigger) GetServiceId added in v0.1.2

func (v *DeploymentTrigger) GetServiceId() string

GetServiceId returns DeploymentTrigger.ServiceId, and is useful for accessing the field via an interface.

type DeploymentTriggerCreateInput added in v0.1.2

type DeploymentTriggerCreateInput struct {
	Branch        string  `json:"branch"`
	CheckSuites   bool    `json:"checkSuites"`
	EnvironmentId string  `json:"environmentId"`
	ProjectId     string  `json:"projectId"`
	Provider      string  `json:"provider"`
	Repository    string  `json:"repository"`
	RootDirectory *string `json:"rootDirectory,omitempty"`
	ServiceId     string  `json:"serviceId"`
}

func (*DeploymentTriggerCreateInput) GetBranch added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetBranch() string

GetBranch returns DeploymentTriggerCreateInput.Branch, and is useful for accessing the field via an interface.

func (*DeploymentTriggerCreateInput) GetCheckSuites added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetCheckSuites() bool

GetCheckSuites returns DeploymentTriggerCreateInput.CheckSuites, and is useful for accessing the field via an interface.

func (*DeploymentTriggerCreateInput) GetEnvironmentId added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetEnvironmentId() string

GetEnvironmentId returns DeploymentTriggerCreateInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*DeploymentTriggerCreateInput) GetProjectId added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetProjectId() string

GetProjectId returns DeploymentTriggerCreateInput.ProjectId, and is useful for accessing the field via an interface.

func (*DeploymentTriggerCreateInput) GetProvider added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetProvider() string

GetProvider returns DeploymentTriggerCreateInput.Provider, and is useful for accessing the field via an interface.

func (*DeploymentTriggerCreateInput) GetRepository added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetRepository() string

GetRepository returns DeploymentTriggerCreateInput.Repository, and is useful for accessing the field via an interface.

func (*DeploymentTriggerCreateInput) GetRootDirectory added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetRootDirectory() *string

GetRootDirectory returns DeploymentTriggerCreateInput.RootDirectory, and is useful for accessing the field via an interface.

func (*DeploymentTriggerCreateInput) GetServiceId added in v0.1.2

func (v *DeploymentTriggerCreateInput) GetServiceId() string

GetServiceId returns DeploymentTriggerCreateInput.ServiceId, and is useful for accessing the field via an interface.

type DeploymentTriggerResource added in v0.1.2

type DeploymentTriggerResource struct {
	// contains filtered or unexported fields
}

func (*DeploymentTriggerResource) Configure added in v0.1.2

func (*DeploymentTriggerResource) Create added in v0.1.2

func (*DeploymentTriggerResource) Delete added in v0.1.2

func (*DeploymentTriggerResource) ImportState added in v0.1.2

func (*DeploymentTriggerResource) Metadata added in v0.1.2

func (*DeploymentTriggerResource) Read added in v0.1.2

func (*DeploymentTriggerResource) Schema added in v0.1.2

func (*DeploymentTriggerResource) Update added in v0.1.2

type DeploymentTriggerResourceModel added in v0.1.2

type DeploymentTriggerResourceModel struct {
	Id            types.String `tfsdk:"id"`
	Repository    types.String `tfsdk:"repository"`
	Branch        types.String `tfsdk:"branch"`
	CheckSuites   types.Bool   `tfsdk:"check_suites"`
	EnvironmentId types.String `tfsdk:"environment_id"`
	ServiceId     types.String `tfsdk:"service_id"`
	ProjectId     types.String `tfsdk:"project_id"`
}

type DeploymentTriggerUpdateInput added in v0.1.2

type DeploymentTriggerUpdateInput struct {
	Branch        string  `json:"branch"`
	CheckSuites   bool    `json:"checkSuites"`
	Repository    string  `json:"repository"`
	RootDirectory *string `json:"rootDirectory,omitempty"`
}

func (*DeploymentTriggerUpdateInput) GetBranch added in v0.1.2

func (v *DeploymentTriggerUpdateInput) GetBranch() string

GetBranch returns DeploymentTriggerUpdateInput.Branch, and is useful for accessing the field via an interface.

func (*DeploymentTriggerUpdateInput) GetCheckSuites added in v0.1.2

func (v *DeploymentTriggerUpdateInput) GetCheckSuites() bool

GetCheckSuites returns DeploymentTriggerUpdateInput.CheckSuites, and is useful for accessing the field via an interface.

func (*DeploymentTriggerUpdateInput) GetRepository added in v0.1.2

func (v *DeploymentTriggerUpdateInput) GetRepository() string

GetRepository returns DeploymentTriggerUpdateInput.Repository, and is useful for accessing the field via an interface.

func (*DeploymentTriggerUpdateInput) GetRootDirectory added in v0.1.2

func (v *DeploymentTriggerUpdateInput) GetRootDirectory() *string

GetRootDirectory returns DeploymentTriggerUpdateInput.RootDirectory, and is useful for accessing the field via an interface.

type Environment

type Environment struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	ProjectId string `json:"projectId"`
}

Environment includes the GraphQL fields of Environment requested by the fragment Environment.

func (*Environment) GetId

func (v *Environment) GetId() string

GetId returns Environment.Id, and is useful for accessing the field via an interface.

func (*Environment) GetName

func (v *Environment) GetName() string

GetName returns Environment.Name, and is useful for accessing the field via an interface.

func (*Environment) GetProjectId

func (v *Environment) GetProjectId() string

GetProjectId returns Environment.ProjectId, and is useful for accessing the field via an interface.

type EnvironmentCreateInput

type EnvironmentCreateInput struct {
	Ephemeral bool   `json:"ephemeral"`
	Name      string `json:"name"`
	ProjectId string `json:"projectId"`
	// When committing the changes immediately, skip any initial deployments.
	SkipInitialDeploys bool `json:"skipInitialDeploys"`
	// Create the environment with all of the services, volumes, configuration, and variables from this source environment.
	SourceEnvironmentId *string `json:"sourceEnvironmentId,omitempty"`
	// Stage the initial changes for the environment. If false (default), the changes will be committed immediately.
	StageInitialChanges bool `json:"stageInitialChanges"`
}

func (*EnvironmentCreateInput) GetEphemeral

func (v *EnvironmentCreateInput) GetEphemeral() bool

GetEphemeral returns EnvironmentCreateInput.Ephemeral, and is useful for accessing the field via an interface.

func (*EnvironmentCreateInput) GetName

func (v *EnvironmentCreateInput) GetName() string

GetName returns EnvironmentCreateInput.Name, and is useful for accessing the field via an interface.

func (*EnvironmentCreateInput) GetProjectId

func (v *EnvironmentCreateInput) GetProjectId() string

GetProjectId returns EnvironmentCreateInput.ProjectId, and is useful for accessing the field via an interface.

func (*EnvironmentCreateInput) GetSkipInitialDeploys added in v0.4.0

func (v *EnvironmentCreateInput) GetSkipInitialDeploys() bool

GetSkipInitialDeploys returns EnvironmentCreateInput.SkipInitialDeploys, and is useful for accessing the field via an interface.

func (*EnvironmentCreateInput) GetSourceEnvironmentId added in v0.1.0

func (v *EnvironmentCreateInput) GetSourceEnvironmentId() *string

GetSourceEnvironmentId returns EnvironmentCreateInput.SourceEnvironmentId, and is useful for accessing the field via an interface.

func (*EnvironmentCreateInput) GetStageInitialChanges added in v0.4.0

func (v *EnvironmentCreateInput) GetStageInitialChanges() bool

GetStageInitialChanges returns EnvironmentCreateInput.StageInitialChanges, and is useful for accessing the field via an interface.

type EnvironmentResource

type EnvironmentResource struct {
	// contains filtered or unexported fields
}

func (*EnvironmentResource) Configure

func (*EnvironmentResource) Create

func (*EnvironmentResource) Delete

func (*EnvironmentResource) ImportState

func (*EnvironmentResource) Metadata

func (*EnvironmentResource) Read

func (*EnvironmentResource) Schema

func (*EnvironmentResource) Update

type EnvironmentResourceModel

type EnvironmentResourceModel struct {
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	ProjecId types.String `tfsdk:"project_id"`
}

type ProejctResourceDefaultEnvironmentModel

type ProejctResourceDefaultEnvironmentModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

type Project

type Project struct {
	Id           string                                           `json:"id"`
	Name         string                                           `json:"name"`
	Description  string                                           `json:"description"`
	IsPublic     bool                                             `json:"isPublic"`
	PrDeploys    bool                                             `json:"prDeploys"`
	Team         *ProjectTeam                                     `json:"team"`
	Environments ProjectEnvironmentsProjectEnvironmentsConnection `json:"environments"`
}

Project includes the GraphQL fields of Project requested by the fragment Project.

func (*Project) GetDescription

func (v *Project) GetDescription() string

GetDescription returns Project.Description, and is useful for accessing the field via an interface.

func (*Project) GetEnvironments

GetEnvironments returns Project.Environments, and is useful for accessing the field via an interface.

func (*Project) GetId

func (v *Project) GetId() string

GetId returns Project.Id, and is useful for accessing the field via an interface.

func (*Project) GetIsPublic

func (v *Project) GetIsPublic() bool

GetIsPublic returns Project.IsPublic, and is useful for accessing the field via an interface.

func (*Project) GetName

func (v *Project) GetName() string

GetName returns Project.Name, and is useful for accessing the field via an interface.

func (*Project) GetPrDeploys

func (v *Project) GetPrDeploys() bool

GetPrDeploys returns Project.PrDeploys, and is useful for accessing the field via an interface.

func (*Project) GetTeam

func (v *Project) GetTeam() *ProjectTeam

GetTeam returns Project.Team, and is useful for accessing the field via an interface.

type ProjectCreateInput

type ProjectCreateInput struct {
	DefaultEnvironmentName string             `json:"defaultEnvironmentName"`
	Description            string             `json:"description"`
	IsPublic               bool               `json:"isPublic"`
	Name                   string             `json:"name"`
	Plugins                []string           `json:"plugins"`
	PrDeploys              bool               `json:"prDeploys"`
	Repo                   *ProjectCreateRepo `json:"repo"`
	TeamId                 *string            `json:"teamId"`
}

func (*ProjectCreateInput) GetDefaultEnvironmentName

func (v *ProjectCreateInput) GetDefaultEnvironmentName() string

GetDefaultEnvironmentName returns ProjectCreateInput.DefaultEnvironmentName, and is useful for accessing the field via an interface.

func (*ProjectCreateInput) GetDescription

func (v *ProjectCreateInput) GetDescription() string

GetDescription returns ProjectCreateInput.Description, and is useful for accessing the field via an interface.

func (*ProjectCreateInput) GetIsPublic

func (v *ProjectCreateInput) GetIsPublic() bool

GetIsPublic returns ProjectCreateInput.IsPublic, and is useful for accessing the field via an interface.

func (*ProjectCreateInput) GetName

func (v *ProjectCreateInput) GetName() string

GetName returns ProjectCreateInput.Name, and is useful for accessing the field via an interface.

func (*ProjectCreateInput) GetPlugins

func (v *ProjectCreateInput) GetPlugins() []string

GetPlugins returns ProjectCreateInput.Plugins, and is useful for accessing the field via an interface.

func (*ProjectCreateInput) GetPrDeploys

func (v *ProjectCreateInput) GetPrDeploys() bool

GetPrDeploys returns ProjectCreateInput.PrDeploys, and is useful for accessing the field via an interface.

func (*ProjectCreateInput) GetRepo

func (v *ProjectCreateInput) GetRepo() *ProjectCreateRepo

GetRepo returns ProjectCreateInput.Repo, and is useful for accessing the field via an interface.

func (*ProjectCreateInput) GetTeamId

func (v *ProjectCreateInput) GetTeamId() *string

GetTeamId returns ProjectCreateInput.TeamId, and is useful for accessing the field via an interface.

type ProjectCreateRepo

type ProjectCreateRepo struct {
	Branch       string `json:"branch"`
	FullRepoName string `json:"fullRepoName"`
}

func (*ProjectCreateRepo) GetBranch

func (v *ProjectCreateRepo) GetBranch() string

GetBranch returns ProjectCreateRepo.Branch, and is useful for accessing the field via an interface.

func (*ProjectCreateRepo) GetFullRepoName

func (v *ProjectCreateRepo) GetFullRepoName() string

GetFullRepoName returns ProjectCreateRepo.FullRepoName, and is useful for accessing the field via an interface.

type ProjectEnvironmentsProjectEnvironmentsConnection

type ProjectEnvironmentsProjectEnvironmentsConnection struct {
	Edges []ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdge `json:"edges"`
}

ProjectEnvironmentsProjectEnvironmentsConnection includes the requested fields of the GraphQL type ProjectEnvironmentsConnection.

func (*ProjectEnvironmentsProjectEnvironmentsConnection) GetEdges

GetEdges returns ProjectEnvironmentsProjectEnvironmentsConnection.Edges, and is useful for accessing the field via an interface.

type ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdge

type ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdge struct {
	Node ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment `json:"node"`
}

ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdge includes the requested fields of the GraphQL type ProjectEnvironmentsConnectionEdge.

func (*ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdge) GetNode

GetNode returns ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdge.Node, and is useful for accessing the field via an interface.

type ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment

type ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment struct {
	Id        string    `json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"createdAt"`
}

ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment includes the requested fields of the GraphQL type Environment.

func (*ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment) GetCreatedAt added in v0.1.0

GetCreatedAt returns ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment.CreatedAt, and is useful for accessing the field via an interface.

func (*ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment) GetId

GetId returns ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment.Id, and is useful for accessing the field via an interface.

func (*ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment) GetName

GetName returns ProjectEnvironmentsProjectEnvironmentsConnectionEdgesProjectEnvironmentsConnectionEdgeNodeEnvironment.Name, and is useful for accessing the field via an interface.

type ProjectResource

type ProjectResource struct {
	// contains filtered or unexported fields
}

func (*ProjectResource) Configure

func (*ProjectResource) Create

func (*ProjectResource) Delete

func (*ProjectResource) ImportState

func (*ProjectResource) Metadata

func (*ProjectResource) Read

func (*ProjectResource) Schema

func (*ProjectResource) Update

type ProjectResourceModel

type ProjectResourceModel struct {
	Id                 types.String `tfsdk:"id"`
	Name               types.String `tfsdk:"name"`
	Description        types.String `tfsdk:"description"`
	Private            types.Bool   `tfsdk:"private"`
	HasPrDeploys       types.Bool   `tfsdk:"has_pr_deploys"`
	TeamId             types.String `tfsdk:"team_id"`
	DefaultEnvironment types.Object `tfsdk:"default_environment"`
}

type ProjectTeam

type ProjectTeam struct {
	Id string `json:"id"`
}

ProjectTeam includes the requested fields of the GraphQL type Team.

func (*ProjectTeam) GetId

func (v *ProjectTeam) GetId() string

GetId returns ProjectTeam.Id, and is useful for accessing the field via an interface.

type ProjectUpdateInput

type ProjectUpdateInput struct {
	BaseEnvironmentId *string `json:"baseEnvironmentId,omitempty"`
	Description       string  `json:"description"`
	IsPublic          bool    `json:"isPublic"`
	Name              string  `json:"name"`
	PrDeploys         bool    `json:"prDeploys"`
	// [Experimental] Will be deprecated eventually
	PrForks bool `json:"prForks"`
}

func (*ProjectUpdateInput) GetBaseEnvironmentId

func (v *ProjectUpdateInput) GetBaseEnvironmentId() *string

GetBaseEnvironmentId returns ProjectUpdateInput.BaseEnvironmentId, and is useful for accessing the field via an interface.

func (*ProjectUpdateInput) GetDescription

func (v *ProjectUpdateInput) GetDescription() string

GetDescription returns ProjectUpdateInput.Description, and is useful for accessing the field via an interface.

func (*ProjectUpdateInput) GetIsPublic

func (v *ProjectUpdateInput) GetIsPublic() bool

GetIsPublic returns ProjectUpdateInput.IsPublic, and is useful for accessing the field via an interface.

func (*ProjectUpdateInput) GetName

func (v *ProjectUpdateInput) GetName() string

GetName returns ProjectUpdateInput.Name, and is useful for accessing the field via an interface.

func (*ProjectUpdateInput) GetPrDeploys

func (v *ProjectUpdateInput) GetPrDeploys() bool

GetPrDeploys returns ProjectUpdateInput.PrDeploys, and is useful for accessing the field via an interface.

func (*ProjectUpdateInput) GetPrForks added in v0.1.0

func (v *ProjectUpdateInput) GetPrForks() bool

GetPrForks returns ProjectUpdateInput.PrForks, and is useful for accessing the field via an interface.

type RailwayProvider

type RailwayProvider struct {
	// contains filtered or unexported fields
}

func (*RailwayProvider) Configure

func (*RailwayProvider) DataSources

func (p *RailwayProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*RailwayProvider) Metadata

func (*RailwayProvider) Resources

func (p *RailwayProvider) Resources(ctx context.Context) []func() resource.Resource

func (*RailwayProvider) Schema

type RailwayProviderModel

type RailwayProviderModel struct {
	Token types.String `tfsdk:"token"`
}

type RestartPolicyType added in v0.1.1

type RestartPolicyType string
const (
	RestartPolicyTypeAlways    RestartPolicyType = "ALWAYS"
	RestartPolicyTypeNever     RestartPolicyType = "NEVER"
	RestartPolicyTypeOnFailure RestartPolicyType = "ON_FAILURE"
)

type Service

type Service struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	ProjectId string `json:"projectId"`
}

Service includes the GraphQL fields of Service requested by the fragment Service.

func (*Service) GetId

func (v *Service) GetId() string

GetId returns Service.Id, and is useful for accessing the field via an interface.

func (*Service) GetName

func (v *Service) GetName() string

GetName returns Service.Name, and is useful for accessing the field via an interface.

func (*Service) GetProjectId

func (v *Service) GetProjectId() string

GetProjectId returns Service.ProjectId, and is useful for accessing the field via an interface.

type ServiceConnectInput added in v0.4.0

type ServiceConnectInput struct {
	// The branch to connect to. e.g. 'main'
	Branch *string `json:"branch,omitempty"`
	// Name of the Dockerhub or GHCR image to connect this service to.
	Image *string `json:"image,omitempty"`
	// The full name of the repo to connect to. e.g. 'railwayapp/starters'
	Repo *string `json:"repo,omitempty"`
}

func (*ServiceConnectInput) GetBranch added in v0.4.0

func (v *ServiceConnectInput) GetBranch() *string

GetBranch returns ServiceConnectInput.Branch, and is useful for accessing the field via an interface.

func (*ServiceConnectInput) GetImage added in v0.4.0

func (v *ServiceConnectInput) GetImage() *string

GetImage returns ServiceConnectInput.Image, and is useful for accessing the field via an interface.

func (*ServiceConnectInput) GetRepo added in v0.4.0

func (v *ServiceConnectInput) GetRepo() *string

GetRepo returns ServiceConnectInput.Repo, and is useful for accessing the field via an interface.

type ServiceCreateInput

type ServiceCreateInput struct {
	Branch *string `json:"branch,omitempty"`
	// Environment ID. If the specified environment is a fork, the service will only
	// be created in it. Otherwise it will created in all environments that are not
	// forks of other environments
	EnvironmentId *string                `json:"environmentId,omitempty"`
	Name          string                 `json:"name"`
	ProjectId     string                 `json:"projectId"`
	Source        *ServiceSourceInput    `json:"source,omitempty"`
	Variables     map[string]interface{} `json:"variables"`
}

func (*ServiceCreateInput) GetBranch

func (v *ServiceCreateInput) GetBranch() *string

GetBranch returns ServiceCreateInput.Branch, and is useful for accessing the field via an interface.

func (*ServiceCreateInput) GetEnvironmentId added in v0.1.0

func (v *ServiceCreateInput) GetEnvironmentId() *string

GetEnvironmentId returns ServiceCreateInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*ServiceCreateInput) GetName

func (v *ServiceCreateInput) GetName() string

GetName returns ServiceCreateInput.Name, and is useful for accessing the field via an interface.

func (*ServiceCreateInput) GetProjectId

func (v *ServiceCreateInput) GetProjectId() string

GetProjectId returns ServiceCreateInput.ProjectId, and is useful for accessing the field via an interface.

func (*ServiceCreateInput) GetSource

func (v *ServiceCreateInput) GetSource() *ServiceSourceInput

GetSource returns ServiceCreateInput.Source, and is useful for accessing the field via an interface.

func (*ServiceCreateInput) GetVariables

func (v *ServiceCreateInput) GetVariables() map[string]interface{}

GetVariables returns ServiceCreateInput.Variables, and is useful for accessing the field via an interface.

type ServiceDomain added in v0.2.0

type ServiceDomain struct {
	Id            string `json:"id"`
	Domain        string `json:"domain"`
	Suffix        string `json:"suffix"`
	EnvironmentId string `json:"environmentId"`
	ServiceId     string `json:"serviceId"`
}

ServiceDomain includes the GraphQL fields of ServiceDomain requested by the fragment ServiceDomain.

func (*ServiceDomain) GetDomain added in v0.2.0

func (v *ServiceDomain) GetDomain() string

GetDomain returns ServiceDomain.Domain, and is useful for accessing the field via an interface.

func (*ServiceDomain) GetEnvironmentId added in v0.2.0

func (v *ServiceDomain) GetEnvironmentId() string

GetEnvironmentId returns ServiceDomain.EnvironmentId, and is useful for accessing the field via an interface.

func (*ServiceDomain) GetId added in v0.2.0

func (v *ServiceDomain) GetId() string

GetId returns ServiceDomain.Id, and is useful for accessing the field via an interface.

func (*ServiceDomain) GetServiceId added in v0.2.0

func (v *ServiceDomain) GetServiceId() string

GetServiceId returns ServiceDomain.ServiceId, and is useful for accessing the field via an interface.

func (*ServiceDomain) GetSuffix added in v0.2.0

func (v *ServiceDomain) GetSuffix() string

GetSuffix returns ServiceDomain.Suffix, and is useful for accessing the field via an interface.

type ServiceDomainCreateInput added in v0.2.0

type ServiceDomainCreateInput struct {
	EnvironmentId string `json:"environmentId"`
	ServiceId     string `json:"serviceId"`
}

func (*ServiceDomainCreateInput) GetEnvironmentId added in v0.2.0

func (v *ServiceDomainCreateInput) GetEnvironmentId() string

GetEnvironmentId returns ServiceDomainCreateInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*ServiceDomainCreateInput) GetServiceId added in v0.2.0

func (v *ServiceDomainCreateInput) GetServiceId() string

GetServiceId returns ServiceDomainCreateInput.ServiceId, and is useful for accessing the field via an interface.

type ServiceDomainResource added in v0.2.0

type ServiceDomainResource struct {
	// contains filtered or unexported fields
}

func (*ServiceDomainResource) Configure added in v0.2.0

func (*ServiceDomainResource) Create added in v0.2.0

func (*ServiceDomainResource) Delete added in v0.2.0

func (*ServiceDomainResource) ImportState added in v0.2.0

func (*ServiceDomainResource) Metadata added in v0.2.0

func (*ServiceDomainResource) Read added in v0.2.0

func (*ServiceDomainResource) Schema added in v0.2.0

func (*ServiceDomainResource) Update added in v0.2.0

type ServiceDomainResourceModel added in v0.2.0

type ServiceDomainResourceModel struct {
	Id            types.String `tfsdk:"id"`
	Subdomain     types.String `tfsdk:"subdomain"`
	EnvironmentId types.String `tfsdk:"environment_id"`
	ServiceId     types.String `tfsdk:"service_id"`
	ProjectId     types.String `tfsdk:"project_id"`
	Suffix        types.String `tfsdk:"suffix"`
	Domain        types.String `tfsdk:"domain"`
}

type ServiceDomainUpdateInput added in v0.2.0

type ServiceDomainUpdateInput struct {
	Domain        string `json:"domain"`
	EnvironmentId string `json:"environmentId"`
	ServiceId     string `json:"serviceId"`
}

func (*ServiceDomainUpdateInput) GetDomain added in v0.2.0

func (v *ServiceDomainUpdateInput) GetDomain() string

GetDomain returns ServiceDomainUpdateInput.Domain, and is useful for accessing the field via an interface.

func (*ServiceDomainUpdateInput) GetEnvironmentId added in v0.2.0

func (v *ServiceDomainUpdateInput) GetEnvironmentId() string

GetEnvironmentId returns ServiceDomainUpdateInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*ServiceDomainUpdateInput) GetServiceId added in v0.2.0

func (v *ServiceDomainUpdateInput) GetServiceId() string

GetServiceId returns ServiceDomainUpdateInput.ServiceId, and is useful for accessing the field via an interface.

type ServiceInstanceUpdateInput added in v0.1.1

type ServiceInstanceUpdateInput struct {
	BuildCommand            *string                 `json:"buildCommand,omitempty"`
	Builder                 *Builder                `json:"builder,omitempty"`
	CronSchedule            *string                 `json:"cronSchedule"`
	HealthcheckPath         *string                 `json:"healthcheckPath,omitempty"`
	HealthcheckTimeout      *int                    `json:"healthcheckTimeout,omitempty"`
	NixpacksPlan            *map[string]interface{} `json:"nixpacksPlan,omitempty"`
	NumReplicas             *int                    `json:"numReplicas,omitempty"`
	RailwayConfigFile       string                  `json:"railwayConfigFile"`
	Region                  *string                 `json:"region,omitempty"`
	RestartPolicyMaxRetries *int                    `json:"restartPolicyMaxRetries,omitempty"`
	RestartPolicyType       *RestartPolicyType      `json:"restartPolicyType,omitempty"`
	RootDirectory           string                  `json:"rootDirectory"`
	Source                  *ServiceSourceInput     `json:"source,omitempty"`
	StartCommand            *string                 `json:"startCommand,omitempty"`
	WatchPatterns           []*string               `json:"watchPatterns"`
}

func (*ServiceInstanceUpdateInput) GetBuildCommand added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetBuildCommand() *string

GetBuildCommand returns ServiceInstanceUpdateInput.BuildCommand, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetBuilder added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetBuilder() *Builder

GetBuilder returns ServiceInstanceUpdateInput.Builder, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetCronSchedule added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetCronSchedule() *string

GetCronSchedule returns ServiceInstanceUpdateInput.CronSchedule, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetHealthcheckPath added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetHealthcheckPath() *string

GetHealthcheckPath returns ServiceInstanceUpdateInput.HealthcheckPath, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetHealthcheckTimeout added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetHealthcheckTimeout() *int

GetHealthcheckTimeout returns ServiceInstanceUpdateInput.HealthcheckTimeout, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetNixpacksPlan added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetNixpacksPlan() *map[string]interface{}

GetNixpacksPlan returns ServiceInstanceUpdateInput.NixpacksPlan, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetNumReplicas added in v0.3.0

func (v *ServiceInstanceUpdateInput) GetNumReplicas() *int

GetNumReplicas returns ServiceInstanceUpdateInput.NumReplicas, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetRailwayConfigFile added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetRailwayConfigFile() string

GetRailwayConfigFile returns ServiceInstanceUpdateInput.RailwayConfigFile, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetRegion added in v0.3.0

func (v *ServiceInstanceUpdateInput) GetRegion() *string

GetRegion returns ServiceInstanceUpdateInput.Region, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetRestartPolicyMaxRetries added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetRestartPolicyMaxRetries() *int

GetRestartPolicyMaxRetries returns ServiceInstanceUpdateInput.RestartPolicyMaxRetries, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetRestartPolicyType added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetRestartPolicyType() *RestartPolicyType

GetRestartPolicyType returns ServiceInstanceUpdateInput.RestartPolicyType, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetRootDirectory added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetRootDirectory() string

GetRootDirectory returns ServiceInstanceUpdateInput.RootDirectory, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetSource added in v0.1.1

GetSource returns ServiceInstanceUpdateInput.Source, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetStartCommand added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetStartCommand() *string

GetStartCommand returns ServiceInstanceUpdateInput.StartCommand, and is useful for accessing the field via an interface.

func (*ServiceInstanceUpdateInput) GetWatchPatterns added in v0.1.1

func (v *ServiceInstanceUpdateInput) GetWatchPatterns() []*string

GetWatchPatterns returns ServiceInstanceUpdateInput.WatchPatterns, and is useful for accessing the field via an interface.

type ServiceResource

type ServiceResource struct {
	// contains filtered or unexported fields
}

func (*ServiceResource) ConfigValidators added in v0.1.1

func (r *ServiceResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator

func (*ServiceResource) Configure

func (*ServiceResource) Create

func (*ServiceResource) Delete

func (*ServiceResource) ImportState

func (*ServiceResource) Metadata

func (*ServiceResource) Read

func (*ServiceResource) Schema

func (*ServiceResource) Update

type ServiceResourceModel

type ServiceResourceModel struct {
	Id               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	ProjectId        types.String `tfsdk:"project_id"`
	CronSchedule     types.String `tfsdk:"cron_schedule"`
	SourceImage      types.String `tfsdk:"source_image"`
	SourceRepo       types.String `tfsdk:"source_repo"`
	SourceRepoBranch types.String `tfsdk:"source_repo_branch"`
	RootDirectory    types.String `tfsdk:"root_directory"`
	ConfigPath       types.String `tfsdk:"config_path"`
	Volume           types.Object `tfsdk:"volume"`
}

type ServiceResourceVolumeModel added in v0.3.0

type ServiceResourceVolumeModel struct {
	Id        types.String  `tfsdk:"id"`
	Name      types.String  `tfsdk:"name"`
	MountPath types.String  `tfsdk:"mount_path"`
	Size      types.Float64 `tfsdk:"size"`
}

type ServiceSourceInput

type ServiceSourceInput struct {
	Image *string `json:"image,omitempty"`
	Repo  *string `json:"repo,omitempty"`
}

func (*ServiceSourceInput) GetImage added in v0.1.0

func (v *ServiceSourceInput) GetImage() *string

GetImage returns ServiceSourceInput.Image, and is useful for accessing the field via an interface.

func (*ServiceSourceInput) GetRepo

func (v *ServiceSourceInput) GetRepo() *string

GetRepo returns ServiceSourceInput.Repo, and is useful for accessing the field via an interface.

type ServiceUpdateInput

type ServiceUpdateInput struct {
	Icon string `json:"icon"`
	Name string `json:"name"`
}

func (*ServiceUpdateInput) GetIcon

func (v *ServiceUpdateInput) GetIcon() string

GetIcon returns ServiceUpdateInput.Icon, and is useful for accessing the field via an interface.

func (*ServiceUpdateInput) GetName

func (v *ServiceUpdateInput) GetName() string

GetName returns ServiceUpdateInput.Name, and is useful for accessing the field via an interface.

type SharedVariableResource added in v0.1.0

type SharedVariableResource struct {
	// contains filtered or unexported fields
}

func (*SharedVariableResource) Configure added in v0.1.0

func (*SharedVariableResource) Create added in v0.1.0

func (*SharedVariableResource) Delete added in v0.1.0

func (*SharedVariableResource) ImportState added in v0.1.0

func (*SharedVariableResource) Metadata added in v0.1.0

func (*SharedVariableResource) Read added in v0.1.0

func (*SharedVariableResource) Schema added in v0.1.0

func (*SharedVariableResource) Update added in v0.1.0

type SharedVariableResourceModel added in v0.1.0

type SharedVariableResourceModel struct {
	Id            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
	Value         types.String `tfsdk:"value"`
	EnvironmentId types.String `tfsdk:"environment_id"`
	ProjectId     types.String `tfsdk:"project_id"`
}

type TCPProxy added in v0.3.0

type TCPProxy struct {
	Id              string `json:"id"`
	ApplicationPort int    `json:"applicationPort"`
	ProxyPort       int    `json:"proxyPort"`
	Domain          string `json:"domain"`
	EnvironmentId   string `json:"environmentId"`
	ServiceId       string `json:"serviceId"`
}

TCPProxy includes the GraphQL fields of TCPProxy requested by the fragment TCPProxy.

func (*TCPProxy) GetApplicationPort added in v0.3.0

func (v *TCPProxy) GetApplicationPort() int

GetApplicationPort returns TCPProxy.ApplicationPort, and is useful for accessing the field via an interface.

func (*TCPProxy) GetDomain added in v0.3.0

func (v *TCPProxy) GetDomain() string

GetDomain returns TCPProxy.Domain, and is useful for accessing the field via an interface.

func (*TCPProxy) GetEnvironmentId added in v0.3.0

func (v *TCPProxy) GetEnvironmentId() string

GetEnvironmentId returns TCPProxy.EnvironmentId, and is useful for accessing the field via an interface.

func (*TCPProxy) GetId added in v0.3.0

func (v *TCPProxy) GetId() string

GetId returns TCPProxy.Id, and is useful for accessing the field via an interface.

func (*TCPProxy) GetProxyPort added in v0.3.0

func (v *TCPProxy) GetProxyPort() int

GetProxyPort returns TCPProxy.ProxyPort, and is useful for accessing the field via an interface.

func (*TCPProxy) GetServiceId added in v0.3.0

func (v *TCPProxy) GetServiceId() string

GetServiceId returns TCPProxy.ServiceId, and is useful for accessing the field via an interface.

type TCPProxyCreateInput added in v0.3.0

type TCPProxyCreateInput struct {
	ApplicationPort int    `json:"applicationPort"`
	EnvironmentId   string `json:"environmentId"`
	ServiceId       string `json:"serviceId"`
}

func (*TCPProxyCreateInput) GetApplicationPort added in v0.3.0

func (v *TCPProxyCreateInput) GetApplicationPort() int

GetApplicationPort returns TCPProxyCreateInput.ApplicationPort, and is useful for accessing the field via an interface.

func (*TCPProxyCreateInput) GetEnvironmentId added in v0.3.0

func (v *TCPProxyCreateInput) GetEnvironmentId() string

GetEnvironmentId returns TCPProxyCreateInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*TCPProxyCreateInput) GetServiceId added in v0.3.0

func (v *TCPProxyCreateInput) GetServiceId() string

GetServiceId returns TCPProxyCreateInput.ServiceId, and is useful for accessing the field via an interface.

type TcpProxyResource added in v0.3.0

type TcpProxyResource struct {
	// contains filtered or unexported fields
}

func (*TcpProxyResource) Configure added in v0.3.0

func (*TcpProxyResource) Create added in v0.3.0

func (*TcpProxyResource) Delete added in v0.3.0

func (*TcpProxyResource) ImportState added in v0.3.0

func (*TcpProxyResource) Metadata added in v0.3.0

func (*TcpProxyResource) Read added in v0.3.0

func (*TcpProxyResource) Schema added in v0.3.0

func (*TcpProxyResource) Update added in v0.3.0

type TcpProxyResourceModel added in v0.3.0

type TcpProxyResourceModel struct {
	Id              types.String `tfsdk:"id"`
	ApplicationPort types.Int64  `tfsdk:"application_port"`
	EnvironmentId   types.String `tfsdk:"environment_id"`
	ServiceId       types.String `tfsdk:"service_id"`
	ProxyPort       types.Int64  `tfsdk:"proxy_port"`
	Domain          types.String `tfsdk:"domain"`
}

type VariableDeleteInput added in v0.1.0

type VariableDeleteInput struct {
	EnvironmentId string  `json:"environmentId"`
	Name          string  `json:"name"`
	ProjectId     string  `json:"projectId"`
	ServiceId     *string `json:"serviceId"`
}

func (*VariableDeleteInput) GetEnvironmentId added in v0.1.0

func (v *VariableDeleteInput) GetEnvironmentId() string

GetEnvironmentId returns VariableDeleteInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*VariableDeleteInput) GetName added in v0.1.0

func (v *VariableDeleteInput) GetName() string

GetName returns VariableDeleteInput.Name, and is useful for accessing the field via an interface.

func (*VariableDeleteInput) GetProjectId added in v0.1.0

func (v *VariableDeleteInput) GetProjectId() string

GetProjectId returns VariableDeleteInput.ProjectId, and is useful for accessing the field via an interface.

func (*VariableDeleteInput) GetServiceId added in v0.1.0

func (v *VariableDeleteInput) GetServiceId() *string

GetServiceId returns VariableDeleteInput.ServiceId, and is useful for accessing the field via an interface.

type VariableResource added in v0.1.0

type VariableResource struct {
	// contains filtered or unexported fields
}

func (*VariableResource) Configure added in v0.1.0

func (*VariableResource) Create added in v0.1.0

func (*VariableResource) Delete added in v0.1.0

func (*VariableResource) ImportState added in v0.1.0

func (*VariableResource) Metadata added in v0.1.0

func (*VariableResource) Read added in v0.1.0

func (*VariableResource) Schema added in v0.1.0

func (*VariableResource) Update added in v0.1.0

type VariableResourceModel added in v0.1.0

type VariableResourceModel struct {
	Id            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
	Value         types.String `tfsdk:"value"`
	EnvironmentId types.String `tfsdk:"environment_id"`
	ServiceId     types.String `tfsdk:"service_id"`
	ProjectId     types.String `tfsdk:"project_id"`
}

type VariableUpsertInput added in v0.1.0

type VariableUpsertInput struct {
	EnvironmentId string  `json:"environmentId"`
	Name          string  `json:"name"`
	ProjectId     string  `json:"projectId"`
	ServiceId     *string `json:"serviceId"`
	Value         string  `json:"value"`
}

func (*VariableUpsertInput) GetEnvironmentId added in v0.1.0

func (v *VariableUpsertInput) GetEnvironmentId() string

GetEnvironmentId returns VariableUpsertInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*VariableUpsertInput) GetName added in v0.1.0

func (v *VariableUpsertInput) GetName() string

GetName returns VariableUpsertInput.Name, and is useful for accessing the field via an interface.

func (*VariableUpsertInput) GetProjectId added in v0.1.0

func (v *VariableUpsertInput) GetProjectId() string

GetProjectId returns VariableUpsertInput.ProjectId, and is useful for accessing the field via an interface.

func (*VariableUpsertInput) GetServiceId added in v0.1.0

func (v *VariableUpsertInput) GetServiceId() *string

GetServiceId returns VariableUpsertInput.ServiceId, and is useful for accessing the field via an interface.

func (*VariableUpsertInput) GetValue added in v0.1.0

func (v *VariableUpsertInput) GetValue() string

GetValue returns VariableUpsertInput.Value, and is useful for accessing the field via an interface.

type Volume added in v0.3.0

type Volume struct {
	Id              string                                               `json:"id"`
	Name            string                                               `json:"name"`
	VolumeInstances VolumeVolumeInstancesVolumeVolumeInstancesConnection `json:"volumeInstances"`
}

Volume includes the GraphQL fields of Volume requested by the fragment Volume.

func (*Volume) GetId added in v0.3.0

func (v *Volume) GetId() string

GetId returns Volume.Id, and is useful for accessing the field via an interface.

func (*Volume) GetName added in v0.3.0

func (v *Volume) GetName() string

GetName returns Volume.Name, and is useful for accessing the field via an interface.

func (*Volume) GetVolumeInstances added in v0.3.0

GetVolumeInstances returns Volume.VolumeInstances, and is useful for accessing the field via an interface.

type VolumeCreateInput added in v0.3.0

type VolumeCreateInput struct {
	// The environment to deploy the volume instances into. If `null`, the volume
	// will not be deployed to any environment. `undefined` will deploy to all environments.
	EnvironmentId *string `json:"environmentId,omitempty"`
	// The path in the container to mount the volume to
	MountPath string `json:"mountPath"`
	// The project to create the volume in
	ProjectId string `json:"projectId"`
	// The service to attach the volume to. If not provided, the volume will be disconnected.
	ServiceId *string `json:"serviceId"`
}

func (*VolumeCreateInput) GetEnvironmentId added in v0.3.0

func (v *VolumeCreateInput) GetEnvironmentId() *string

GetEnvironmentId returns VolumeCreateInput.EnvironmentId, and is useful for accessing the field via an interface.

func (*VolumeCreateInput) GetMountPath added in v0.3.0

func (v *VolumeCreateInput) GetMountPath() string

GetMountPath returns VolumeCreateInput.MountPath, and is useful for accessing the field via an interface.

func (*VolumeCreateInput) GetProjectId added in v0.3.0

func (v *VolumeCreateInput) GetProjectId() string

GetProjectId returns VolumeCreateInput.ProjectId, and is useful for accessing the field via an interface.

func (*VolumeCreateInput) GetServiceId added in v0.3.0

func (v *VolumeCreateInput) GetServiceId() *string

GetServiceId returns VolumeCreateInput.ServiceId, and is useful for accessing the field via an interface.

type VolumeInstanceUpdateInput added in v0.3.0

type VolumeInstanceUpdateInput struct {
	// The mount path of the volume instance. If not provided, the mount path will not be updated.
	MountPath string `json:"mountPath"`
	// The service to attach the volume to. If not provided, the volume will be disconnected.
	ServiceId string `json:"serviceId"`
	// The state of the volume instance. If not provided, the state will not be updated.
	State *VolumeState `json:"state,omitempty"`
}

func (*VolumeInstanceUpdateInput) GetMountPath added in v0.3.0

func (v *VolumeInstanceUpdateInput) GetMountPath() string

GetMountPath returns VolumeInstanceUpdateInput.MountPath, and is useful for accessing the field via an interface.

func (*VolumeInstanceUpdateInput) GetServiceId added in v0.3.0

func (v *VolumeInstanceUpdateInput) GetServiceId() string

GetServiceId returns VolumeInstanceUpdateInput.ServiceId, and is useful for accessing the field via an interface.

func (*VolumeInstanceUpdateInput) GetState added in v0.3.0

func (v *VolumeInstanceUpdateInput) GetState() *VolumeState

GetState returns VolumeInstanceUpdateInput.State, and is useful for accessing the field via an interface.

type VolumeState added in v0.3.0

type VolumeState string
const (
	VolumeStateDeleted          VolumeState = "DELETED"
	VolumeStateDeleting         VolumeState = "DELETING"
	VolumeStateError            VolumeState = "ERROR"
	VolumeStateMigrating        VolumeState = "MIGRATING"
	VolumeStateMigrationPending VolumeState = "MIGRATION_PENDING"
	VolumeStateReady            VolumeState = "READY"
	VolumeStateUpdating         VolumeState = "UPDATING"
)

type VolumeUpdateInput added in v0.3.0

type VolumeUpdateInput struct {
	// The name of the volume
	Name string `json:"name"`
}

func (*VolumeUpdateInput) GetName added in v0.3.0

func (v *VolumeUpdateInput) GetName() string

GetName returns VolumeUpdateInput.Name, and is useful for accessing the field via an interface.

type VolumeVolumeInstancesVolumeVolumeInstancesConnection added in v0.3.0

type VolumeVolumeInstancesVolumeVolumeInstancesConnection struct {
	Edges []VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdge `json:"edges"`
}

VolumeVolumeInstancesVolumeVolumeInstancesConnection includes the requested fields of the GraphQL type VolumeVolumeInstancesConnection.

func (*VolumeVolumeInstancesVolumeVolumeInstancesConnection) GetEdges added in v0.3.0

GetEdges returns VolumeVolumeInstancesVolumeVolumeInstancesConnection.Edges, and is useful for accessing the field via an interface.

type VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdge added in v0.3.0

type VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdge struct {
	Node VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance `json:"node"`
}

VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdge includes the requested fields of the GraphQL type VolumeVolumeInstancesConnectionEdge.

func (*VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdge) GetNode added in v0.3.0

GetNode returns VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdge.Node, and is useful for accessing the field via an interface.

type VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance added in v0.3.0

type VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance struct {
	Id            string `json:"id"`
	EnvironmentId string `json:"environmentId"`
	ServiceId     string `json:"serviceId"`
	MountPath     string `json:"mountPath"`
	SizeMB        int    `json:"sizeMB"`
}

VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance includes the requested fields of the GraphQL type VolumeInstance.

func (*VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance) GetEnvironmentId added in v0.3.0

GetEnvironmentId returns VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance.EnvironmentId, and is useful for accessing the field via an interface.

func (*VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance) GetId added in v0.3.0

GetId returns VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance.Id, and is useful for accessing the field via an interface.

func (*VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance) GetMountPath added in v0.3.0

GetMountPath returns VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance.MountPath, and is useful for accessing the field via an interface.

func (*VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance) GetServiceId added in v0.3.0

GetServiceId returns VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance.ServiceId, and is useful for accessing the field via an interface.

func (*VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance) GetSizeMB added in v0.3.0

GetSizeMB returns VolumeVolumeInstancesVolumeVolumeInstancesConnectionEdgesVolumeVolumeInstancesConnectionEdgeNodeVolumeInstance.SizeMB, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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