configpacket

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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