Documentation ¶
Index ¶
- Constants
- type MachineTypeService
- func (s *MachineTypeService) AddMachineGroup(ctx context.Context, ...) (*connect.Response[machinetypev1alpha1.AddMachineGroupResponse], error)
- func (s *MachineTypeService) GetJob(ctx context.Context, c *connect.Request[machinetypev1alpha1.GetJobRequest]) (*connect.Response[machinetypev1alpha1.GetJobResponse], error)
- func (s *MachineTypeService) ListMachineTypes(ctx context.Context, ...) (*connect.Response[machinetypev1alpha1.ListMachineTypesResponse], error)
- func (s *MachineTypeService) RemoveMachineGroup(ctx context.Context, ...) (*connect.Response[machinetypev1alpha1.RemoveMachineGroupResponse], error)
- func (s *MachineTypeService) Scan(ctx context.Context, c *connect.Request[machinetypev1alpha1.ScanRequest]) (*connect.Response[machinetypev1alpha1.ScanResponse], error)
- func (s *MachineTypeService) StartScheduler(ctx context.Context)
- func (s *MachineTypeService) UpdateMachineTypeStatus(ctx context.Context, ...) (*connect.Response[machinetypev1alpha1.UpdateMachineTypeStatusResponse], error)
- type Option
Constants ¶
View Source
const (
AddMachineGroupFailureReason = "machine group already in the list"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachineTypeService ¶
type MachineTypeService struct { machinetypev1alpha1connect.UnimplementedMachineTypeServiceHandler // contains filtered or unexported fields }
func NewService ¶
func NewService(cfg *rest.Config, opts ...Option) *MachineTypeService
func (*MachineTypeService) AddMachineGroup ¶
func (s *MachineTypeService) AddMachineGroup( ctx context.Context, c *connect.Request[machinetypev1alpha1.AddMachineGroupRequest], ) (*connect.Response[machinetypev1alpha1.AddMachineGroupResponse], error)
func (*MachineTypeService) GetJob ¶
func (s *MachineTypeService) GetJob( ctx context.Context, c *connect.Request[machinetypev1alpha1.GetJobRequest], ) (*connect.Response[machinetypev1alpha1.GetJobResponse], error)
func (*MachineTypeService) ListMachineTypes ¶
func (s *MachineTypeService) ListMachineTypes( ctx context.Context, c *connect.Request[machinetypev1alpha1.ListMachineTypesRequest], ) (*connect.Response[machinetypev1alpha1.ListMachineTypesResponse], error)
func (*MachineTypeService) RemoveMachineGroup ¶
func (s *MachineTypeService) RemoveMachineGroup( ctx context.Context, c *connect.Request[machinetypev1alpha1.RemoveMachineGroupRequest], ) (*connect.Response[machinetypev1alpha1.RemoveMachineGroupResponse], error)
func (*MachineTypeService) Scan ¶
func (s *MachineTypeService) Scan( ctx context.Context, c *connect.Request[machinetypev1alpha1.ScanRequest], ) (*connect.Response[machinetypev1alpha1.ScanResponse], error)
func (*MachineTypeService) StartScheduler ¶
func (s *MachineTypeService) StartScheduler(ctx context.Context)
func (*MachineTypeService) UpdateMachineTypeStatus ¶
func (s *MachineTypeService) UpdateMachineTypeStatus( ctx context.Context, c *connect.Request[machinetypev1alpha1.UpdateMachineTypeStatusRequest], ) (*connect.Response[machinetypev1alpha1.UpdateMachineTypeStatusResponse], error)
type Option ¶
type Option func(service *MachineTypeService)
func WithHorizon ¶
func WithNamespace ¶
func WithScheduler ¶
func WithScheduler(scheduler *scheduler.Scheduler[*lifecyclev1alpha1.MachineType]) Option
Click to show internal directories.
Click to hide internal directories.