ipam

package
v0.0.0-...-f0f3d55 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 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 IPAddressManager

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

func NewIPAddressManager

func NewIPAddressManager(awsSession *session.Session) *IPAddressManager

func (*IPAddressManager) AllocateEip

func (m *IPAddressManager) AllocateEip(pod *corev1.Pod) (string, error)

func (*IPAddressManager) ReleaseEip

func (m *IPAddressManager) ReleaseEip(pod *corev1.Pod) (string, error)

type IPAddressStore

type IPAddressStore interface {
	AssociateEIPAllocationId(podNamespace, podName, podIP, eipAllocationId string) (string, error)
	ReleaseEIPAllocationId(podNamespace, podName, podIP, eipAllocationId string) (string, error)

	GetAssociatedEIPAllocationId(podNamespace, podName, podIP, eipAllocationId string) (string, error)
	GetAllAssociatedEIPAllocationIds() ([]string, error)
	GetAvailableEIPAllocationIds() ([]string, error)
}

Jump to

Keyboard shortcuts

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