instance

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnSupport = errors.New("unsupported")

Functions

func Init added in v1.13.7

func Init(in Interface)

Types

type ECS added in v1.13.7

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

func (*ECS) GetInstanceID added in v1.13.7

func (e *ECS) GetInstanceID() (string, error)

func (*ECS) GetInstanceType added in v1.13.7

func (e *ECS) GetInstanceType() (string, error)

func (*ECS) GetPrimaryMAC added in v1.13.7

func (e *ECS) GetPrimaryMAC() (string, error)

func (*ECS) GetRegionID added in v1.13.7

func (e *ECS) GetRegionID() (string, error)

func (*ECS) GetVSwitchID added in v1.13.7

func (e *ECS) GetVSwitchID() (string, error)

func (*ECS) GetZoneID added in v1.13.7

func (e *ECS) GetZoneID() (string, error)

type EFLO added in v1.13.7

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

func (*EFLO) GetInstanceID added in v1.13.7

func (e *EFLO) GetInstanceID() (string, error)

func (*EFLO) GetInstanceType added in v1.13.7

func (e *EFLO) GetInstanceType() (string, error)

func (*EFLO) GetPrimaryMAC added in v1.13.7

func (e *EFLO) GetPrimaryMAC() (string, error)

func (*EFLO) GetRegionID added in v1.13.7

func (e *EFLO) GetRegionID() (string, error)

func (*EFLO) GetVSwitchID added in v1.13.7

func (e *EFLO) GetVSwitchID() (string, error)

func (*EFLO) GetZoneID added in v1.13.7

func (e *EFLO) GetZoneID() (string, error)

type Interface added in v1.13.7

type Interface interface {
	GetRegionID() (string, error)
	GetZoneID() (string, error)
	GetVSwitchID() (string, error)
	GetPrimaryMAC() (string, error)
	GetInstanceID() (string, error)
	GetInstanceType() (string, error)
}

func GetInstanceMeta

func GetInstanceMeta() Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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