ucsinternal

package
v0.0.0-...-12b9222 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 ConfigResolveDn struct {
	XMLName   xml.Name  `xml:"configResolveDn"`
	OutConfig OutConfig `xml:"outConfig"`
}

type ConfigScope

type ConfigScope struct {
	XMLName    xml.Name `xml:"configScope"`
	OutConfigs OutConfigs
}

type DestroyRequest

type DestroyRequest struct {
	Name         string
	TargetOrg    string
	Hierarchical bool
}

func (*DestroyRequest) Marshal

func (req *DestroyRequest) Marshal(cookie string) ([]byte, error)

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 DestroyRequestServerConfig

type DestroyRequestServerConfig struct {
	XMLName xml.Name `xml:"lsServer"`
	Dn      string   `xml:"dn,attr"`
	Status  string   `xml:"status,attr"`
}

type Dn

type Dn struct {
	XMLName xml.Name `xml:"dn"`
	Value   string   `xml:"value,attr"`
}

type InConfig

type InConfig struct {
	XMLName xml.Name `xml:"inConfigs`
	Power   LsPower  `xml:"lsPower,omitempty"`
	Pair    Pair
}

type InNameSet

type InNameSet struct {
	XMLName xml.Name `xml:"inNameSet"`
	Dn      Dn
}

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 LsPower

type LsPower struct {
	Dn    string `xml:"dn,attr"`
	State string `xml:"state,attr"`
}

type MACPoolAddr

type MACPoolAddr struct {
	XMLName  xml.Name `xml:"macpoolAddr"`
	Id       string   `xml:"id,attr"`
	Assigned string   `xml:"assigned,attr"`
	DN       string   `xml:"assignedToDn,attr"`
}

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 ServerConfig struct {
	XMLName   xml.Name    `xml:"lsServer"`
	Dn        string      `xml:"dn,attr"`
	Name      string      `xml:"name,attr"`
	SrcTempl  string      `xml:"srcTemplName,attr"`
	Status    string      `xml:"status,attr"`
	VnicEther []VnicEther `xml:"vnicEther"`
}

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 VnicEther

type VnicEther struct {
	Addr          string `xml:"addr,attr"`
	IdentPoolName string `xml:"identPoolName,attr"`
	Name          string `xml:"name,attr"`
	NwTemplName   string `xml:"nwTemplName,attr"`
}

type XMLDestroyRequest

type XMLDestroyRequest struct {
	XMLName        xml.Name `xml:"configConfMos"`
	Cookie         string   `xml:"cookie,attr"`
	InHierarchical bool     `xml:"inHierarchical,attr"`
	InConfig       DestroyRequestConfig
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL