Versions in this module Expand all Collapse all v0 v0.0.15 Aug 9, 2022 Changes in this version type Client + func (client *Client) GetUserToDoWithContext(ctx context.Context, username string) (result GetToDoResponse, err error) + func (client *Client) NewAuthRequestWithContext(ctx context.Context, path string, method string, body io.Reader) (req *http.Request, err error) + func (client *Client) SearchCabinetWithContext(ctx context.Context, cabinet string, query ...IndexQuery) (results []CabinetSearchResult, err error) v0.0.14 Jun 13, 2022 Changes in this version type Client + func (client *Client) GetUserToDo(username string) (result GetToDoResponse, err error) + type GetToDoResponse struct + ErrorMessage string + HasError bool + ToDoList ToDoList + type ToDoItem struct + Cabinet string + Date string + DelegatedFrom string + Department string + DocId int + FileId int + Id int + Notes string + Priority int + Username string + WorkflowDefId int + WorkflowDocumentId int + WorkflowNodeId int + type ToDoList []ToDoItem v0.0.13 May 11, 2022 Changes in this version type Bool + func (b *Bool) ToString() string v0.0.12 Apr 22, 2022 Changes in this version + type CheckIn struct + Cabinet string + Department string + EncFileData []byte + FileId int + FileName string + type CheckInRequest CheckIn + type CheckInResponse struct + CheckIn CheckIn + Data string + ErrorMessage string + HasError bool + type CheckOutFile struct + Cabinet string + Department string + FileId int type Client + func (client *Client) VersionsFileCheckIn(request CheckInRequest) (response CheckInResponse, err error) + func (client Client) VersionsFileCheckOut(request VersionFileCheckOutRequest) (response VersionFileCheckOutResponse, err error) + type VersionFileCheckOutRequest CheckOutFile + type VersionFileCheckOutResponse struct + CheckOutFile CheckOutFile + Content []byte + ErrorMessage string + HasError bool v0.0.11 Mar 3, 2022 Changes in this version + const DateFormat + var ErrNotImplemented = fmt.Errorf("not implemented") + var ErrNotOK = fmt.Errorf("Status Not OK") + func ResponseBodyIfOK(resp *http.Response, err error) ([]byte, error) + type AuthResp struct + Authentication Authentication + ErrorMessage string + HasError bool + type Authentication struct + Expiration docuphaseTime + RefreshToken string + Token string + User User + type Bool bool + func (b *Bool) MarshalJSON() ([]byte, error) + func (b *Bool) UnmarshalJSON(data []byte) error + type CabinetSearchFoldersResponse struct + CabinetSearchInfo CabinetSearchInfo + ErrorMessage string + HasError bool + type CabinetSearchInfo struct + AuditStr string + CabinetId int + Department string + MatchingFolderIDs []int + ResultCount int + ResultId string + type CabinetSearchResponse struct + ErrorMessage string + HasError bool + Results []CabinetSearchResult + type CabinetSearchResult struct + DocId int + Indices Indices + type Cabinets []struct + type CabinetsResponse struct + Cabinets Cabinets + ErrorMessage string + HasError bool + type Client struct + Authentication Authentication + DefaultDepartment string + func NewService(conf *Config, deptDefault string) (client *Client, err error) + func (client *Client) AddFolder(f Folder) (folder Folder, err error) + func (client *Client) DeleteFolder(folderToDelete FolderDeleteRequest) (response FolderDeleteResponse, err error) + func (client *Client) EditFolder(request FolderEditRequest) (response FolderEditResponse, err error) + func (client *Client) FilesAdd(file FilesAddRequest) (err error) + func (client *Client) FilesDownload(filesDownload FilesDownloadRequest) (file FilesDownloadResponse, err error) + func (client *Client) FilesGetFilesInFolder(department string, cabinet string, folderId int) (files FilesInFolder, err error) + func (client *Client) FilesUploadToFolder(file FilesUploadToFolderRequest) (fileId int, err error) + func (client *Client) GetDepartments() (deps Departments, err error) + func (client *Client) GetDocumentTypes(department, cabinet string) (dTypes DocumentTypes, err error) + func (client *Client) GetFolders(department string, cabinet string) (f Folders, err error) + func (client *Client) GetPersonalInboxInfo() (result PersonalInboxInfoResponse, err error) + func (client *Client) GetSavedTabs(department string, cabinet string) (f TabInfoList, err error) + func (client *Client) GetTabInfo(department string, cabinet string, folder string) (f TabInfoList, err error) + func (client *Client) GetWorkflowDefinitions() (result WorkflowDefinitionsResponse, err error) + func (client *Client) ListCabinets() (cabinets Cabinets, err error) + func (client *Client) SearchCabinet(cabinet string, query ...IndexQuery) (results []CabinetSearchResult, err error) + func (client *Client) SearchCabinetFolders(cabinet string, query ...IndexQuery) (results CabinetSearchInfo, err error) + func (client *Client) StartWorkflow(w Workflow) (result StartWorkflowResponse, err error) + func (client Client) Do(req *http.Request) (*http.Response, error) + func (client Client) GetServerResponse(url string, method string, body io.Reader) (resp *http.Response, err error) + func (client Client) NewAuthRequest(path string, method string, body io.Reader) (req *http.Request, err error) + type Config struct + Email string + Host string + Password string + Username string + func (conf *Config) Authenticate() (*Authentication, error) + func (conf *Config) Token() (*oauth2.Token, error) + type Date struct + func (d *Date) MarshalJSON() ([]byte, error) + func (d *Date) UnmarshalJSON(data []byte) error + type DepartmentResponse struct + Departments Departments + ErrorMessage string + HasError bool + type Departments []struct + type DocumentTypes []struct + type DocumentTypesResponse struct + DocumentTypes DocumentTypes + ErrorMessage string + HasError bool + type File struct + Cabinet string + Department string + FileFullName string + FileID int + FolderID int + TabID int + type FilesAddRequest struct + type FilesAddResponse struct + ErrorMessage string + File File + HasError bool + type FilesDownloadRequest struct + Cabinet string + Department string + FileIds []int + Filename string + Format string + type FilesDownloadResponse struct + DownloadFile FilesDownloadRequest + ErrorMessage string + FileContent []byte + HasError bool + type FilesGetFilesInFolderResponse struct + ErrorMessage string + Files FilesInFolder + HasError bool + type FilesInFolder []struct + type FilesUploadToFolderRequest struct + CabinetID int + Department string + DocID int + FileContent []byte + Filename string + TabID int + type FilesUploadToFolderResponse struct + ErrorMessage string + FileID int + HasError bool + Upload FilesUploadToFolderRequest + type Folder struct + Cabinet string + CabinetID int + Department string + FolderID int + Indices Indices + func (f *Folder) IndexValue(index string) (value string) + type FolderAddResponse struct + ErrorMessage string + Folder Folder + HasError bool + type FolderDeleteRequest struct + Cabinet string + Department string + FolderID int + Force bool + type FolderDeleteResponse struct + ErrorMessage string + Folder FolderDeleteRequest + HasError bool + type FolderEditRequest struct + Cabinet string + Department string + DocId int + Indices Indices + type FolderEditResponse struct + ErrorMessage string + Folder struct{ ... } + HasError bool + IsSuccess bool + type Folders []Folder + type FoldersResponse struct + ErrorMessage string + Folders Folders + HasError bool + type Index struct + Index string + Value string + type IndexQuery struct + Id int + Index string + Operator string + Value string + type Indices []Index + func (wrs Indices) ToJSON() ([]byte, error) + func (wrs Indices) ToMap() (m map[string]string) + func (wrs Indices) Unmarshal(v interface{}) error + type PersonalInboxInfo struct + Username string + Value string + type PersonalInboxInfoResponse struct + ErrorMessage string + HasError bool + Info []PersonalInboxInfo + type StartWorkflowResponse struct + ErrorMessage string + HasError bool + IsSuccess bool + Result StartWorkflowResult + type StartWorkflowResult struct + NodeId int + Success bool + ToDoUsers []string + WfDocId int + type TabInfoList []struct + type TabInfoResponse struct + ErrorMessage string + HasError bool + TabInfoList TabInfoList + type TabRequest struct + CabinetID int + Department string + DocID int + FileID int + FileName string + FileSize int + TabName string + type User struct + Email string + ID int + LdapID int + Password string + Username string + type Workflow struct + Cabinet string + Department string + DocId int + FileId int + OwnerName string + Subfolder string + WfId int + type WorkflowDefinition struct + WorkflowId int + WorkflowName string + type WorkflowDefinitionsResponse struct + ErrorMessage string + HasError bool + WorkflowDefinitions []WorkflowDefinition