Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GKEClient ¶
type GKEClient struct {
MockCreateCluster func(string, computev1alpha2.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 ¶
func (f *GKEClient) CreateCluster(name string, spec computev1alpha2.GKEClusterSpec) (*container.Cluster, error)
CreateCluster calls the underlying MockCreateCluster method.
func (*GKEClient) DeleteCluster ¶
DeleteCluster calls the underlying MockDeleteCluster method.
func (*GKEClient) GetCluster ¶
GetCluster calls the underlying MockGetCluster method.
Click to show internal directories.
Click to hide internal directories.