gke

package
v0.0.0-...-400ac05 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudPlatformRole = "https://www.googleapis.com/auth/cloud-platform"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GKE

type GKE struct {
	GoogleGKEClient GoogleGKEClient
	// contains filtered or unexported fields
}

func (*GKE) NewClient

func (g *GKE) NewClient(ctx context.Context, gke v1alpha1.GoogleKubernetesEngine, kube kclient.Client, namespace string) (gkratorclient.Client, error)

NewClient constructs a GCP Provider.

type GoogleGKEClient

type GoogleGKEClient interface {
	CreateCluster(ctx context.Context, req *containerpb.CreateClusterRequest, opts ...gax.CallOption) (*containerpb.Operation, error)
	CreateNodePool(ctx context.Context, req *containerpb.CreateNodePoolRequest, opts ...gax.CallOption) (*containerpb.Operation, error)
	DeleteCluster(ctx context.Context, req *containerpb.DeleteClusterRequest, opts ...gax.CallOption) (*containerpb.Operation, error)
	DeleteNodePool(ctx context.Context, req *containerpb.DeleteNodePoolRequest, opts ...gax.CallOption) (*containerpb.Operation, error)
	Close() error
}

Jump to

Keyboard shortcuts

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