Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GKEClient ¶ added in v0.2.0
type GKEClient struct { MockCreateCluster func(string, computev1alpha1.GKEClusterSpec) (*container.Cluster, error) MockGetCluster func(string, string) (*container.Cluster, error) MockDeleteCluster func(string, string) error }
GKEClient for mocking.
func NewGKEClient ¶
func NewGKEClient() *GKEClient
NewGKEClient returns a fake GKE client for testing.
func (*GKEClient) CreateCluster ¶ added in v0.2.0
func (f *GKEClient) CreateCluster(name string, spec computev1alpha1.GKEClusterSpec) (*container.Cluster, error)
CreateCluster calls the underlying MockCreateCluster method.
func (*GKEClient) DeleteCluster ¶ added in v0.2.0
DeleteCluster calls the underlying MockDeleteCluster method.
func (*GKEClient) GetCluster ¶ added in v0.2.0
GetCluster calls the underlying MockGetCluster method.
Click to show internal directories.
Click to hide internal directories.