instance

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 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