Documentation ¶
Index ¶
- Constants
- func BindServiceAccToBucket(serviceAccount, bucket, permission string) error
- func BindServiceAccountToRole(gcloudProject, serviceAccount, role string) error
- func CreateServiceAccount(name string) error
- func GenerateServiceAccountKey(serviceAccount, path string) error
- func RunCommand(ctx context.Context, name, rootCmd string, args ...string) (output string, err error)
- type App
- type Cluster
- func (c *Cluster) ConfigKubernetes() error
- func (c Cluster) CreateFakeSecret() error
- func (c Cluster) GenerateConfig() error
- func (c *Cluster) GetServiceAccountOpts() ServiceAccount
- func (c *Cluster) GetStorageOpts() Storage
- func (c *Cluster) InitGCloudCmdSet() (*CmdSet, error)
- func (c *Cluster) InitKubeCmdSet() (*CmdSet, error)
- type CmdSet
- type Command
- type DNSRecords
- type GcloudAccount
- type KubeApp
- type Metadata
- type ProjectList
- type ServiceAccount
- type Storage
Constants ¶
View Source
const ( ServiceAccountFmt = `%s@%s.iam.gserviceaccount.com` StorageBucketFmt = `gs://%s` )
Variables ¶
This section is empty.
Functions ¶
func BindServiceAccToBucket ¶
func CreateServiceAccount ¶
Types ¶
type Cluster ¶
type Cluster struct { Name string `json:"cluster_name" survey:"clusterName"` GcloudProjectName string `json:"project_name" survey:"project"` Account string `json:"account"` Region string `json:"region"` Zone string `json:"zone"` DNSName string `json:"dns_name" survey:"dnsName"` Storage Storage `json:"storage"` ServiceAccount ServiceAccount `json:"service_account"` KubeAppConfig *KubeApp `json:"kubeapp"` KubeAppMap map[string]App `json:"-"` ConfPath string `json:"config_path"` }
func (*Cluster) ConfigKubernetes ¶
func (Cluster) CreateFakeSecret ¶
func (Cluster) GenerateConfig ¶
func (*Cluster) GetServiceAccountOpts ¶
func (c *Cluster) GetServiceAccountOpts() ServiceAccount
func (*Cluster) GetStorageOpts ¶
func (*Cluster) InitGCloudCmdSet ¶
func (*Cluster) InitKubeCmdSet ¶
type Command ¶
type DNSRecords ¶
type GcloudAccount ¶
type ProjectList ¶
type ServiceAccount ¶
type ServiceAccount struct { CloudBuildName string `json:"cloudbuild_serviceaccount_name"` CloudBuild string `json:"cloudbuild_serviceaccount"` StorageName string `json:"storage_serviceaccount_name"` Storage string `json:"storage_serviceaccount"` DNSName string `json:"clouddns_serviceaccount_name"` DNS string `json:"clouddns_serviceaccount"` }
Click to show internal directories.
Click to hide internal directories.