Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) GetAvailabilityZone() (string, error)
- func (c *Client) GetInstanceID() (string, error)
- func (c *Client) GetInstanceName() (string, error)
- func (c *Client) GetInstanceType() (InstanceType, error)
- func (c *Client) GetInstanceTypeEx() (InstanceTypeEx, error)
- func (c *Client) GetLinkFixedIPs(macAddress string) ([]string, error)
- func (c *Client) GetLinkGateway(macAddress, ipAddress string) (string, error)
- func (c *Client) GetLinkMask(macAddress, ipAddress string) (string, error)
- func (c *Client) GetLinkPrimaryIP(macAddress string) (string, error)
- func (c *Client) GetLinkSecondaryIPs(macAddress string) ([]string, error)
- func (c *Client) GetLocalIPv4() (string, error)
- func (c *Client) GetRegion() (string, error)
- func (c *Client) GetSubnetID() (string, error)
- func (c *Client) GetVPCID() (string, error)
- func (c *Client) GetVifFeatures(macAddress string) (string, error)
- func (c *Client) ListMacs() ([]string, error)
- type InstanceType
- type InstanceTypeEx
- type Interface
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 (*Client) GetAvailabilityZone ¶
func (*Client) GetInstanceID ¶
func (*Client) GetInstanceName ¶
func (*Client) GetInstanceType ¶
func (c *Client) GetInstanceType() (InstanceType, error)
func (*Client) GetInstanceTypeEx ¶
func (c *Client) GetInstanceTypeEx() (InstanceTypeEx, error)
func (*Client) GetLinkFixedIPs ¶
func (*Client) GetLinkGateway ¶
func (*Client) GetLinkMask ¶
func (*Client) GetLinkPrimaryIP ¶
func (*Client) GetLinkSecondaryIPs ¶
func (*Client) GetLocalIPv4 ¶
func (*Client) GetSubnetID ¶
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) }
Click to show internal directories.
Click to hide internal directories.