ipam

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaimTransformer added in v0.0.8

func ClaimTransformer(_ context.Context, newObj runtime.Object, oldObj runtime.Object) (runtime.Object, error)

func EntryTransformer added in v0.0.8

func EntryTransformer(_ context.Context, newObj runtime.Object, oldObj runtime.Object) (runtime.Object, error)

func New

func New() bebackend.Backend

Types

type Applicator

type Applicator interface {
	Validate(ctx context.Context, claim *ipam.IPClaim) error
	Apply(ctx context.Context, claim *ipam.IPClaim) error
	Delete(ctx context.Context, claim *ipam.IPClaim) error
}

type BackendStorage added in v0.0.8

type BackendStorage interface {
	ListEntries(ctx context.Context, k store.Key) ([]*ipam.IPEntry, error)
	CreateEntry(ctx context.Context, obj *ipam.IPEntry) error
	UpdateEntry(ctx context.Context, obj, old *ipam.IPEntry) error
	DeleteEntry(ctx context.Context, obj *ipam.IPEntry) error
	ListClaims(ctx context.Context, k store.Key, opts ...ListOption) (map[string]*ipam.IPClaim, error)
	CreateClaim(ctx context.Context, obj *ipam.IPClaim) error
	UpdateClaim(ctx context.Context, obj, old *ipam.IPClaim) error
	DeleteClaim(ctx context.Context, obj *ipam.IPClaim) error
}

func NewKuidBackendstorage added in v0.0.8

func NewKuidBackendstorage(entryStorage, claimStorage *registry.Store) BackendStorage

type CacheInstanceContext added in v0.0.8

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

func NewCacheInstanceContext added in v0.0.8

func NewCacheInstanceContext() *CacheInstanceContext

func (*CacheInstanceContext) Size added in v0.0.8

func (r *CacheInstanceContext) Size() int

type ListOption added in v0.0.8

type ListOption interface {
	// ApplyToGet applies this configuration to the given get options.
	ApplyToList(*ListOptions)
}

type ListOptions added in v0.0.8

type ListOptions struct {
	OwnerKind string
}

func (*ListOptions) ApplyOptions added in v0.0.8

func (o *ListOptions) ApplyOptions(opts []ListOption) *ListOptions

ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).

func (*ListOptions) ApplyToList added in v0.0.8

func (o *ListOptions) ApplyToList(lo *ListOptions)

Jump to

Keyboard shortcuts

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