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.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- Constants
- func BootstrapGoogleMgmtCluster(clientset *kubernetes.Clientset, gitProvider string, gitUser string, ...) error
- func DownloadTools(kubectlClientPath string, kubectlClientVersion string, localOs string, ...) error
- func GetDomainApexContent(domainName string) bool
- func GetGithubTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
- func GetGitlabTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string, gid int) map[string]string
- func GetGoogleTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
- func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, ...) map[string]string
- func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, ...) map[string]string
- 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) GetRegions() ([]string, error)
- func (conf *GoogleConfiguration) ListBuckets(keyFile []byte) ([]*storage.BucketAttrs, error)
- func (conf *GoogleConfiguration) ListContainerClusters() (*containerpb.ListClustersResponse, 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 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