Documentation ¶
Overview ¶
Package vip contains implementations of specific methods to acquire/release virtual IPs.
Index ¶
Constants ¶
const HCloudMetaDataEndpoint = "http://169.254.169.254/hetzner/v1/metadata/instance-id"
HCloudMetaDataEndpoint is the local endpoint for machine info like networking.
const PacketMetaDataEndpoint = "https://metadata.platformequinix.com/metadata"
PacketMetaDataEndpoint is the local endpoint for machine info like networking.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkAndDeviceIDs ¶ added in v0.13.0
GetNetworkAndDeviceIDs fills in parts of the spec based on the API token and instance metadata.
func GetProjectAndDeviceIDs ¶
func GetProjectAndDeviceIDs(ctx context.Context, spec *network.VIPEquinixMetalSpec) error
GetProjectAndDeviceIDs fills in parts of the spec based on the API token and instance metadata.
Types ¶
type EquinixMetalHandler ¶
type EquinixMetalHandler struct {
// contains filtered or unexported fields
}
EquinixMetalHandler implements assignment and release of Virtual IPs using API.
func NewEquinixMetalHandler ¶
func NewEquinixMetalHandler(logger *zap.Logger, vip string, spec network.VIPEquinixMetalSpec) *EquinixMetalHandler
NewEquinixMetalHandler creates new EquinixMetalHandler.
type HCloudHandler ¶ added in v0.13.0
type HCloudHandler struct {
// contains filtered or unexported fields
}
HCloudHandler implements assignment and release of Virtual IPs using API.
func NewHCloudHandler ¶ added in v0.13.0
func NewHCloudHandler(logger *zap.Logger, vip string, spec network.VIPHCloudSpec) *HCloudHandler
NewHCloudHandler creates new NewEHCloudHandler.
type NopHandler ¶
type NopHandler struct{}
NopHandler does nothing.