provider

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MPL-2.0 Imports: 55 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 NewApplicationDataSource

func NewApplicationDataSource() datasource.DataSource

func NewApplicationResource

func NewApplicationResource() resource.Resource

func NewContainerRegistryResource added in v0.1.22

func NewContainerRegistryResource() resource.Resource

func NewECRRegistryResource added in v0.1.22

func NewECRRegistryResource() resource.Resource

func NewEcsRuntimeDataSource added in v0.1.3

func NewEcsRuntimeDataSource() datasource.DataSource

func NewEcsRuntimeResource added in v0.1.3

func NewEcsRuntimeResource() resource.Resource

func NewK8sRuntimeDataSource added in v0.1.3

func NewK8sRuntimeDataSource() datasource.DataSource

func NewK8sRuntimeResource added in v0.1.3

func NewK8sRuntimeResource() resource.Resource

func NewManagedK8sRuntimeResource added in v0.1.3

func NewManagedK8sRuntimeResource() resource.Resource

func NewReleaseChannelDataSource

func NewReleaseChannelDataSource() datasource.DataSource

func NewReleaseChannelResource

func NewReleaseChannelResource() resource.Resource

func NewRuntimeLinkResource added in v0.1.3

func NewRuntimeLinkResource() resource.Resource

func ProtectionAttachmentProtoToTerraform added in v0.1.6

func ProtectionAttachmentProtoToTerraform(pa *prot_pb.ProtectionAttachmentConfig) *protectionAttachment

func WaitForClusterWithTimeout added in v0.1.3

func WaitForClusterWithTimeout(ctx context.Context, client env_pb.EnvironmentManagerClient, clusterId, clusterName, timeoutDuration string) error

Types

type ApplicationDataSource

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

ApplicationDataSource defines the data source implementation.

func (*ApplicationDataSource) Configure

func (*ApplicationDataSource) Metadata

func (*ApplicationDataSource) Read

func (*ApplicationDataSource) Schema

type ApplicationResource

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

ApplicationResource defines the resource implementation.

func (*ApplicationResource) Configure

func (*ApplicationResource) Create

func (*ApplicationResource) Delete

func (*ApplicationResource) ImportState

func (*ApplicationResource) Metadata

func (*ApplicationResource) Read

func (*ApplicationResource) Schema

func (*ApplicationResource) Update

type ApplicationResourceModel

type ApplicationResourceModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Id          types.String `tfsdk:"id"`
	Version     types.String `tfsdk:"version"`
}

ApplicationResourceModel describes the resource data model.

type AuthToken

type AuthToken struct {
	Token string
}

func (AuthToken) GetRequestMetadata

func (t AuthToken) GetRequestMetadata(ctx context.Context, in ...string) (map[string]string, error)

func (AuthToken) RequireTransportSecurity

func (AuthToken) RequireTransportSecurity() bool

type ContainerRegistryResource added in v0.1.22

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

ContainerRegistryResource defines the resource implementation.

func (*ContainerRegistryResource) Configure added in v0.1.22

func (*ContainerRegistryResource) Create added in v0.1.22

func (*ContainerRegistryResource) Delete added in v0.1.22

func (*ContainerRegistryResource) Metadata added in v0.1.22

func (*ContainerRegistryResource) Read added in v0.1.22

func (*ContainerRegistryResource) Schema added in v0.1.22

func (*ContainerRegistryResource) Update added in v0.1.22

type ContainerRegistryResourceModel added in v0.1.22

type ContainerRegistryResourceModel struct {
	Name     types.String `tfsdk:"name"`
	Id       types.String `tfsdk:"id"`
	URL      types.String `tfsdk:"url"`
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
	Public   types.Bool   `tfsdk:"public"`
}

ContainerRegistryResouceModel describes the resource link data model.

type CredentialAuthModel added in v0.1.22

type CredentialAuthModel struct {
	AccessKeyID     types.String `tfsdk:"access_key_id"`
	SecretAccessKey types.String `tfsdk:"secret_access_key"`
}

type ECRRegistryResource added in v0.1.22

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

ECRRegistryResource defines the resource implementation.

func (*ECRRegistryResource) Configure added in v0.1.22

func (*ECRRegistryResource) Create added in v0.1.22

func (*ECRRegistryResource) Delete added in v0.1.22

func (*ECRRegistryResource) Metadata added in v0.1.22

func (*ECRRegistryResource) Read added in v0.1.22

func (*ECRRegistryResource) Schema added in v0.1.22

func (*ECRRegistryResource) Update added in v0.1.22

type ECRRegistryResourceModel added in v0.1.22

