testutils

package
v2.1.117 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureEnv

func ConfigureEnv(region string, defaultRegion string, profile string)

func RestoreHome

func RestoreHome(oldHome string)

func SetUserHomeDir

func SetUserHomeDir(newHome string)

func SwitchAWSHome

func SwitchAWSHome() (string, error)

SwitchAWSHome creates a dummy .aws dir for testing

Types

type MockClusterProvider

type MockClusterProvider struct {
	Region  string
	Profile string
	// contains filtered or unexported fields
}

func NewMockProvider

func NewMockProvider(region string, profile string) *MockClusterProvider

NewMockProvider returns a mocked representation of cluster.Provider

func (MockClusterProvider) AWSCli

func (p MockClusterProvider) AWSCli() awscli.AWS

AWSCli returns an abstraction of the AWS CLI

func (MockClusterProvider) EC2

func (p MockClusterProvider) EC2() ec2.EC2er

EC2 returns an initialized instance of EC2Options

func (MockClusterProvider) EKS

func (p MockClusterProvider) EKS() eks.EKSer

EKS returns an initialized instance of EKSClusterOptions

func (MockClusterProvider) EKSCtl

func (p MockClusterProvider) EKSCtl() eksctl.EKSCtl

EKSCtl returns an abstraction of the eksctl CLI

Jump to

Keyboard shortcuts

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