machinepool

package
v1.2.43-rc6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package machinepool is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var MachinePoolKeyRE = regexp.MustCompile(`^[a-z]([-a-z0-9]*[a-z0-9])?$`)

Regular expression to used to make sure that the identifier given by the user is safe and that it there is no risk of SQL injection:

Functions

func Split added in v1.2.43

func Split(r rune) bool

func ValidateKubeletConfig added in v1.2.40

func ValidateKubeletConfig(input interface{}) error

Types

type MachinePoolArgs added in v1.2.43

type MachinePoolArgs struct {
	Name                  string
	InstanceType          string
	Replicas              int
	AutoscalingEnabled    bool
	MinReplicas           int
	MaxReplicas           int
	Labels                string
	Taints                string
	UseSpotInstances      bool
	SpotMaxPrice          string
	MultiAvailabilityZone bool
	AvailabilityZone      string
	Subnet                string
	Version               string
	Autorepair            bool
	TuningConfigs         string
	KubeletConfigs        string
	RootDiskSize          string
	SecurityGroupIds      []string
	NodeDrainGracePeriod  string
	Tags                  []string
	MaxSurge              string
	MaxUnavailable        string
	EC2MetadataHttpTokens string
}

type MachinePoolService

type MachinePoolService interface {
	DescribeMachinePool(r *rosa.Runtime, cluster *cmv1.Cluster, clusterKey string, machinePoolId string) error
	ListMachinePools(r *rosa.Runtime, clusterKey string, cluster *cmv1.Cluster) error
	DeleteMachinePool(r *rosa.Runtime, machinePoolId string, clusterKey string, cluster *cmv1.Cluster) error
	EditMachinePool(cmd *cobra.Command, machinePoolID string, clusterKey string, cluster *cmv1.Cluster,
		r *rosa.Runtime) error
	AddMachinePool(cmd *cobra.Command, clusterKey string, cluster *cmv1.Cluster, r *rosa.Runtime,
		args *MachinePoolArgs) error
	AddNodePool(cmd *cobra.Command, clusterKey string, cluster *cmv1.Cluster, r *rosa.Runtime,
		args *MachinePoolArgs) error
}

func NewMachinePoolService

func NewMachinePoolService() MachinePoolService

type MockMachinePoolService added in v1.2.40

type MockMachinePoolService struct {
	// contains filtered or unexported fields
}

MockMachinePoolService is a mock of MachinePoolService interface.

func NewMockMachinePoolService added in v1.2.40

func NewMockMachinePoolService(ctrl *gomock.Controller) *MockMachinePoolService

NewMockMachinePoolService creates a new mock instance.

func (*MockMachinePoolService) AddMachinePool added in v1.2.43

func (m *MockMachinePoolService) AddMachinePool(cmd *cobra.Command, clusterKey string, cluster *v1.Cluster, r *rosa.Runtime, args *MachinePoolArgs) error

AddMachinePool mocks base method.

func (*MockMachinePoolService) AddNodePool added in v1.2.43

func (m *MockMachinePoolService) AddNodePool(cmd *cobra.Command, clusterKey string, cluster *v1.Cluster, r *rosa.Runtime, args *MachinePoolArgs) error

AddNodePool mocks base method.

func (*MockMachinePoolService) DeleteMachinePool added in v1.2.41

func (m *MockMachinePoolService) DeleteMachinePool(r *rosa.Runtime, machinePoolId, clusterKey string, cluster *v1.Cluster) error

DeleteMachinePool mocks base method.

func (*MockMachinePoolService) DescribeMachinePool added in v1.2.40

func (m *MockMachinePoolService) DescribeMachinePool(r *rosa.Runtime, cluster *v1.Cluster, clusterKey, machinePoolId string) error

DescribeMachinePool mocks base method.

func (*MockMachinePoolService) EXPECT added in v1.2.40

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMachinePoolService) EditMachinePool added in v1.2.43

func (m *MockMachinePoolService) EditMachinePool(cmd *cobra.Command, machinePoolID, clusterKey string, cluster *v1.Cluster, r *rosa.Runtime) error

EditMachinePool mocks base method.

func (*MockMachinePoolService) ListMachinePools added in v1.2.41

func (m *MockMachinePoolService) ListMachinePools(r *rosa.Runtime, clusterKey string, cluster *v1.Cluster) error

ListMachinePools mocks base method.

type MockMachinePoolServiceMockRecorder added in v1.2.40

type MockMachinePoolServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockMachinePoolServiceMockRecorder is the mock recorder for MockMachinePoolService.

func (*MockMachinePoolServiceMockRecorder) AddMachinePool added in v1.2.43

func (mr *MockMachinePoolServiceMockRecorder) AddMachinePool(cmd, clusterKey, cluster, r, args any) *gomock.Call

AddMachinePool indicates an expected call of AddMachinePool.

func (*MockMachinePoolServiceMockRecorder) AddNodePool added in v1.2.43

func (mr *MockMachinePoolServiceMockRecorder) AddNodePool(cmd, clusterKey, cluster, r, args any) *gomock.Call

AddNodePool indicates an expected call of AddNodePool.

func (*MockMachinePoolServiceMockRecorder) DeleteMachinePool added in v1.2.41

func (mr *MockMachinePoolServiceMockRecorder) DeleteMachinePool(r, machinePoolId, clusterKey, cluster any) *gomock.Call

DeleteMachinePool indicates an expected call of DeleteMachinePool.

func (*MockMachinePoolServiceMockRecorder) DescribeMachinePool added in v1.2.40

func (mr *MockMachinePoolServiceMockRecorder) DescribeMachinePool(r, cluster, clusterKey, machinePoolId any) *gomock.Call

DescribeMachinePool indicates an expected call of DescribeMachinePool.

func (*MockMachinePoolServiceMockRecorder) EditMachinePool added in v1.2.43

func (mr *MockMachinePoolServiceMockRecorder) EditMachinePool(cmd, machinePoolID, clusterKey, cluster, r any) *gomock.Call

EditMachinePool indicates an expected call of EditMachinePool.

func (*MockMachinePoolServiceMockRecorder) ListMachinePools added in v1.2.41

func (mr *MockMachinePoolServiceMockRecorder) ListMachinePools(r, clusterKey, cluster any) *gomock.Call

ListMachinePools indicates an expected call of ListMachinePools.

Jump to

Keyboard shortcuts

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