platform

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform interface {
	Name() string
	Configuration() ([]byte, error)
	Mode() runtime.Mode
	Hostname() ([]byte, error)
	ExternalIPs() ([]net.IP, error)
}

Platform is an interface describing a platform.

func NewPlatform

func NewPlatform() (p Platform, err error)

NewPlatform is a helper func for discovering the current platform.

nolint: gocyclo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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