taskcluster-worker: github.com/taskcluster/taskcluster-worker/config/packet Index | Files

package configpacket

import "github.com/taskcluster/taskcluster-worker/config/packet"

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

Package Files

errors.go transform.go

Variables

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

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

Package configpacket imports 6 packages (graph) and is imported by 1 packages. Updated 2017-05-16. Refresh now. Tools for package owners.