gcp

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package gcp provides common functionality to run cloud prepare/cleanup on GCP Clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOn

func RunOn(restConfigProducer *restconfig.Producer, config *Config, status reporter.Interface,
	function func(api.Cloud, api.GatewayDeployer, reporter.Interface) error,
) error

RunOn runs the given function on GCP, supplying it with a cloud instance connected to GCP and a reporter that writes to CLI. The functions makes sure that infraID and region are specified, and extracts the credentials from a secret in order to connect to GCP.

Types

type Config

type Config struct {
	DedicatedGateway bool
	Gateways         int
	InfraID          string
	Region           string
	ProjectID        string
	CredentialsFile  string
	OcpMetadataFile  string
	GWInstanceType   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL