metadata

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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"
	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 added in v1.7.10

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 added in v1.6.12

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

func (*Client) ListMacs added in v1.6.12

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

type InstanceType added in v1.7.10

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 testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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