Documentation ¶
Index ¶
- type AnsiblePlaybook
- type EnabledStatusStandaloneResource
- type ExternalizedResource
- type Host
- type IResource
- type IStandaloneResource
- type IVirtualResource
- type ManagedResource
- type Resource
- type Server
- type ServerNetwork
- type ServerNetworks
- type ServerNic
- type ServerNics
- type SharableVirtualResource
- type SshKeypair
- type StandaloneResource
- type StatusStandaloneResource
- type VirtualResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnsiblePlaybook ¶
type EnabledStatusStandaloneResource ¶
type EnabledStatusStandaloneResource struct { StatusStandaloneResource Enabled bool }
type ExternalizedResource ¶
type ExternalizedResource struct {
ExternalId string
}
type Host ¶
type Host struct { EnabledStatusStandaloneResource Rack string Slots string AccessMac string AccessIp string ManagerUri string SysInfo jsonutils.JSONObject SN string CpuCount int NodeCount int8 CpuDesc string CpuMhz int CpuCache int CpuReserved int CpuCmtbound float32 MemSize int MemReserved int MemCmtbound float32 StorageSize int StorageType string StorageDriver string StorageInfo jsonutils.JSONObject IpmiInfo jsonutils.JSONObject HostStatus string ZoneId string HostType string Version string IsBaremetal bool IsMaintenance bool LastPingAt time.Time ResourceType string RealExternalId string IsImport bool }
type IStandaloneResource ¶
type IVirtualResource ¶
type IVirtualResource interface { IStandaloneResource GetPendingDeleted() bool }
type ManagedResource ¶
type ManagedResource struct {
ManagerId string
}
type Resource ¶
type Resource struct { CreatedAt time.Time UpdatedAt time.Time UpdateVersion int DeletedAt time.Time Deleted bool }
func (*Resource) GetUpdateVersion ¶
func (*Resource) GetUpdatedAt ¶
type Server ¶
type Server struct { VirtualResource VcpuCount int VmemSize int BootOrder string DisableDelete tristate.TriState ShutdownBehavior string KeypairId string HostId string BackupHostId string Vga string Vdi string Machine string Bios string OsType string FlavorId string SecgrpId string AdminSecgrpId string Hypervisor string InstanceType string // Derived attributes Networks string Eip string Nics ServerNics }
type ServerNetwork ¶
type ServerNetworks ¶
type ServerNetworks []ServerNetwork
func ParseServerNetworkDetailedString ¶
func ParseServerNetworkDetailedString(s string) (ServerNetworks, error)
func (ServerNetworks) GetPrivateIPs ¶
func (sns ServerNetworks) GetPrivateIPs() []net.IP
type ServerNics ¶
type ServerNics []ServerNic
type SharableVirtualResource ¶
type SharableVirtualResource struct { VirtualResource IsPublic bool }
type SshKeypair ¶
type StandaloneResource ¶
type StandaloneResource struct { Resource Id string Name string Description string IsEmulated bool }
func (*StandaloneResource) GetId ¶
func (r *StandaloneResource) GetId() string
type StatusStandaloneResource ¶
type StatusStandaloneResource struct { StandaloneResource Status string }
type VirtualResource ¶
type VirtualResource struct { StatusStandaloneResource DomainId string ProjectId string IsSystem bool PendingDeletedAt time.Time PendingDeleted bool }
func (*VirtualResource) GetPendingDeleted ¶
func (r *VirtualResource) GetPendingDeleted() bool
Click to show internal directories.
Click to hide internal directories.