Documentation
¶
Overview ¶
Package os is a generated GoMock package.
Index ¶
- type Client
- type Manager
- type MockClient
- type MockClientMockRecorder
- type MockManager
- func (m *MockManager) AfterUpdate(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error
- func (m *MockManager) BeforeUpdate(ctx context.Context, current, desired *v1alpha1.RenderedDeviceSpec) error
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) Reboot(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error
- func (m *MockManager) Status(arg0 context.Context, arg1 *v1alpha1.DeviceStatus) error
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) AfterUpdate(ctx, desired any) *gomock.Call
- func (mr *MockManagerMockRecorder) BeforeUpdate(ctx, current, desired any) *gomock.Call
- func (mr *MockManagerMockRecorder) Reboot(ctx, desired any) *gomock.Call
- func (mr *MockManagerMockRecorder) Status(arg0, arg1 any) *gomock.Call
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Status retrieves the current OS status. Status(ctx context.Context) (*Status, error) // Switch prepares the system to switch to the specified OS image. Switch(ctx context.Context, image string) error // Apply applies the OS changes, potentially triggering a reboot. Apply(ctx context.Context) error }
type Manager ¶
type Manager interface { BeforeUpdate(ctx context.Context, current, desired *v1alpha1.RenderedDeviceSpec) error AfterUpdate(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error Reboot(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error status.Exporter }
func NewManager ¶
NewManager creates a new os manager.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) Apply ¶
func (m *MockClient) Apply(ctx context.Context) error
Apply mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Apply ¶
func (mr *MockClientMockRecorder) Apply(ctx any) *gomock.Call
Apply indicates an expected call of Apply.
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) AfterUpdate ¶
func (m *MockManager) AfterUpdate(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error
AfterUpdate mocks base method.
func (*MockManager) BeforeUpdate ¶
func (m *MockManager) BeforeUpdate(ctx context.Context, current, desired *v1alpha1.RenderedDeviceSpec) error
BeforeUpdate mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) Reboot ¶
func (m *MockManager) Reboot(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error
Reboot mocks base method.
func (*MockManager) Status ¶
func (m *MockManager) Status(arg0 context.Context, arg1 *v1alpha1.DeviceStatus) error
Status mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) AfterUpdate ¶
func (mr *MockManagerMockRecorder) AfterUpdate(ctx, desired any) *gomock.Call
AfterUpdate indicates an expected call of AfterUpdate.
func (*MockManagerMockRecorder) BeforeUpdate ¶
func (mr *MockManagerMockRecorder) BeforeUpdate(ctx, current, desired any) *gomock.Call
BeforeUpdate indicates an expected call of BeforeUpdate.