Documentation ¶
Overview ¶
Package vip contains implementations of specific methods to acquire/release virtual IPs.
Index ¶
Constants ¶
const EquinixMetalMetaDataEndpoint = "https://metadata.platformequinix.com/metadata"
EquinixMetalMetaDataEndpoint is the local endpoint for machine info like networking.
const HCloudMetaDataEndpoint = "http://169.254.169.254/hetzner/v1/metadata/instance-id"
HCloudMetaDataEndpoint is the local endpoint for machine info like networking.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkAndDeviceIDs ¶
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 ¶
type HCloudHandler struct {
// contains filtered or unexported fields
}
HCloudHandler implements assignment and release of Virtual IPs using API.
func NewHCloudHandler ¶
func NewHCloudHandler(logger *zap.Logger, vip string, spec network.VIPHCloudSpec) *HCloudHandler
NewHCloudHandler creates new NewEHCloudHandler.
type NopHandler ¶
type NopHandler struct{}
NopHandler does nothing.