client

package
v0.0.0-...-d10fae5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

based on https://gist.github.com/ahmetb/548059cdbf12fb571e4e2f1e29c48997

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExternalClient

func NewExternalClient(ctx context.Context, project, clusterName string) (kubernetes.Interface, client.Client, error)

NewExternalClient will return a ClientSet along with a REST client for the given management cluster, it expect that given cluster to be present in exactly one GCP location

Types

type ClientSetBuilder

type ClientSetBuilder interface {
	NewClientSet(cluster *cnrm.PartialContainerCluster) (kubernetes.Interface, error)
}

type GKEClientSetBuilder

type GKEClientSetBuilder struct{}

func NewClientSetBuilder

func NewClientSetBuilder() (*GKEClientSetBuilder, error)

func (GKEClientSetBuilder) NewClientSet

Jump to

Keyboard shortcuts

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