policy

package
v1.4.0-main Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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