Documentation
¶
Index ¶
- Constants
- func ClusterManagerClient() (*container.ClusterManagerClient, error)
- func IsProjectExists(id string) (bool, error)
- func LoggedInUserInfo() (string, string, error)
- func ManagedZones(projectID string) ([]string, error)
- func Projects() ([]string, error)
- func Regions(projectID string) []string
- func ServiceUsageClient() (*serviceusage.Client, error)
- func StorageClient() (*storage.Client, error)
- type BucketLocation
- type InputProvider
- type Option
- type PreflightCheck
- type Provider
- func (in *Provider) Bucket() string
- func (in *Provider) Context() map[string]interface{}
- func (in *Provider) CreateBucket() error
- func (in *Provider) Flush() error
- func (in *Provider) KubeConfig() error
- func (in *Provider) KubeContext() string
- func (in *Provider) Name() string
- func (in *Provider) Permissions() (permissions.Checker, error)
- func (in *Provider) Preflights() []*preflights.Preflight
Constants ¶
View Source
const ( PreflightCheckEnabledServices = PreflightCheck("[User] Enabled Services") PreflightCheckServiceAccountPermissions = PreflightCheck("[User] Test Permissions") )
Variables ¶
This section is empty.
Functions ¶
func ClusterManagerClient ¶
func ClusterManagerClient() (*container.ClusterManagerClient, error)
func IsProjectExists ¶
func LoggedInUserInfo ¶
func ManagedZones ¶
func ServiceUsageClient ¶
func ServiceUsageClient() (*serviceusage.Client, error)
func StorageClient ¶
Types ¶
type BucketLocation ¶
type BucketLocation string
const ( BucketLocationUS BucketLocation = "US" BucketLocationEU BucketLocation = "EU" BucketLocationASIA BucketLocation = "ASIA" )
type InputProvider ¶
InputProvider partially implements the Provider interface. It only contains methods where values need to be read from the user. This is to allow easily swapping out the survey library.
func NewReadonlyInputProvider ¶
func NewReadonlyInputProvider(cluster, project, region string) InputProvider
func NewSurvey ¶
func NewSurvey(defaultCluster string) (InputProvider, error)
type Option ¶
func WithManifest ¶
func WithManifest(m *manifest.ProjectManifest) Option
type PreflightCheck ¶
type PreflightCheck string
type Provider ¶
type Provider struct {
// InputProvider partially implements the Provider interface.
InputProvider
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) CreateBucket ¶
func (*Provider) KubeConfig ¶
func (*Provider) KubeContext ¶
func (*Provider) Permissions ¶
func (in *Provider) Permissions() (permissions.Checker, error)
func (*Provider) Preflights ¶
func (in *Provider) Preflights() []*preflights.Preflight
Click to show internal directories.
Click to hide internal directories.