google

package
v0.3.22 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 34 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 = "google"
)

Variables

This section is empty.

Functions

func BootstrapGoogleMgmtCluster

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

func DownloadTools

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

func GetDomainApexContent

func GetDomainApexContent(domainName string) bool

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

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 GetGoogleTerraformEnvs

func GetGoogleTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) 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 GoogleConfiguration

type GoogleConfiguration struct {
	Context context.Context
	Project string
	Region  string
	KeyFile string
}

GoogleConfiguration stores session data to organize all google functions into a single struct

func (*GoogleConfiguration) CreateBucket

func (conf *GoogleConfiguration) CreateBucket(bucketName string, keyFile []byte) (*storage.BucketAttrs, error)

CreateBucket creates a GCS bucket

func (*GoogleConfiguration) DeleteBucket

func (conf *GoogleConfiguration) DeleteBucket(bucketName string, keyFile []byte) error

DeleteBucket deletes a GCS bucket

func (*GoogleConfiguration) GetContainerCluster

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

GetContainerCluster

func (*GoogleConfiguration) GetContainerClusterAuth

func (conf *GoogleConfiguration) GetContainerClusterAuth(clusterName string, keyFile []byte) (*k8s.KubernetesClient, error)

GetContainerClusterAuth

func (*GoogleConfiguration) GetRegions

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

GetRegions lists all available regions

func (*GoogleConfiguration) ListBuckets

func (conf *GoogleConfiguration) ListBuckets(keyFile []byte) ([]*storage.BucketAttrs, error)

ListBuckets lists all GCS buckets for a project

func (*GoogleConfiguration) ListContainerClusters

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

ListContainerClusters

func (*GoogleConfiguration) TestHostedZoneLiveness

func (conf *GoogleConfiguration) 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