gke

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterOptions

type ClusterOptions struct {
	Project       string
	Zone          string
	Network       string
	Subnet        string
	DynamicSubnet bool
	CIDR          string
	ServicesCIDR  string
	SecurityGroup string
	DiskType      string
	DiskSizeGB    int32
}

ClusterOptions stores options to use when creating GKE clusters, eg. which gcloud project to use.

type ClusterProvider

type ClusterProvider struct {
	// contains filtered or unexported fields
}

ClusterProvider creates a new GKE cluster for each call to GetCluster.

func NewClusterProvider

func NewClusterProvider(clusterOpts *ClusterOptions, opts ...option.ClientOption) (*ClusterProvider, error)

NewClusterProvider returns a new ClusterProvider that can create new GKE clusters.

func (*ClusterProvider) Close

func (p *ClusterProvider) Close() error

Close closes the GKE client.

func (*ClusterProvider) GetCluster

func (p *ClusterProvider) GetCluster(ctx context.Context, spec *experimentpb.ClusterSpec) (*cluster.Context, func(), error)

GetCluster returns a new GKE cluster that adheres to the given spec.

Jump to

Keyboard shortcuts

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