metadata

package
v0.0.0-...-ec72bf4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstanceTypeExBBC     InstanceTypeEx = "bbc"
	InstanceTypeExBCC     InstanceTypeEx = "bcc"
	InstanceTypeExEBC     InstanceTypeEx = "ebc"
	InstanceTypeExEHC     InstanceTypeEx = "ehc"
	InstanceTypeExUnknown InstanceTypeEx = "unknown"

	IPTypePrimary   = "primary"
	IPTypeSecondary = "secondary"

	ErrorNotImplemented = errors.New("meta-data API not implemented")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) GetAvailabilityZone

func (c *Client) GetAvailabilityZone() (string, error)

func (*Client) GetInstanceID

func (c *Client) GetInstanceID() (string, error)

func (*Client) GetInstanceName

func (c *Client) GetInstanceName() (string, error)

func (*Client) GetInstanceType

func (c *Client) GetInstanceType() (InstanceType, error)

func (*Client) GetInstanceTypeEx

func (c *Client) GetInstanceTypeEx() (InstanceTypeEx, error)

func (*Client) GetLinkFixedIPs

func (c *Client) GetLinkFixedIPs(macAddress string) ([]string, error)

func (*Client) GetLinkGateway

func (c *Client) GetLinkGateway(macAddress, ipAddress string) (string, error)

func (*Client) GetLinkMask

func (c *Client) GetLinkMask(macAddress, ipAddress string) (string, error)

func (*Client) GetLinkPrimaryIP

func (c *Client) GetLinkPrimaryIP(macAddress string) (string, error)

func (*Client) GetLinkSecondaryIPs

func (c *Client) GetLinkSecondaryIPs(macAddress string) ([]string, error)

func (*Client) GetLocalIPv4

func (c *Client) GetLocalIPv4() (string, error)

func (*Client) GetRegion

func (c *Client) GetRegion() (string, error)

func (*Client) GetSubnetID

func (c *Client) GetSubnetID() (string, error)

func (*Client) GetVPCID

func (c *Client) GetVPCID() (string, error)

func (*Client) GetVifFeatures

func (c *Client) GetVifFeatures(macAddress string) (string, error)

func (*Client) ListMacs

func (c *Client) ListMacs() ([]string, error)

type InstanceType

type InstanceType string

type InstanceTypeEx

type InstanceTypeEx string

type Interface

type Interface interface {
	GetInstanceID() (string, error)
	GetInstanceName() (string, error)
	GetInstanceType() (InstanceType, error)
	GetInstanceTypeEx() (InstanceTypeEx, error)
	GetLocalIPv4() (string, error)
	GetAvailabilityZone() (string, error)
	GetRegion() (string, error)
	GetVPCID() (string, error)
	GetSubnetID() (string, error)
	GetLinkGateway(string, string) (string, error)
	GetLinkMask(string, string) (string, error)
	GetVifFeatures(macAddress string) (string, error)

	ListMacs() ([]string, error)
}

Directories

Path Synopsis
Package mock_metadata is a generated GoMock package.
Package mock_metadata is a generated GoMock package.

Jump to

Keyboard shortcuts

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