Documentation ¶
Overview ¶
Package machinepool is a generated GoMock package.
Index ¶
- Variables
- func NewMachinepoolArgsFunction(flagSource bool) func(cmd *cobra.Command, argv []string) error
- func Split(r rune) bool
- func ValidateClusterState(cluster *cmv1.Cluster, clusterKey string) error
- func ValidateKubeletConfig(input interface{}) error
- func ValidateLabels(cmd *cobra.Command, args *mpOpts.CreateMachinepoolUserOptions) error
- type MachinePoolService
- type MockMachinePoolService
- func (m *MockMachinePoolService) CreateMachinePoolBasedOnClusterType(r *rosa.Runtime, cmd *cobra.Command, clusterKey string, cluster *v1.Cluster, ...) error
- func (m *MockMachinePoolService) DeleteMachinePool(r *rosa.Runtime, machinePoolId, clusterKey string, cluster *v1.Cluster) error
- func (m *MockMachinePoolService) DescribeMachinePool(r *rosa.Runtime, cluster *v1.Cluster, clusterKey, machinePoolId string) error
- func (m *MockMachinePoolService) EXPECT() *MockMachinePoolServiceMockRecorder
- func (m *MockMachinePoolService) EditMachinePool(cmd *cobra.Command, machinePoolID, clusterKey string, cluster *v1.Cluster, ...) error
- func (m *MockMachinePoolService) ListMachinePools(r *rosa.Runtime, clusterKey string, cluster *v1.Cluster) error
- type MockMachinePoolServiceMockRecorder
- func (mr *MockMachinePoolServiceMockRecorder) CreateMachinePoolBasedOnClusterType(r, cmd, clusterKey, cluster, options any) *gomock.Call
- func (mr *MockMachinePoolServiceMockRecorder) DeleteMachinePool(r, machinePoolId, clusterKey, cluster any) *gomock.Call
- func (mr *MockMachinePoolServiceMockRecorder) DescribeMachinePool(r, cluster, clusterKey, machinePoolId any) *gomock.Call
- func (mr *MockMachinePoolServiceMockRecorder) EditMachinePool(cmd, machinePoolID, clusterKey, cluster, r any) *gomock.Call
- func (mr *MockMachinePoolServiceMockRecorder) ListMachinePools(r, clusterKey, cluster any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidMachinePoolIdentifier = fmt.Errorf("expected a valid identifier for the machine pool") ErrMissingMachinePoolIdentifier = fmt.Errorf("machine pool identifier is missing") )
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 ValidateClusterState ¶ added in v1.2.45
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
func (m *MockMachinePoolService) EXPECT() *MockMachinePoolServiceMockRecorder
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.