google

package
v0.107.8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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

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

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

CreateBucket creates a GCS bucket

func (*Configuration) DeleteBucket

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

DeleteBucket deletes a GCS bucket

func (*Configuration) GetContainerCluster

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

GetContainerCluster

func (*Configuration) GetContainerClusterAuth

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

GetContainerClusterAuth

func (*Configuration) GetDNSDomains

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

func (*Configuration) GetRegions

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

GetRegions lists all available regions

func (*Configuration) GetZones

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

func (*Configuration) ListBuckets

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

ListBuckets lists all GCS buckets for a project

func (*Configuration) ListContainerClusters

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

ListContainerClusters

func (*Configuration) ListInstances

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

func (*Configuration) TestHostedZoneLiveness

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