Documentation ¶
Index ¶
- type KopsSupport
- func (ki *KopsSupport) CredentialsFile(ctx context.Context) (string, errors.Error)
- func (ki *KopsSupport) EnvironmentVariables(ctx context.Context) ([]string, errors.Error)
- func (ki *KopsSupport) PlatformID() string
- func (ki *KopsSupport) SSHPublicKey(ctx context.Context) (string, errors.Error)
- func (ki *KopsSupport) StateStoreURL(ctx context.Context) (*url.URL, errors.Error)
- type KopsSupportConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KopsSupport ¶
type KopsSupport struct {
// contains filtered or unexported fields
}
KopsSupport provides functionality that supports the running of kops commands. This includes creating and validating gcp cloud resources needed to successfully run the provisioner.
func NewKopsSupport ¶
func NewKopsSupport(cfg KopsSupportConfig) *KopsSupport
func (*KopsSupport) CredentialsFile ¶
CredentialsFile returns the path to the gcp service account file that is used to authenticate with google cloud apis
func (*KopsSupport) EnvironmentVariables ¶
func (*KopsSupport) PlatformID ¶
func (ki *KopsSupport) PlatformID() string
func (*KopsSupport) SSHPublicKey ¶
func (*KopsSupport) StateStoreURL ¶
StateStore checks if the bucket exists and creates it if it doesn't. Then it will return a url to the storage bucket suitable for kops.
Click to show internal directories.
Click to hide internal directories.