resource

package
v0.0.0-...-56aa1ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AWSCPI statically defines cpi string
	AWSCPI = ID{"cpi"}
	// AWSStemcell statically defines stemcell string
	AWSStemcell = ID{"stemcell"}
	// BOSHRelease statically defines bosh string
	BOSHRelease = ID{"bosh"}
	// BPMRelease statically defines bpm string
	BPMRelease = ID{"bpm"}
)
View Source
var (
	// DirectorManifest statically defines director-manifest.yml contents
	DirectorManifest = mustAssetString("assets/manifest.yml")

	// AWSDirectorCloudConfig statically defines aws cloud-config.yml
	AWSDirectorCloudConfig = mustAssetString("assets/aws/cloud-config.yml")
	// AWSCPIOps statically defines aws-cpi.yml contents
	AWSCPIOps = mustAssetString("assets/aws/cpi.yml")
	//GCPJumpboxUserOps statically defines gcp jumpbox-user.yml
	GCPJumpboxUserOps = mustAssetString("assets/gcp/jumpbox-user.yml")
	// GCPDirectorCloudConfig statically defines gcp cloud-config.yml
	GCPDirectorCloudConfig = mustAssetString("assets/gcp/cloud-config.yml")
	// GCPCPIOps statically defines gcp-cpi.yml contents
	GCPCPIOps = mustAssetString("assets/gcp/cpi.yml")
	// GCPExternalIPOps statically defines external-ip.yml contents
	GCPExternalIPOps = mustAssetString("assets/gcp/external-ip.yml")
	// GCPDirectorCustomOps statically defines custom-ops.yml contents
	GCPDirectorCustomOps = mustAssetString("assets/gcp/custom-ops.yml")

	// AWSTerraformConfig holds the terraform conf for AWS
	AWSTerraformConfig = mustAssetString("assets/aws/infrastructure.tf")

	// GCPTerraformConfig holds the terraform conf for GCP
	GCPTerraformConfig = mustAssetString("assets/gcp/infrastructure.tf")

	// ExternalIPOps statically defines external-ip.yml contents
	ExternalIPOps = mustAssetString("assets/external-ip.yml")
	// AWSDirectorCustomOps statically defines custom-ops.yml contents
	AWSDirectorCustomOps = mustAssetString("assets/aws/custom-ops.yml")

	// AWSReleaseVersions carries all versions of releases
	AWSReleaseVersions = mustAssetString("../../concourse-up-ops/ops/versions-aws.json")

	// GCPReleaseVersions carries all versions of releases
	GCPReleaseVersions = mustAssetString("../../concourse-up-ops/ops/versions-gcp.json")

	// AddNewCa carries the ops file that adds a new CA required for cert rotation
	AddNewCa = mustAssetString("assets/maintenance/add-new-ca.yml")

	// RemoveOldCa carries the ops file that removes the old CA required for cert rotation
	RemoveOldCa = mustAssetString("assets/maintenance/remove-old-ca.yml")

	// CleanupCerts moves renewed values of certs to old keys in director vars store
	CleanupCerts = mustAssetString("assets/maintenance/cleanup-certs.yml")
)

Functions

func BOSHCLIPath

func BOSHCLIPath() (string, error)

BOSHCLIPath returns the path of the downloaded bosh-cli

func TerraformCLIPath

func TerraformCLIPath() (string, error)

TerraformCLIPath returns the path of the downloaded terraform-cli

Types

type ID

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

ID defines the name of a resource in a safer way

type Resource

type Resource struct {
	URL     string `json:"url"`
	Version string `json:"version"`
	SHA1    string `json:"sha1"`
}

Resource safely exposes the json parameters of a resource

func Get

func Get(id ID) Resource

Get returns an Resource in a safe way

Jump to

Keyboard shortcuts

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