dynamic

package
v0.0.0-...-2f4be68 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 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 Client

type Client interface {
	Create(ctx context.Context, obj any) (any, error)
	Delete(ctx context.Context, obj any) (any, error)
}

func NewFromStructured

func NewFromStructured(structured structured.Client) Client

type FirewallRuleKey

type FirewallRuleKey struct {
	RuleID      string
	InterfaceID string
}

func (FirewallRuleKey) Name

func (k FirewallRuleKey) Name() string

func (FirewallRuleKey) String

func (k FirewallRuleKey) String() string

type InterfaceKey

type InterfaceKey struct {
	ID string
}

func (InterfaceKey) Name

func (k InterfaceKey) Name() string

func (InterfaceKey) String

func (k InterfaceKey) String() string

type LoadBalancerKey

type LoadBalancerKey struct {
	ID string
}

func (LoadBalancerKey) Name

func (k LoadBalancerKey) Name() string

func (LoadBalancerKey) String

func (k LoadBalancerKey) String() string

type LoadBalancerPrefixKey

type LoadBalancerPrefixKey struct {
	Prefix      netip.Prefix
	InterfaceID string
}

func (LoadBalancerPrefixKey) Name

func (k LoadBalancerPrefixKey) Name() string

func (LoadBalancerPrefixKey) String

func (k LoadBalancerPrefixKey) String() string

type LoadBalancerTargetKey

type LoadBalancerTargetKey struct {
	TargetIP       netip.Addr
	LoadBalancerID string
}

func (LoadBalancerTargetKey) Name

func (k LoadBalancerTargetKey) Name() string

func (LoadBalancerTargetKey) String

func (k LoadBalancerTargetKey) String() string

type NatKey

type NatKey struct {
	InterfaceID string
}

func (NatKey) Name

func (k NatKey) Name() string

func (NatKey) String

func (k NatKey) String() string

type NeighborNatKey

type NeighborNatKey struct {
	NatIP   netip.Addr
	Vni     uint32
	MinPort uint32
	MaxPort uint32
}

func (NeighborNatKey) Name

func (k NeighborNatKey) Name() string

func (NeighborNatKey) String

func (k NeighborNatKey) String() string

type ObjectKey

type ObjectKey interface {
	fmt.Stringer
	Name() string
}
var EmptyKey ObjectKey = emptyKey{}

func ObjectKeyFromObject

func ObjectKeyFromObject(obj any) ObjectKey

returns object key (parameters needed for deletion)

type PrefixKey

type PrefixKey struct {
	InterfaceID string
	Prefix      netip.Prefix
}

func (PrefixKey) Name

func (k PrefixKey) Name() string

func (PrefixKey) String

func (k PrefixKey) String() string

type RouteKey

type RouteKey struct {
	VNI        uint32
	Prefix     netip.Prefix
	NextHopVNI uint32
	NextHopIP  netip.Addr
}

func (RouteKey) Name

func (k RouteKey) Name() string

func (RouteKey) String

func (k RouteKey) String() string

type VirtualIPKey

type VirtualIPKey struct {
	InterfaceID string
}

func (VirtualIPKey) Name

func (k VirtualIPKey) Name() string

func (VirtualIPKey) String

func (k VirtualIPKey) String() string

Jump to

Keyboard shortcuts

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