packet

package
v0.7.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MPL-2.0 Imports: 6 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(ctx context.Context) ([]byte, error)

Configuration implements the platform.Platform interface.

func (*Packet) ExternalIPs

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

ExternalIPs implements the runtime.Platform interface.

func (*Packet) Hostname

func (p *Packet) Hostname(context.Context) (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