openstack

package
v0.11.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OpenstackExternalIPEndpoint is the local EC2 endpoint for the external IP.
	OpenstackExternalIPEndpoint = "http://169.254.169.254/latest/meta-data/public-ipv4"

	// OpenstackHostnameEndpoint is the local EC2 endpoint for the hostname.
	OpenstackHostnameEndpoint = "http://169.254.169.254/latest/meta-data/hostname"

	// OpenstackUserDataEndpoint is the local EC2 endpoint for the config.
	OpenstackUserDataEndpoint = "http://169.254.169.254/latest/user-data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Openstack

type Openstack struct{}

Openstack is the concrete type that implements the runtime.Platform interface.

func (*Openstack) Configuration

func (a *Openstack) Configuration(ctx context.Context) ([]byte, error)

Configuration implements the runtime.Platform interface.

func (*Openstack) ExternalIPs

func (a *Openstack) ExternalIPs(ctx context.Context) (addrs []net.IP, err error)

ExternalIPs implements the runtime.Platform interface.

func (*Openstack) Hostname

func (a *Openstack) Hostname(ctx context.Context) (hostname []byte, err error)

Hostname implements the runtime.Platform interface.

func (*Openstack) KernelArgs

func (a *Openstack) KernelArgs() procfs.Parameters

KernelArgs implements the runtime.Platform interface.

func (*Openstack) Mode

func (a *Openstack) Mode() runtime.Mode

Mode implements the runtime.Platform interface.

func (*Openstack) Name

func (a *Openstack) Name() string

Name implements the runtime.Platform interface.

Jump to

Keyboard shortcuts

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