Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpVMInfo ¶
func DumpVMInfo(op *DumpOperation, r *Resource) error
func GetResourceTrackerKey ¶
func ListResourcesVSphere ¶
Types ¶
type Dump ¶
type Dump struct { Resources []interface{} `json:"resources,omitempty"` Instances []*Instance `json:"instances,omitempty"` Subnets []*Subnet `json:"subnets,omitempty"` VPC *VPC `json:"vpc,omitempty"` }
Dump is the type for a dump result
type DumpOperation ¶
type DumpOperation struct { // Context is the golang context.Context for the dump operation Context context.Context // Cloud is the cloud we are dumping Cloud fi.Cloud // CloudState allows the cloudprovider to store state during the dump operation CloudState interface{} // Dump is the target of our dump Dump *Dump }
DumpOperation holds context information for a dump, allowing for extension
type Instance ¶
type Instance struct { Name string `json:"name,omitempty"` PublicAddresses []string `json:"publicAddresses,omitempty"` Roles []string `json:"roles,omitempty"` SSHUser string `json:"sshUser,omitempty"` }
Instance is the type for an instance in a dump
type Resource ¶
type Resource struct { Name string Type string ID string Shared bool Blocks []string Blocked []string Done bool Deleter func(cloud fi.Cloud, tracker *Resource) error GroupKey string GroupDeleter func(cloud fi.Cloud, trackers []*Resource) error // Dumper populates the dump with any information from the resource Dumper func(op *DumpOperation, r *Resource) error Obj interface{} }
Click to show internal directories.
Click to hide internal directories.