Documentation ¶
Overview ¶
Package configpacket implements a TransformationProvider that replaces objects on the form: {$packet: "VARIABLE"} with a value loaded from https://metadata.packet.net/metadata, following VARIABLE values are supported:
- instance-id
- hostname
- facility
- instance-type
- public-ipv4
- public-ipv6
If configuration property 'packetMetaDataUrl' this will be used instead of 'https://metadata.packet.net/metadata'. This is useful for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoPublicIPv4Address = errors.New("Metadata for this instances doesn't have any public IPv4 address")
ErrNoPublicIPv4Address is returned if the instance doesn't have a public ipv4 address
View Source
var ErrNoPublicIPv6Address = errors.New("Metadata for this instances doesn't have any public IPv6 address")
ErrNoPublicIPv6Address is returned if the instance doesn't have a public ipv6 address
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.