ipam

package
v0.0.4-0...-de66a47 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c client.Client) (backend.Backend, error)

Types

type Applicator

type Applicator interface {
	ApplyPrefix(ctx context.Context) error
	ApplyDynamic(ctx context.Context) error
	Delete(ctx context.Context) error
}

func NewApplicator

func NewApplicator(c *ApplicatorConfig) Applicator

type ApplicatorConfig

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

type CallbackFn

type CallbackFn func(table.Routes, resourcepb.StatusCode)

type ClaimValidatorConfig

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

type DynamicRuntimeConfig

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

type DynamicValidatorFunctionConfig

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

type Getter

type Getter interface {
	GetIPClaim(ctx context.Context) error
}

func NewGetter

func NewGetter(c *GetterConfig) Getter

type GetterConfig

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

type PrefixRuntimeConfig

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

type PrefixValidatorConfig

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

type PrefixValidatorFunctionConfig

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

type Runtime

type Runtime interface {
	Get(ctx context.Context) (*ipamv1alpha1.IPClaim, error)
	Validate(ctx context.Context) (string, error)
	Apply(ctx context.Context) (*ipamv1alpha1.IPClaim, error)
	Delete(ctx context.Context) error
}

func NewDynamicRuntime

func NewDynamicRuntime(cfg any) (Runtime, error)

func NewPrefixRuntime

func NewPrefixRuntime(cfg any) (Runtime, error)

type RuntimeConfig

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

type Runtimes

type Runtimes interface {
	Get(claim *ipamv1alpha1.IPClaim, initializing bool) (Runtime, error)
}

func NewRuntimes

func NewRuntimes(c *RuntimeConfig) Runtimes

type Storage

type Storage interface {
	Get() backend.Storage[*ipamv1alpha1.IPClaim, map[string]labels.Set]
}

type Validator

type Validator interface {
	Validate(ctx context.Context) (string, error)
}

func NewClaimValidator

func NewClaimValidator(c *ClaimValidatorConfig) Validator

func NewPrefixValidator

func NewPrefixValidator(c *PrefixValidatorConfig) Validator

type Watcher

type Watcher interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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