Documentation
¶
Index ¶
- Constants
- Variables
- func All() []interface{}
- type AllocationPool
- type AttachedVolume
- type Attachment
- type Base
- type BranchNavigator
- type Concern
- type Fault
- type Flavor
- type HostRoute
- type Image
- type InvalidRefError
- type ListOptions
- type Model
- type Network
- type ParentNavigator
- type Project
- type Ref
- type Region
- type Snapshot
- type Subnet
- type Tree
- type TreeNode
- type VM
- type Volume
- type VolumeType
Constants ¶
View Source
const (
MaxDetail = base.MaxDetail
)
Variables ¶
View Source
var ( RegionKind = libref.ToKind(Region{}) ProjectKind = libref.ToKind(Project{}) ImageKind = libref.ToKind(Image{}) FlavorKind = libref.ToKind(Flavor{}) VMKind = libref.ToKind(VM{}) SnapshotKind = libref.ToKind(Snapshot{}) VolumeKind = libref.ToKind(Volume{}) VolumeTypeKind = libref.ToKind(VolumeType{}) NetworkKind = libref.ToKind(Network{}) SubnetKind = libref.ToKind(Subnet{}) )
Kinds
View Source
var NotFound = libmodel.NotFound
Errors
Functions ¶
Types ¶
type AllocationPool ¶
type AttachedVolume ¶
type AttachedVolume struct {
ID string `sql:"d0,fk(volume)"`
}
type Attachment ¶
type Base ¶
type Base struct {
// Managed object ID.
ID string `sql:"pk"`
// Name
Name string `sql:"d0,index(name)"`
// Revision
Revision int64 `sql:"incremented,d0,index(revision)"`
}
Base OpenStack model.
type BranchNavigator ¶
type BranchNavigator = base.BranchNavigator
type Image ¶
type Image struct {
Base
Status string `sql:""`
Tags []string `sql:""`
ContainerFormat string `sql:""`
DiskFormat string `sql:""`
MinDiskGigabytes int `sql:""`
MinRAMMegabytes int `sql:""`
Owner string `sql:""`
Protected bool `sql:""`
Visibility string `sql:""`
Hidden bool `sql:""`
Checksum string `sql:""`
SizeBytes int64 `sql:""`
Metadata map[string]string `sql:""`
Properties map[string]interface{} `sql:""`
CreatedAt time.Time `sql:""`
UpdatedAt time.Time `sql:""`
File string `sql:""`
Schema string `sql:""`
VirtualSize int64 `sql:""`
OpenStackImageImportMethods []string `sql:""`
OpenStackImageStoreIDs []string `sql:""`
}
type InvalidRefError ¶
type InvalidRefError = base.InvalidRefError
type ListOptions ¶
type ListOptions = base.ListOptions
type Network ¶
type Network struct {
Base
Description string `sql:""`
AdminStateUp bool `sql:""`
Status string `sql:""`
Subnets []string `sql:""`
TenantID string `sql:"d0,fk(project +cascade)"`
UpdatedAt time.Time `sql:""`
CreatedAt time.Time `sql:""`
ProjectID string `sql:"d0,fk(project +cascade)"`
AvailabilityZoneHints []string `sql:""`
Tags []string `sql:""`
RevisionNumber int `sql:""`
}
type ParentNavigator ¶
type ParentNavigator = base.ParentNavigator
type Subnet ¶
type Subnet struct {
Base
NetworkID string `sql:"d0,fk(network +cascade)"`
Description string `sql:""`
IPVersion int `sql:""`
CIDR string `sql:""`
GatewayIP string `sql:""`
DNSNameservers []string `sql:""`
ServiceTypes []string `sql:""`
AllocationPools []AllocationPool `sql:""`
HostRoutes []HostRoute `sql:""`
EnableDHCP bool `sql:""`
TenantID string `sql:""`
ProjectID string `sql:""`
IPv6AddressMode string `sql:""`
IPv6RAMode string `sql:""`
SubnetPoolID string `sql:""`
Tags []string `sql:""`
RevisionNumber int `sql:""`
}
type VM ¶
type VM struct {
Base
RevisionValidated int64 `sql:"d0,index(revisionValidated)"`
PolicyVersion int `sql:"d0,index(policyVersion)" eq:"-"`
TenantID string `sql:"d0,fk(project +cascade)"`
UserID string `sql:""`
Updated time.Time `sql:""`
Created time.Time `sql:""`
HostID string `sql:""`
Status string `sql:""`
Progress int `sql:""`
AccessIPv4 string `sql:""`
AccessIPv6 string `sql:""`
ImageID string `sql:"d0,fk(image +cascade)"`
FlavorID string `sql:"d0,fk(flavor +cascade)"`
Addresses map[string]interface{} `sql:""`
Metadata map[string]string `sql:""`
KeyName string `sql:""`
AdminPass string `sql:""`
SecurityGroups []map[string]interface{} `sql:""`
AttachedVolumes []AttachedVolume `sql:""`
Fault Fault `sql:""`
Tags *[]string `sql:""`
ServerGroups *[]string `sql:""`
Concerns []Concern `sql:"" eq:"-"`
}
type Volume ¶
type Volume struct {
Base
Status string `sql:""`
Size int `sql:""`
AvailabilityZone string `sql:""`
CreatedAt time.Time `sql:""`
UpdatedAt time.Time `sql:""`
Attachments []Attachment `sql:""`
Description string `sql:""`
VolumeType string `sql:""`
SnapshotID string `sql:""`
SourceVolID string `sql:""`
BackupID *string `sql:""`
Metadata map[string]string `sql:""`
UserID string `sql:""`
Bootable string `sql:""`
Encrypted bool `sql:""`
ReplicationStatus string `sql:""`
ConsistencyGroupID string `sql:""`
Multiattach bool `sql:""`
VolumeImageMetadata map[string]string `sql:""`
}
Click to show internal directories.
Click to hide internal directories.