google

package
v0.120.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 27 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.

Index

Constants

View Source
const (
	CloudProvider = "google"
)

Variables

This section is empty.

Functions

func GetDomainApexContent

func GetDomainApexContent(domainName string) bool

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

func WriteGoogleApplicationCredentialsFile

func WriteGoogleApplicationCredentialsFile(googleApplicationCredentials, homeDir string) error

WriteGoogleApplicationCredentialsFile writes credentials file for use throughout installation

Types

type Configuration added in v0.106.0

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

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

func (*Configuration) CreateBucket added in v0.106.0

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

CreateBucket creates a GCS bucket

func (*Configuration) DeleteBucket added in v0.106.0

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

DeleteBucket deletes a GCS bucket

func (*Configuration) GetContainerCluster added in v0.106.0

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

GetContainerCluster

func (*Configuration) GetContainerClusterAuth added in v0.106.0

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

GetContainerClusterAuth

func (*Configuration) GetDNSDomains added in v0.106.0

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

func (*Configuration) GetRegions added in v0.106.0

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

GetRegions lists all available regions

func (*Configuration) GetZones added in v0.106.0

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

func (*Configuration) ListBuckets added in v0.106.0

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

ListBuckets lists all GCS buckets for a project

func (*Configuration) ListContainerClusters added in v0.106.0

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

ListContainerClusters

func (*Configuration) ListInstances added in v0.106.0

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

func (*Configuration) TestHostedZoneLiveness added in v0.106.0

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