type ECRRegistryResourceModel struct {
	Name   types.String `tfsdk:"name"`
	Id     types.String `tfsdk:"id"`
	Region types.String `tfsdk:"region"`

	// this is encapsulated in its own nested object because we will
	// support other authentication methods in the future
	CredentialsAuth *CredentialAuthModel `tfsdk:"credentials_auth"`
}

ContainerRegistryResouceModel describes the resource link data model.

type EcsRuntimeDataSource added in v0.1.3

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

EcsRuntimeDataSource defines the data source implementation.

func (*EcsRuntimeDataSource) Configure added in v0.1.3

func (*EcsRuntimeDataSource) Metadata added in v0.1.3

func (*EcsRuntimeDataSource) Read added in v0.1.3

func (*EcsRuntimeDataSource) Schema added in v0.1.3

type EcsRuntimeResource added in v0.1.3

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

EcsRuntimeResource defines the resource implementation.

func (*EcsRuntimeResource) Configure added in v0.1.3

func (*EcsRuntimeResource) Create added in v0.1.3

func (*EcsRuntimeResource) Delete added in v0.1.3

func (*EcsRuntimeResource) ImportState added in v0.1.3

func (*EcsRuntimeResource) Metadata added in v0.1.3

func (*EcsRuntimeResource) Read added in v0.1.3

func (*EcsRuntimeResource) Schema added in v0.1.3

func (*EcsRuntimeResource) Update added in v0.1.3

type EcsRuntimeResourceModel added in v0.1.3

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

	AccessKey     types.String `tfsdk:"access_key"`
	SecretKey     types.String `tfsdk:"secret_key"`
	Region        types.String `tfsdk:"region"`
	AssumeRoleArn types.String `tfsdk:"assume_role_arn"`
	ClusterArn    types.String `tfsdk:"cluster_arn"`
}

RuntimeK8sResouceModel describes the resource data model.

type K8sRuntimeDataSource added in v0.1.3

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

ReleaseChannelDataSource defines the data source implementation.

func (*K8sRuntimeDataSource) Configure added in v0.1.3

func (*K8sRuntimeDataSource) Metadata added in v0.1.3

func (*K8sRuntimeDataSource) Read added in v0.1.3

func (*K8sRuntimeDataSource) Schema added in v0.1.3

type K8sRuntimeDataSourceModel added in v0.1.10

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

	AgentApiToken types.String `tfsdk:"agent_api_token"`

	Labels types.List `tfsdk:"labels"`
}

type K8sRuntimeResource added in v0.1.3

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

K8sRuntimeResource defines the resource implementation.

func (*K8sRuntimeResource) Configure added in v0.1.3

func (*K8sRuntimeResource) Create added in v0.1.3

func (*K8sRuntimeResource) Delete added in v0.1.3

func (*K8sRuntimeResource) ImportState added in v0.1.3

func (*K8sRuntimeResource) Metadata added in v0.1.3

func (*K8sRuntimeResource) Read added in v0.1.3

func (*K8sRuntimeResource) Schema added in v0.1.3

func (*K8sRuntimeResource) Update added in v0.1.3

type K8sRuntimeResourceModel added in v0.1.3

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

	Labels types.List `tfsdk:"labels"`

	AgentApiToken types.String `tfsdk:"agent_api_token"`
	AgentURL      types.String `tfsdk:"agent_url"`
	AgentImage    types.String `tfsdk:"agent_image"`
	AgentArgs     types.List   `tfsdk:"agent_args"`
}

K8sRuntimeResouceModel describes the resource data model.

type ManagedK8sRuntimeResource added in v0.1.3

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

ManagedK8sRuntimeResource defines the resource implementation.

func (*ManagedK8sRuntimeResource) Configure added in v0.1.3

func (*ManagedK8sRuntimeResource) Create added in v0.1.3

func (*ManagedK8sRuntimeResource) Delete added in v0.1.3

func (*ManagedK8sRuntimeResource) Metadata added in v0.1.3

func (*ManagedK8sRuntimeResource) Read added in v0.1.3

func (*ManagedK8sRuntimeResource) Schema added in v0.1.3

func (*ManagedK8sRuntimeResource) Update added in v0.1.3

