gcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

View Source
const (
	CloudProvider = "gcp"
)

Variables

This section is empty.

Functions

func BootstrapGCPMgmtCluster added in v0.1.50

func BootstrapGCPMgmtCluster(
	clientset *kubernetes.Clientset,
	gitProvider string,
	gitUser string,
	destinationGitopsRepoURL string,
	gitProtocol string,
	cloudflareAPIToken string,
	googleApplicationCredentials string,
) error

func DownloadTools

func DownloadTools(
	kubectlClientPath string,
	kubectlClientVersion string,
	localOs string,
	localArchitecture string,
	terraformClientVersion string,
	toolsDirPath string,
) error

func GetDomainApexContent added in v0.1.50

func GetDomainApexContent(domainName string) bool

GetDomainApexContent determines whether or not a target domain features a host responding at zone apex

func GetGCPTerraformEnvs

func GetGCPTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

func GetGithubTerraformEnvs

func GetGithubTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

func GetGitlabTerraformEnvs

func GetGitlabTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string, gid int) map[string]string

func GetUsersTerraformEnvs

func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

func GetVaultTerraformEnvs

func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

Types

type GCPConfiguration

type GCPConfiguration struct {
	Context context.Context
	Project string
	Region  string
}

GCPConfiguration stores session data to organize all GCP functions into a single struct

func (*GCPConfiguration) CreateBucket

func (conf *GCPConfiguration) CreateBucket(bucketName string) (*storage.BucketAttrs, error)

CreateBucket creates a GCS bucket

func (*GCPConfiguration) DeleteBucket

func (conf *GCPConfiguration) DeleteBucket(bucketName string) error

DeleteBucket deletes a GCS bucket

func (*GCPConfiguration) GetContainerCluster

func (conf *GCPConfiguration) GetContainerCluster(clusterName string) (*containerpb.Cluster, error)

GetContainerCluster

func (*GCPConfiguration) GetContainerClusterAuth

func (conf *GCPConfiguration) GetContainerClusterAuth(clusterName string) (*k8s.KubernetesClient, error)

GetContainerClusterAuth

func (*GCPConfiguration) GetRegions

func (conf *GCPConfiguration) GetRegions() ([]string, error)

GetRegions lists all available regions

func (*GCPConfiguration) ListBuckets

func (conf *GCPConfiguration) ListBuckets() ([]*storage.BucketAttrs, error)

ListBuckets lists all GCS buckets for a project

func (*GCPConfiguration) ListContainerClusters

func (conf *GCPConfiguration) ListContainerClusters() (*containerpb.ListClustersResponse, error)

ListContainerClusters

func (*GCPConfiguration) TestHostedZoneLiveness

func (conf *GCPConfiguration) TestHostedZoneLiveness(hostedZoneName string) bool

TestHostedZoneLiveness checks DNS for the liveness test record

Jump to

Keyboard shortcuts

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