packet

package
v0.3.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PacketUserDataEndpoint is the local metadata endpoint for Packet.
	PacketUserDataEndpoint = "https://metadata.packet.net/userdata"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet struct{}

Packet is a discoverer for non-cloud environments.

func (*Packet) Configuration

func (p *Packet) Configuration() ([]byte, error)

Configuration implements the platform.Platform interface.

func (*Packet) ExternalIPs

func (p *Packet) ExternalIPs() (addrs []net.IP, err error)

ExternalIPs provides any external addresses assigned to the instance

func (*Packet) Hostname

func (p *Packet) Hostname() (hostname []byte, err error)

Hostname implements the platform.Platform interface.

func (*Packet) Mode

func (p *Packet) Mode() runtime.Mode

Mode implements the platform.Platform interface.

func (*Packet) Name

func (p *Packet) Name() string

Name implements the platform.Platform interface.

Jump to

Keyboard shortcuts

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