Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateIDs ¶
CalculateIDs Calculate hex from User selector (#0, @0, *, %0)
func ParseResources ¶
ParseResources Converts a resources string to a hex. number (e.g. NET+VROUTER/@190)
func ParseRights ¶
ParseRights Converts a rights string to a hex. number (MANAGE+ADMIN)
func ParseUsers ¶
ParseUsers Converts a string in the form [#<id>, @<id>, *] to a hex. number
Types ¶
type ACL ¶
type ACL struct { XMLName xml.Name `xml:"ACL"` ID int `xml:"ID,omitempty"` User string `xml:"USER,omitempty"` Resource string `xml:"RESOURCE,omitempty"` Rights string `xml:"RIGHTS,omitempty"` Zone string `xml:"ZONE,omitempty"` String string `xml:"STRING,omitempty"` }
ACL represents an OpenNebula ACL
type Resources ¶
type Resources uint64
const ( VM Resources = 0x1000000000 Host Resources = 0x2000000000 Net Resources = 0x4000000000 Image Resources = 0x8000000000 User Resources = 0x10000000000 Template Resources = 0x20000000000 Group Resources = 0x40000000000 Datastore Resources = 0x100000000000 Cluster Resources = 0x200000000000 Document Resources = 0x400000000000 Zone Resources = 0x800000000000 SecGroup Resources = 0x1000000000000 Vdc Resources = 0x2000000000000 VRouter Resources = 0x4000000000000 MarketPlace Resources = 0x8000000000000 MarketPlaceApp Resources = 0x10000000000000 VMGroup Resources = 0x20000000000000 VNTemplate Resources = 0x40000000000000 )
Click to show internal directories.
Click to hide internal directories.