type ManagedK8sRuntimeResourceModel added in v0.1.3

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

	AgentEnv types.Map `tfsdk:"agent_env"`

	Labels types.List `tfsdk:"labels"`

	// Matches the authentication options provided by terraform-provider-kubernetes
	Host                  types.String `tfsdk:"host"`
	Username              types.String `tfsdk:"username"`
	Password              types.String `tfsdk:"password"`
	Insecure              types.Bool   `tfsdk:"insecure"`
	TlsServerName         types.String `tfsdk:"tls_server_name"`
	ClientCertificate     types.String `tfsdk:"client_certificate"`
	ClientKey             types.String `tfsdk:"client_key"`
	ClusterCaCertificate  types.String `tfsdk:"cluster_ca_certificate"`
	ConfigPaths           types.List   `tfsdk:"config_paths"`
	ConfigPath            types.String `tfsdk:"config_path"`
	ConfigContext         types.String `tfsdk:"config_context"`
	ConfigContextAuthInfo types.String `tfsdk:"config_context_auth_info"`
	ConfigContextCluster  types.String `tfsdk:"config_context_cluster"`
	Token                 types.String `tfsdk:"token"`
	ProxyUrl              types.String `tfsdk:"proxy_url"`
	Exec                  *execModel   `tfsdk:"exec"`

	Timeout types.String `tfsdk:"timeout"`

	//  read-only computed attributes
	// the runtime_id as read from the agent annotation,
	// used by the resource to detect if the underlying k8s
	// cluster changed / the runtime was renamed
	AgentRuntimeId         types.String `tfsdk:"agent_runtime_id"`
	AgentExternallyManaged types.Bool   `tfsdk:"agent_externally_managed"`
	// the k8s namespace the agent is running in
	AgentNamespace types.String `tfsdk:"agent_namespace"`
}

ManagedK8sRuntimeResourceModel describes the resource data model.

type ProdvanaProvider

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

ProdvanaProvider defines the provider implementation.

func (*ProdvanaProvider) Configure

func (*ProdvanaProvider) DataSources

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

func (*ProdvanaProvider) Metadata

func (*ProdvanaProvider) Resources

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

func (*ProdvanaProvider) Schema

type ProdvanaProviderModel

type ProdvanaProviderModel struct {
	OrgSlug    types.String `tfsdk:"org_slug"`
	ApiToken   types.String `tfsdk:"api_token"`
	BaseDomain types.String `tfsdk:"base_domain"`
}

ProdvanaProviderModel describes the provider data model.

type ReleaseChannelDataSource

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

ReleaseChannelDataSource defines the data source implementation.

func (*ReleaseChannelDataSource) Configure

func (*ReleaseChannelDataSource) Metadata

func (*ReleaseChannelDataSource) Read

func (*ReleaseChannelDataSource) Schema

type ReleaseChannelResource

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

ReleaseChannelResource defines the resource implementation.

func (*ReleaseChannelResource) Configure

func (*ReleaseChannelResource) Create

func (*ReleaseChannelResource) Delete

func (*ReleaseChannelResource) ImportState

func (*ReleaseChannelResource) Metadata

func (*ReleaseChannelResource) Read

func (*ReleaseChannelResource) Schema

func (*ReleaseChannelResource) Update

type ReleaseChannelResourceModel

type ReleaseChannelResourceModel struct {
	Name        types.String                   `tfsdk:"name"`
	Id          types.String                   `tfsdk:"id"`
	Version     types.String                   `tfsdk:"version"`
	Policy      *policyModel                   `tfsdk:"policy"`
	Runtimes    []*releaseChannelRuntimeConfig `tfsdk:"runtimes"`
	Application types.String                   `tfsdk:"application"`

	ReleaseChannelStablePreconditions []*releaseChannelStable `tfsdk:"release_channel_stable_preconditions"`
	ManualApprovalPreconditions       []*manualApproval       `tfsdk:"manual_approval_preconditions"`
	SharedManualApprovalPreconditions []*sharedManualApproval `tfsdk:"shared_manual_approval_preconditions"`

	Protections                []*protectionAttachment `tfsdk:"protections"`
	ConvergenceProtections     []*protectionAttachment `tfsdk:"convergence_protections"`
	ServiceInstanceProtections []*protectionAttachment `tfsdk:"service_instance_protections"`

	Constants []*constant `tfsdk:"constants"`

	DisableAllProtections types.Bool `tfsdk:"disable_all_protections"`
}

ReleaseChannelResourcrModel describes the resource data model.

type RuntimeLinkResource added in v0.1.3

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

RuntimeLinkResource defines the resource implementation.

func (*RuntimeLinkResource) Configure added in v0.1.3

func (*RuntimeLinkResource) Create added in v0.1.3

func (*RuntimeLinkResource) Delete added in v0.1.3

func (*RuntimeLinkResource) Metadata added in v0.1.3

func (*RuntimeLinkResource) Read added in v0.1.3

func (*RuntimeLinkResource) Schema added in v0.1.3

func (*RuntimeLinkResource) Update added in v0.1.3

type RuntimeLinkResourceModel added in v0.1.3

type RuntimeLinkResourceModel struct {
	Name    types.String `tfsdk:"name"`
	Id      types.String `tfsdk:"id"`
	Timeout types.String `tfsdk:"timeout"`
}

RuntimeLinkResouceModel describes the resource link data model.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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