clients

package
v0.0.0-...-e13db15 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetPolicyManager

type GetPolicyManager func(props map[string][]byte) (PolicyManager, error)

type MockPolicyManager

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

MockPolicyManager is a mock of PolicyManager interface.

func NewMockPolicyManager

func NewMockPolicyManager(ctrl *gomock.Controller) *MockPolicyManager

NewMockPolicyManager creates a new mock instance.

func (*MockPolicyManager) Delete

func (m *MockPolicyManager) Delete(ctx context.Context, name string) error

Delete mocks base method.

func (*MockPolicyManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPolicyManager) Get

func (m *MockPolicyManager) Get(ctx context.Context, name string) ([]Policy, error)

Get mocks base method.

func (*MockPolicyManager) Put

func (m *MockPolicyManager) Put(ctx context.Context, name string, policy Policy) error

Put mocks base method.

type MockPolicyManagerMockRecorder

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

MockPolicyManagerMockRecorder is the mock recorder for MockPolicyManager.

func (*MockPolicyManagerMockRecorder) Delete

func (mr *MockPolicyManagerMockRecorder) Delete(ctx, name interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPolicyManagerMockRecorder) Get

func (mr *MockPolicyManagerMockRecorder) Get(ctx, name interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPolicyManagerMockRecorder) Put

func (mr *MockPolicyManagerMockRecorder) Put(ctx, name, policy interface{}) *gomock.Call

Put indicates an expected call of Put.

type PathConfig

type PathConfig struct {
	Path         string
	Capabilities []string
}

type Policy

type Policy struct {
	PathConfig PathConfig
}

type PolicyManager

type PolicyManager interface {
	Put(ctx context.Context, name string, policy Policy) error
	Delete(ctx context.Context, name string) error
	Get(ctx context.Context, name string) ([]Policy, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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