memory

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryIPAMStorage

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

func New

func New() *MemoryIPAMStorage

func (*MemoryIPAMStorage) Add

func (mis *MemoryIPAMStorage) Add(ctx context.Context, prefix types.Prefix) error

func (*MemoryIPAMStorage) Delete

func (mis *MemoryIPAMStorage) Delete(ctx context.Context, prefix types.Prefix) error

func (*MemoryIPAMStorage) Get

func (mis *MemoryIPAMStorage) Get(ctx context.Context, name string, parent types.Prefix) (types.Prefix, error)

func (*MemoryIPAMStorage) GetChilds

func (mis *MemoryIPAMStorage) GetChilds(ctx context.Context, prefix types.Prefix) ([]types.Prefix, error)

Jump to

Keyboard shortcuts

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