packet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MPL-2.0 Imports: 4 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 implements the runtime.Platform interface.

func (*Packet) Hostname

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

Hostname implements the platform.Platform interface.

func (*Packet) KernelArgs

func (p *Packet) KernelArgs() procfs.Parameters

KernelArgs implements the runtime.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