gke

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 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 Driver

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

func New

func New(ctx context.Context, clientSet *kubernetes.Clientset, parent string) (*Driver, error)

New instantiates GKE driver. parent is used by GKE API, in the format 'projects/*/locations/*/clusters/*'.

func (*Driver) Run

func (d *Driver) Run(ctx context.Context) error

func (*Driver) SchedulePod

func (d *Driver) SchedulePod(ctx context.Context, pod *corev1.Pod) ([2]string, error)

type GKENameObject

type GKENameObject struct {
	Projects   string
	Locations  string
	Clusters   string
	Operations string
}

func ParseGKENameObject

func ParseGKENameObject(name string) (*GKENameObject, error)

Jump to

Keyboard shortcuts

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