Versions in this module Expand all Collapse all v1 v1.0.0 Jun 4, 2021 Changes in this version + const HYPER_ACTIVE + const HYPER_CREATED + const HYPER_INIT + var HyperStatusNames = map[string]int32 + var HyperStatusValues = map[int32]string + type Address struct + Address string + Allocated bool + Interface int64 + Netmask string + Reserved bool + Subnet *Subnet + SubnetID int64 + Type string + type Authorize struct + Project uint + ResourceID uint + ResourceType string + User uint + type Callback struct + Command string + Control string + Extra int32 + Job Job + JobID uint + Status int32 + func (cb *Callback) BeforeCreate() (err error) + func (cb *Callback) LoadRequest(p *jobs.Job) (err error) + func (cb *Callback) ToJob() (job *Job) + type Console struct + HashSecret string + Instance int64 + Type string + type Flavor struct + Cpu int32 + Disk int32 + Ephemeral int32 + Memory int32 + Name string + Swap int32 + type FloatingIp struct + FipAddress string + Gateway *Gateway + GatewayID int64 + IPAddress string + Instance *Instance + InstanceID int64 + IntAddress string + Interface *Interface + Type string + type Gateway struct + Hyper int32 + Interfaces []*Interface + Name string + Peer int32 + PeerAddr string + Status string + Subnets []*Subnet + Type string + VrrpAddr string + VrrpVni int64 + Zone *Zone + ZoneID int64 + type Glusterfs struct + ClusterID int64 + Endpoint string + Flavor int64 + HeketiKey int64 + Key int64 + Name string + Status string + Subnet *Subnet + SubnetID int64 + WorkerNum int32 + ZoneID int64 + type Hyper struct + Children int32 + CreatedAt time.Time + Duration int64 + HostIP string + Hostid int32 + Hostname string + ID int64 + Parentid int32 + Resource *Resource + Status int32 + UpdatedAt time.Time + VirtType string + Zone *Zone + ZoneID int64 + func (hyper *Hyper) LoadCommand(command string) + func (hyper *Hyper) LoadControl(control string) + func (hyper *Hyper) LoadRequest(h *hypers.Hyper) + func (hyper *Hyper) ToReply() (h *hypers.Hyper) + func (hyper *Hyper) Updates(ctx context.Context, values *Hyper) (err error) + type Image struct + Architecture string + Checksum string + DiskType string + Format string + Holder string + Href string + MiniDisk int32 + MiniMem int32 + Name string + OSCode string + OpenShiftLB bool + OsHashAlgo string + OsHashValue string + OsVersion string + Protected bool + Size int64 + Status string + UserName string + VirtType string + Visibility string + type Instance struct + Cluster *Openshift + ClusterID int64 + Domain string + Flavor *Flavor + FlavorID int64 + FloatingIps []*FloatingIp + Hostname string + Hyper int32 + Image *Image + ImageID int64 + Interfaces []*Interface + Keys []*Key + Portmaps []*Portmap + Reason string + Status string + Userdata string + Volumes []*Volume + Zone *Zone + ZoneID int64 + type Interface struct + AddrPairs string + Address *Address + Device int64 + Dhcp int64 + FloatingIp int64 + Hyper int32 + Instance int64 + MacAddr string + Mtu int32 + Name string + PrimaryIf bool + Secgroups []*SecurityGroup + Subnet int64 + Type string + ZoneID int64 + type Job struct + Command string + Control string + EchoNumber int32 + Extra int32 + Hooks string + Status int32 + func (job *Job) BeforeCreate() (err error) + func (job *Job) LoadRequest(p *jobs.Job) + func (job *Job) ToReply() (p *jobs.Job) + type Key struct + FingerPrint string + Length int32 + Name string + PublicKey string + type Member struct + OrgID int64 + OrgName string + Role Role + UserID int64 + UserName string + type Model struct + CreatedAt time.Time + Creater int64 + DeletedAt *time.Time + ID int64 + Owner int64 + OwnerInfo *Organization + UUID string + UpdatedAt time.Time + func (m *Model) BeforeCreate() (err error) + type Network struct + External bool + Hyper int32 + Name string + Peer int32 + Subnets []*Subnet + Type string + Vlan int64 + type Openshift struct + AdditionalTrustBundle string + BaseDomain string + ClusterName string + Flavor int64 + GlusterID int64 + Haflag string + ImageContentSources string + InfrastructureType string + Instances []*Instance + Key int64 + LoadBalancer string + MasterFlavor int64 + Status string + StorageBackend string + Subnet *Subnet + SubnetID int64 + Version string + WorkerFlavor int64 + WorkerNum int32 + ZoneID int64 + type Organization struct + DefaultSG int64 + Members []*Member + Name string + OwnerUser *User + func (Organization) TableName() string + type Portmap struct + Gateway *Gateway + GatewayID int64 + InstanceID int64 + LocalAddress string + LocalPort int32 + Name string + RemoteAddress string + RemotePort int32 + Status string + type Quota struct + Cpu int32 + Disk int32 + Gateway int32 + Instance int32 + Memory int32 + Name string + Openshift int32 + PrivateIp int32 + PublicIp int32 + Secgroup int32 + Secrule int32 + Subnet int32 + Type string + Volume int32 + type Registry struct + Cli string + Image string + Initramfs string + Installer string + Kernel string + Label string + OcpVersion string + RegistryContent string + VirtType string + type Resource struct + Cpu int64 + CpuTotal int64 + CreatedAt time.Time + Disk int64 + DiskTotal int64 + Hostid int32 + ID int64 + Memory int64 + MemoryTotal int64 + UpdatedAt time.Time + type Role int + const Admin + const None + const Owner + const Reader + const Writer + func (r Role) String() string + type SecurityGroup struct + Interfaces []*Interface + IsDefault bool + Name string + type SecurityRule struct + Direction string + IpVersion string + PortMax int32 + PortMin int32 + Protocol string + RemoteGroup string + RemoteIp string + Secgroup int64 + func GetSecurityRules(secGroups []*SecurityGroup) (securityRules []*SecurityRule, err error) + type Session struct + Data []byte + Expiry int32 + Key string + func (Session) TableName() string + type Subnet struct + Dhcp string + DomainSearch string + End string + Gateway string + Name string + NameServer string + Netlink *Network + Netmask string + Network string + Router int64 + Routers []*Gateway + Routes string + Start string + Type string + VSwitch string + Vlan int64 + Zones []*Zone + type User struct + Members []*Member + Password string + Username string + func (User) TableName() string + type Vnc struct + AccessAddress string + AccessPort int32 + ExpiredAt *time.Time + InstanceID int64 + LocalAddress string + LocalPort int32 + Passwd string + Router int64 + type Volume struct + Format string + Href string + Instance *Instance + InstanceID int64 + Name string + Path string + Size int32 + Status string + Target string + type Zone struct + CreatedAt time.Time + Default bool + ID int64 + Name string + Subnets []*Subnet + UpdatedAt time.Time