providersdkv2

package
v0.86.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ConsulClusterResourceType is the resource type of a Consul cluster
	ConsulClusterResourceType = "hashicorp.consul.cluster"

	// HvnResourceType is the resource type of an HVN
	HvnResourceType = "hashicorp.network.hvn"

	// PeeringResourceType is the resource type of a network peering
	PeeringResourceType = "hashicorp.network.peering"

	// TgwAttachmentResourceType is the resource type of a TGW attachment
	TgwAttachmentResourceType = "hashicorp.network.tgw-attachment"

	// HVNRouteResourceType is the resource type of an HVN route
	HVNRouteResourceType = "hashicorp.network.route"

	// ConsulSnapshotResourceType is the resource type of a Consul snapshot
	ConsulSnapshotResourceType = "hashicorp.consul.snapshot"

	// ConsulClusterHelmConfigDataSourceType is the data source type of a Consul
	// cluster Helm config
	ConsulClusterHelmConfigDataSourceType = ConsulClusterResourceType + ".helm-config"

	// ConsulClusterAgentKubernetesSecretDataSourceType is the data source
	// type of a Consul cluster agent Kubernetes secret
	ConsulClusterAgentKubernetesSecretDataSourceType = ConsulClusterResourceType + ".agent-kubernetes-secret"

	// VaultClusterResourceType is the resource type of a Vault cluster
	VaultClusterResourceType = "hashicorp.vault.cluster"

	// BoundaryClusterResourceType is the resource type of a Boundary Cluster
	BoundaryClusterResourceType = "hashicorp.boundary.cluster"
)

Variables

View Source
var (
	// RFC1918Networks are networks defined as per RFC 1918 (Private Address Space)
	RFC1918Networks = []net.IPNet{
		{

			IP:   net.IPv4(10, 0, 0, 0),
			Mask: net.IPv4Mask(255, 0, 0, 0),
		},
		{

			IP:   net.IPv4(192, 168, 0, 0),
			Mask: net.IPv4Mask(255, 255, 0, 0),
		},
		{

			IP:   net.IPv4(172, 16, 0, 0),
			Mask: net.IPv4Mask(255, 240, 0, 0),
		},
	}

	// RFC6598Networks are networks defined as per RFC 6598 (Shared Address Space)
	RFC6598Networks = []net.IPNet{
		{

			IP:   net.IPv4(100, 64, 0, 0),
			Mask: net.IPv4Mask(255, 192, 0, 0),
		},
	}
)

Functions

func GetOldestProject

GetOldestProject retrieves the oldest project from a list based on its created_at time.

func GetProjectID

func GetProjectID(resourceProjID, clientProjID string) (string, error)

func New

func New() func() *schema.Provider

Types

type ConsulConfig

type ConsulConfig struct {
	Datacenter string   `json:"datacenter"`
	Encrypt    string   `json:"encrypt"`
	RetryJoin  []string `json:"retry_join"`
}

ConsulConfig represents the Consul configuration that will be decoded from a base64 formatted string.

Jump to

Keyboard shortcuts

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