Documentation ¶
Index ¶
Constants ¶
View Source
const ( Path = "/rest/com/vmware" SessionPath = "/cis/session" CategoryPath = "/cis/tagging/category" TagPath = "/cis/tagging/tag" AssociationPath = "/cis/tagging/tag-association" SessionCookieName = "vmware-api-session-id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociatedObject ¶
AssociatedObject is the same structure as types.ManagedObjectReference, just with a different field name (ID instead of Value). In the API we use mo.Reference, this type is only used for wire transfer.
func (AssociatedObject) Reference ¶
func (o AssociatedObject) Reference() types.ManagedObjectReference
Reference implements mo.Reference
type Association ¶
type Association struct {
ObjectID *AssociatedObject `json:"object_id,omitempty"`
}
Association for tag-association requests.
func NewAssociation ¶
func NewAssociation(ref mo.Reference) Association
NewAssociation returns an Association, converting ref to an AssociatedObject.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource wraps url.URL with helpers
func (*Resource) Request ¶
Request returns a new http.Request for the given method. An optional body can be provided for POST and PATCH methods.
func (*Resource) WithAction ¶
WithAction sets adds action to the URL.RawQuery
Click to show internal directories.
Click to hide internal directories.