Documentation
¶
Overview ¶
Package policy is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
Sync(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error
IsReady(ctx context.Context, policyType Type) bool
}
func NewManager ¶
func NewManager(log *log.PrefixLogger) Manager
NewManager returns a new device policy manager. Note: This manager is designed for sequential operations only and is not thread-safe.
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) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) IsReady ¶
func (m *MockManager) IsReady(ctx context.Context, policyType Type) bool
IsReady mocks base method.
func (*MockManager) Sync ¶
func (m *MockManager) Sync(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error
Sync mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
Click to show internal directories.
Click to hide internal directories.