env0

package
v1.18.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AWS = "aws"
View Source
const AZURE = "azure"
View Source
const GOOGLE = "google"
View Source
const PROJECT_DESTROY_TOTAL_WAIT_TIME = time.Minute * 10
View Source
const PROJECT_DESTROY_WAIT_INTERVAL = time.Second * 10

Variables

This section is empty.

Functions

func DataGetFailure added in v0.2.32

func DataGetFailure(dataName string, id interface{}, err error) diag.Diagnostics

func GetAgentProjectAssignmentId added in v1.0.0

func GetAgentProjectAssignmentId(agentId string, projectId string) string

func GetUserTeamAssignmentId added in v1.0.5

func GetUserTeamAssignmentId(userId string, teamId string) string

func NewGreaterThanValidator added in v1.0.6

func NewGreaterThanValidator(greaterThan int) schema.SchemaValidateDiagFunc

func NewIntInValidator added in v1.14.16

func NewIntInValidator(allowedValues []int) schema.SchemaValidateDiagFunc

func NewOpenTofuVersionValidator added in v1.16.11

func NewOpenTofuVersionValidator() schema.SchemaValidateDiagFunc

func NewRegexValidator added in v0.2.32

func NewRegexValidator(r string) schema.SchemaValidateDiagFunc

func NewRoleValidator added in v1.18.2

func NewRoleValidator(supportedBuiltInRoles []string) schema.SchemaValidateDiagFunc

func NewStringInValidator added in v0.2.32

func NewStringInValidator(allowedValues []string) schema.SchemaValidateDiagFunc

func Provider

func Provider(version string) plugin.ProviderFunc

func ResourceGetFailure added in v0.2.32

func ResourceGetFailure(ctx context.Context, resourceName string, d *schema.ResourceData, err error) diag.Diagnostics

func ValidateConfigurationPropertySchema added in v0.0.23

func ValidateConfigurationPropertySchema(val interface{}, key string) (warns []string, errs []error)

func ValidateCronExpression added in v0.2.29

func ValidateCronExpression(i interface{}, path cty.Path) diag.Diagnostics

func ValidateNotEmptyString added in v0.2.32

func ValidateNotEmptyString(i interface{}, path cty.Path) diag.Diagnostics

func ValidateRetries added in v1.0.7

func ValidateRetries(i interface{}, path cty.Path) diag.Diagnostics

func ValidateTtl added in v1.3.11

func ValidateTtl(i interface{}, path cty.Path) diag.Diagnostics

Types

type ActiveEnvironmentError added in v1.3.5

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

func (*ActiveEnvironmentError) Error added in v1.3.5

func (e *ActiveEnvironmentError) Error() string

type AgentProjectAssignment added in v1.0.0

type AgentProjectAssignment struct {
	AgentId   string `json:"agent_id"`
	ProjectId string `json:"project_id"`
}

func (*AgentProjectAssignment) GetId added in v1.0.0

func (a *AgentProjectAssignment) GetId() string

type CloudType added in v1.0.6

type CloudType string
const (
	AWS_TYPE        CloudType = "aws"
	AWS_COST_TYPE   CloudType = "aws_cost"
	AWS_OIDC_TYPE   CloudType = "aws_oidc"
	AZURE_TYPE      CloudType = "azure"
	AZURE_COST_TYPE CloudType = "azure_cost"
	AZURE_OIDC_TYPE CloudType = "azure_oidc"
	GCP_TYPE        CloudType = "gcp"
	GCP_OIDC_TYPE   CloudType = "gcp_oidc"
	GCP_COST_TYPE   CloudType = "google_cost"
	VAULT_OIDC_TYPE CloudType = "vault_oidc"
	KUBECONFIG_TYPE CloudType = "kubeconfig"
	AWS_EKS_TYPE    CloudType = "aws_eks"
	AZURE_AKS_TYPE  CloudType = "azure_aks"
	GCP_GKE_TYPE    CloudType = "gcp_gke"
)

type ConfigurationVariableParams added in v0.0.4

type ConfigurationVariableParams struct {
	Scope             client.Scope `tfschema:"-"`
	ScopeId           string       `tfschema:"-"`
	Id                string
	Name              string
	ConfigurationType string `json:"-" tfschema:"type"`
}

type CustomResourceDataField added in v1.0.5

type CustomResourceDataField interface {
	ReadResourceData(fieldName string, d *schema.ResourceData) error
	WriteResourceData(fieldName string, d *schema.ResourceData) error
}

type ResourceDataSliceStructValueWriter added in v1.0.7

type ResourceDataSliceStructValueWriter interface {
	ResourceDataSliceStructValueWrite(map[string]interface{}) error
}

type SubEnvironment added in v1.3.4

type SubEnvironment struct {
	Id            string
	Alias         string
	Revision      string
	Workflow      string
	Workspace     string
	Configuration client.ConfigurationChanges `tfschema:"-"`
}

type TFSource added in v0.0.6

type TFSource string

TFSource Enum

const (
	DataSource TFSource = "data"
	Resource   TFSource = "resource"
)

type TemplateType added in v1.0.7

type TemplateType string
const (
	CustomFlow     TemplateType = "custom-flow"
	ApprovalPolicy TemplateType = "approval-policy"
)

type UserTeamAssignment added in v1.0.5

type UserTeamAssignment struct {
	UserId string `json:"user_id"`
	TeamId string `json:"team_id"`
}

func GetUserTeamAssignmentFromId added in v1.0.5

func GetUserTeamAssignmentFromId(id string) (*UserTeamAssignment, error)

func (*UserTeamAssignment) GetId added in v1.0.5

func (a *UserTeamAssignment) GetId() string

Source Files

Jump to

Keyboard shortcuts

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