fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 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 MockEKSClient

type MockEKSClient struct {
	MockCreate            func(string, v1alpha3.EKSClusterSpec) (*eks.Cluster, error)
	MockGet               func(string) (*eks.Cluster, error)
	MockDelete            func(name string) error
	MockConnectionToken   func(string) (string, error)
	MockCreateWorkerNodes func(string, string, v1alpha3.EKSClusterSpec) (*eks.ClusterWorkers, error)
	MockGetWorkerNodes    func(string) (*eks.ClusterWorkers, error)
	MockDeleteWorkerNodes func(string) error
}

MockEKSClient mock client for EKS

func (*MockEKSClient) ConnectionToken

func (m *MockEKSClient) ConnectionToken(name string) (string, error)

ConnectionToken mock

func (*MockEKSClient) Create

func (m *MockEKSClient) Create(name string, spec v1alpha3.EKSClusterSpec) (*eks.Cluster, error)

Create EKS Cluster with provided Specification

func (*MockEKSClient) CreateWorkerNodes

func (m *MockEKSClient) CreateWorkerNodes(name string, version string, spec v1alpha3.EKSClusterSpec) (*eks.ClusterWorkers, error)

CreateWorkerNodes mock

func (*MockEKSClient) Delete

func (m *MockEKSClient) Delete(name string) error

Delete mock EKS Cluster

func (*MockEKSClient) DeleteWorkerNodes

func (m *MockEKSClient) DeleteWorkerNodes(stackID string) error

DeleteWorkerNodes mock

func (*MockEKSClient) Get

func (m *MockEKSClient) Get(name string) (*eks.Cluster, error)

Get mock EKS Cluster by name

func (*MockEKSClient) GetWorkerNodes

func (m *MockEKSClient) GetWorkerNodes(stackID string) (*eks.ClusterWorkers, error)

GetWorkerNodes mock

Jump to

Keyboard shortcuts

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