policy

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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 *v1beta1.DeviceSpec) 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 *v1beta1.DeviceSpec) error

Sync mocks base method.

type MockManagerMockRecorder

type MockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) IsReady

func (mr *MockManagerMockRecorder) IsReady(ctx, policyType any) *gomock.Call

IsReady indicates an expected call of IsReady.

func (*MockManagerMockRecorder) Sync

func (mr *MockManagerMockRecorder) Sync(ctx, desired any) *gomock.Call

Sync indicates an expected call of Sync.

type Type

type Type string
const (
	Update   Type = "update"
	Download Type = "download"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL