Documentation ¶
Overview ¶
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- Constants
- func DownloadTools(kubectlClientPath string, kubectlClientVersion string, localOs string, ...) error
- func GetDomainApexContent(domainName string) bool
- func WriteGoogleApplicationCredentialsFile(googleApplicationCredentials, homeDir string) error
- type GoogleConfiguration
- func (conf *GoogleConfiguration) CreateBucket(bucketName string, keyFile []byte) (*storage.BucketAttrs, error)
- func (conf *GoogleConfiguration) DeleteBucket(bucketName string, keyFile []byte) error
- func (conf *GoogleConfiguration) GetContainerCluster(clusterName string) (*containerpb.Cluster, error)
- func (conf *GoogleConfiguration) GetContainerClusterAuth(clusterName string, keyFile []byte) (*k8s.KubernetesClient, error)
- func (conf *GoogleConfiguration) GetDNSDomains() ([]string, error)
- func (conf *GoogleConfiguration) GetRegions() ([]string, error)
- func (conf *GoogleConfiguration) GetZones() ([]string, error)
- func (conf *GoogleConfiguration) ListBuckets(keyFile []byte) ([]*storage.BucketAttrs, error)
- func (conf *GoogleConfiguration) ListContainerClusters() (*containerpb.ListClustersResponse, error)
- func (conf *GoogleConfiguration) ListInstances(zone string) ([]string, error)
- func (conf *GoogleConfiguration) TestHostedZoneLiveness(hostedZoneName string) bool
Constants ¶
const (
CloudProvider = "google"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadTools ¶
func GetDomainApexContent ¶
GetDomainApexContent determines whether or not a target domain features a host responding at zone apex
func WriteGoogleApplicationCredentialsFile ¶ added in v0.0.4
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