Documentation ¶
Index ¶
- Variables
- func NewExclude(excluder func(byte) bool) transform.Transformer
- func PrettyPrintRequest(w io.Writer, v interface{}) error
- type CabinetFile
- type CabinetFileDownloadRequest
- type CabinetFileDownloadResponse
- type CabinetFolder
- type CabinetFolderWalkFunc
- type CabinetFolders
- type CabinetGetFileInfoRequest
- type CabinetGetFileInfoResponse
- type CabinetGetFolderInfoRequest
- type CabinetGetFolderInfoResponse
- type Facility
- type Group
- type Member
- type RequestHeader
- type ScheduleEvent
- type ScheduleEventDate
- type ScheduleEventDateTime
- type ScheduleGetEventsByTargetRequest
- type ScheduleGetEventsByTargetResponse
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseTagNotFoundError = errors.New("response tag not found")
Functions ¶
func NewExclude ¶
func NewExclude(excluder func(byte) bool) transform.Transformer
func PrettyPrintRequest ¶
Types ¶
type CabinetFile ¶
type CabinetFileDownloadRequest ¶
type CabinetFileDownloadRequest struct { Header RequestHeader FileID string }
func (CabinetFileDownloadRequest) MarshalXML ¶
func (r CabinetFileDownloadRequest) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type CabinetFileDownloadResponse ¶
type CabinetFileDownloadResponse struct {
Contents string `xml:"returns>file>content"`
}
func CabinetFileDownload ¶
func CabinetFileDownload(r *CabinetFileDownloadRequest) (*CabinetFileDownloadResponse, error)
func (*CabinetFileDownloadResponse) ContentBytes ¶
func (r *CabinetFileDownloadResponse) ContentBytes() ([]byte, error)
type CabinetFolder ¶
type CabinetFolder struct { ID string `xml:"id,attr"` Title string `xml:"title"` ModifyTime string `xml:"modify_time"` Folders []*CabinetFolders `xml:"folders"` Location []string `xml:"-"` }
func (*CabinetFolder) Walk ¶
func (f *CabinetFolder) Walk(walkFn CabinetFolderWalkFunc, parent *CabinetFolder) error
type CabinetFolderWalkFunc ¶
type CabinetFolderWalkFunc func(f *CabinetFolder, parent *CabinetFolder) error
type CabinetFolders ¶
type CabinetFolders struct {
Folder []*CabinetFolder `xml:"folder"`
}
type CabinetGetFileInfoRequest ¶
type CabinetGetFileInfoRequest struct { Header RequestHeader FolderID string }
func (CabinetGetFileInfoRequest) MarshalXML ¶
func (r CabinetGetFileInfoRequest) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type CabinetGetFileInfoResponse ¶
type CabinetGetFileInfoResponse struct {
Files []CabinetFile `xml:"returns>file_information>files>file"`
}
func CabinetGetFileInfo ¶
func CabinetGetFileInfo(r *CabinetGetFileInfoRequest) (*CabinetGetFileInfoResponse, error)
type CabinetGetFolderInfoRequest ¶
type CabinetGetFolderInfoRequest struct {
Header RequestHeader
}
func (CabinetGetFolderInfoRequest) MarshalXML ¶
func (r CabinetGetFolderInfoRequest) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type CabinetGetFolderInfoResponse ¶
type CabinetGetFolderInfoResponse struct {
Root CabinetFolder `xml:"returns>folder_information>root"`
}
func CabinetGetFolderInfo ¶
func CabinetGetFolderInfo(r *CabinetGetFolderInfoRequest) (*CabinetGetFolderInfoResponse, error)
type RequestHeader ¶
type ScheduleEvent ¶
type ScheduleEvent struct { ID string `xml:"id,attr"` EventType string `xml:"event_type,attr"` PublicType string `xml:"public_type,attr"` Detail string `xml:"detail,attr"` Description string `xml:"description,attr"` Version string `xml:"version,attr"` Timezone string `xml:"timezone,attr"` EndTimezone string `xml:"end_timezone,attr"` AllDay string `xml:"all_day,attr"` Members []Member `xml:"members>member"` DateTimes []ScheduleEventDateTime `xml:"when>datetime"` Dates []ScheduleEventDate `xml:"when>date"` }
type ScheduleEventDate ¶
type ScheduleEventDateTime ¶
type ScheduleGetEventsByTargetRequest ¶
type ScheduleGetEventsByTargetRequest struct { Header RequestHeader Start string End string User string Group string Facility string }
func (ScheduleGetEventsByTargetRequest) MarshalXML ¶
func (r ScheduleGetEventsByTargetRequest) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type ScheduleGetEventsByTargetResponse ¶
type ScheduleGetEventsByTargetResponse struct {
Events []ScheduleEvent `xml:"returns>schedule_event"`
}
func ScheduleGetEventsByTarget ¶
func ScheduleGetEventsByTarget(r *ScheduleGetEventsByTargetRequest) (*ScheduleGetEventsByTargetResponse, error)
Click to show internal directories.
Click to hide internal directories.