allocator

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeIdentityAllocator

type FakeIdentityAllocator struct{}

FakeIdentityAllocator is used as a mock identity allocator for unit tests.

func (*FakeIdentityAllocator) AllocateIdentity

AllocateIdentity does nothing.

func (*FakeIdentityAllocator) LookupIdentityByID

LookupIdentityByID returns the identity corresponding to the id if the identity is a reserved identity. Otherwise, returns nil.

func (*FakeIdentityAllocator) Release

func (f *FakeIdentityAllocator) Release(context.Context, *identity.Identity) (released bool, err error)

Release does nothing.

func (*FakeIdentityAllocator) WaitForInitialGlobalIdentities

func (f *FakeIdentityAllocator) WaitForInitialGlobalIdentities(context.Context) error

WaitForInitialGlobalIdentities does nothing.

type IdentityAllocatorOwnerMock

type IdentityAllocatorOwnerMock struct{}

func (*IdentityAllocatorOwnerMock) GetNodeSuffix

func (i *IdentityAllocatorOwnerMock) GetNodeSuffix() string

func (*IdentityAllocatorOwnerMock) UpdateIdentities

func (i *IdentityAllocatorOwnerMock) UpdateIdentities(added, deleted cache.IdentityCache)

Jump to

Keyboard shortcuts

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