Documentation ¶
Index ¶
- Constants
- type ConfigResolveClass
- type ConfigResolveDn
- type ConfigScope
- type DestroyRequest
- type DestroyRequestConfig
- type DestroyRequestPairs
- type DestroyRequestServerConfig
- type Dn
- type InConfig
- type InNameSet
- type LoginRequest
- type LoginResponse
- type LogoutRequest
- type LsPower
- type MACPoolAddr
- type OutConfig
- type OutConfigs
- type Pair
- type ServerConfig
- type ServiceProfileRequest
- type ServiceProfileResponse
- type VnicEther
- type XMLDestroyRequest
Constants ¶
View Source
const STATUS_DELETED = "deleted"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigResolveClass ¶
type ConfigResolveClass struct { XMLName xml.Name `xml:"configResolveClass"` OutConfigs OutConfigs `xml:"outConfigs"` }
type ConfigResolveDn ¶
type ConfigScope ¶
type ConfigScope struct { XMLName xml.Name `xml:"configScope"` OutConfigs OutConfigs }
type DestroyRequest ¶
type DestroyRequestConfig ¶
type DestroyRequestConfig struct { XMLName xml.Name `xml:"inConfigs"` Pairs DestroyRequestPairs }
type DestroyRequestPairs ¶
type DestroyRequestPairs struct { XMLName xml.Name `xml:"pair"` Key string `xml:"key,attr"` Server DestroyRequestServerConfig }
type LoginRequest ¶
type LoginRequest struct { XMLName xml.Name `xml:"aaaLogin"` Username string `xml:"inName,attr"` Password string `xml:"inPassword,attr"` }
func (*LoginRequest) Marshal ¶
func (req *LoginRequest) Marshal() ([]byte, error)
Converts a LoginRequest struct (which contains all the necessary login information into a plain-text XML string ready to be delivered to the UCS server.
type LoginResponse ¶
type LoginResponse struct { XMLName xml.Name `xml:"aaaLogin"` Cookie string `xml:"cookie,attr"` Response string `xml:"response,attr"` OutCookie string `xml:"outCookie,attr"` OutDomains string `xml:"outDomains,attr"` }
LogingResponse maps the XML response document returned by UCS when calling the login method.
func NewLoginResponse ¶
func NewLoginResponse(data []byte) (*LoginResponse, error)
Extracts the login information from a server response (string) and maps it into a LoginResponse struct.
type LogoutRequest ¶
type LogoutRequest struct { XMLName xml.Name `xml:"aaaLogout"` Cookie string `xml:"inCookie,attr"` }
func (*LogoutRequest) Marshal ¶
func (req *LogoutRequest) Marshal() ([]byte, error)
Converts a LogoutRequest struct (which contains all the necessary information for logging out into a plain-text XML string ready to be delivered to the UCS server.
type MACPoolAddr ¶
type OutConfig ¶
type OutConfig struct { XMLName xml.Name `xml:"outConfig"` ServerConfig []ServerConfig `xml:"lsServer"` }
type OutConfigs ¶
type OutConfigs struct { XMLName xml.Name `xml:"outConfigs"` MACPoolAddr []MACPoolAddr `xml:"macpoolAddr"` ServerConfig ServerConfig }
type Pair ¶
type Pair struct { Key string `xml:"key,attr"` ServerConfig ServerConfig `xml:",omitempty"` }
type ServerConfig ¶
type ServiceProfileRequest ¶
type ServiceProfileRequest struct { XMLName xml.Name `xml:"lsInstantiateNNamedTemplate"` Cookie string `xml:"cookie,attr"` Dn string `xml:"dn,attr"` TargetOrg string `xml:"inTargetOrg,attr"` Hierarchical bool `xml:"inHierarchical,attr"` ErrorOnExisting bool `xml:"inErrorOnExisting,attr"` InNameSet InNameSet }
type ServiceProfileResponse ¶
type ServiceProfileResponse struct { XMLName xml.Name `xml:"lsInstantiateNNamedTemplate"` Cookie string `xml:"cookie,attr"` Dn string `xml:"dn,attr"` Response string `xml:"response,attr"` // YesOrNo InvocationResult string `xml:"invocationResult,attr"` ErrorCode int `xml:"errorCode,attr"` ErrorDescr string `xml:"errorDescr,attr"` OutConfigs OutConfigs }
func NewServiceProfileResponse ¶
func NewServiceProfileResponse(data []byte) (*ServiceProfileResponse, error)
type XMLDestroyRequest ¶
type XMLDestroyRequest struct { XMLName xml.Name `xml:"configConfMos"` Cookie string `xml:"cookie,attr"` InHierarchical bool `xml:"inHierarchical,attr"` InConfig DestroyRequestConfig }
Click to show internal directories.
Click to hide internal directories.