machinepool

package
v1.2.45-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package machinepool is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMachinePoolIdentifier = fmt.Errorf("expected a valid identifier for the machine pool")
	ErrMissingMachinePoolIdentifier = fmt.Errorf("machine pool identifier is missing")
)
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 NewMachinepoolArgsFunction added in v1.2.45

func NewMachinepoolArgsFunction(flagSource bool) func(cmd *cobra.Command, argv []string) error

func Split added in v1.2.43

func Split(r rune) bool

func ValidateClusterState added in v1.2.45

func ValidateClusterState(cluster *cmv1.Cluster, clusterKey string) error

Validate the cluster's state is ready

func ValidateKubeletConfig added in v1.2.40

func ValidateKubeletConfig(input interface{}) error

func ValidateLabels added in v1.2.45

func ValidateLabels(cmd *cobra.Command, args *mpOpts.CreateMachinepoolUserOptions) error

Parse labels if the 'labels' flag is set

Types

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
	CreateMachinePoolBasedOnClusterType(r *rosa.Runtime, cmd *cobra.Command,
		clusterKey string, cluster *cmv1.Cluster,
		options *mpOpts.CreateMachinepoolUserOptions) 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) CreateMachinePoolBasedOnClusterType added in v1.2.45

func (m *MockMachinePoolService) CreateMachinePoolBasedOnClusterType(r *rosa.Runtime, cmd *cobra.Command, clusterKey string, cluster *v1.Cluster, options *machinepool.CreateMachinepoolUserOptions) error

CreateMachinePoolBasedOnClusterType 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) CreateMachinePoolBasedOnClusterType added in v1.2.45

func (mr *MockMachinePoolServiceMockRecorder) CreateMachinePoolBasedOnClusterType(r, cmd, clusterKey, cluster, options any) *gomock.Call

CreateMachinePoolBasedOnClusterType indicates an expected call of CreateMachinePoolBasedOnClusterType.

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