Documentation
¶
Overview ¶
Package csom helps building CSOM XML requests
Index ¶
- type Action
- func NewAction(template string) Action
- func NewActionIdentityQuery() Action
- func NewActionMethod(methodName string, parameters []string) Action
- func NewQueryWithChildProps(properties []string) Action
- func NewQueryWithProps(properties []string) Action
- func NewSetProperty(propertyName string, parameter string) Action
- type Builder
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
String() string
SetID(id int)
GetID() int
SetObjectID(objectID int)
GetObjectID() int
CheckErr() error
}
Action CSOM XML action node builder interface
func NewActionIdentityQuery ¶
func NewActionIdentityQuery() Action
NewActionIdentityQuery creates CSOM XML action node builder instance
func NewActionMethod ¶
NewActionMethod creates CSOM XML action node builder instance
func NewQueryWithChildProps ¶
NewQueryWithChildProps creates CSOM XML query node builder instance
func NewQueryWithProps ¶
NewQueryWithProps creates CSOM XML query node builder instance
func NewSetProperty ¶
NewSetProperty creates CSOM XML set property action node builder instance
type Builder ¶
type Builder interface {
AddObject(object Object, parent Object) (Object, Object) // adds ObjectPath node to CSOM XML package
AddAction(action Action, parent Object) (Action, Object) // adds Action node to CSOM XML package
GetObjectID(object Object) (int, error) // gets provided object's ID, the object should be a pointer to already added ObjectPath node
Compile() (string, error) // compiles CSOM XML package
Clone() Builder // returns object clone
GetObjects() []Object // get CSOM objects array
}
Builder CSOM packages builder interface
type Object ¶
type Object interface {
String() string
Template() string
SetID(id int)
GetID() int
SetParentID(parentID int)
GetParentID() int
CheckErr() error
}
Object CSOM XML object path node builder interface
func NewObjectIdentity ¶
NewObjectIdentity creates CSOM XML object path node builder instance
func NewObjectMethod ¶
NewObjectMethod creates CSOM XML object path node builder instance
func NewObjectProperty ¶
NewObjectProperty creates CSOM XML object path node builder instance