fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGKEClient

type FakeGKEClient struct {
	MockCreateCluster func(string, computev1alpha1.GKEClusterSpec) (*container.Cluster, error)
	MockGetCluster    func(string, string) (*container.Cluster, error)
	MockDeleteCluster func(string, string) error
}

func NewGKEClient

func NewGKEClient() *FakeGKEClient

func (*FakeGKEClient) CreateCluster

func (f *FakeGKEClient) CreateCluster(name string, spec computev1alpha1.GKEClusterSpec) (*container.Cluster, error)

func (*FakeGKEClient) DeleteCluster

func (f *FakeGKEClient) DeleteCluster(zone, name string) error

func (*FakeGKEClient) GetCluster

func (f *FakeGKEClient) GetCluster(zone, name string) (*container.Cluster, error)

Jump to

Keyboard shortcuts

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