google

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 28 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.

Index

Constants

View Source
const (
	CloudProvider = "google"
)

Variables

This section is empty.

Functions

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 WriteGoogleApplicationCredentialsFile added in v0.0.4

func WriteGoogleApplicationCredentialsFile(googleApplicationCredentials, homeDir string) error

WriteGoogleApplicationCredentialsFile writes credentials file for use throughout installation

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) GetDNSDomains added in v0.0.3

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

func (*GoogleConfiguration) GetRegions

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

GetRegions lists all available regions

func (*GoogleConfiguration) GetZones added in v0.0.4

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

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) ListInstances added in v0.0.3

func (conf *GoogleConfiguration) ListInstances(zone string) ([]string, error)

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