Versions in this module Expand all Collapse all v0 v0.0.1 Nov 13, 2020 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + AdminApi *AdminApiService + ClassificationApi *ClassificationApiService + CollectionApi *CollectionApiService + FileApi *FileApiService + FilesApi *FilesApiService + GroupApi *GroupApiService + GroupsApi *GroupsApiService + LegalHoldApi *LegalHoldApiService + RetentionPolicyApi *RetentionPolicyApiService + TokenApi *TokenApiService + UserApi *UserApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + func (c *APIClient) GetConfig() *Configuration + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type AccessLevel string + const CO_OWNER + const READ_ONLY + const READ_WRITE + const UPLOAD_ONLY + type AddChildToCollectionOpts struct + XHiarcUserKey optional.String + type AddClassificationToFileOpts struct + XHiarcUserKey optional.String + type AddClassificationToFileRequest struct + ClassificationKey string + type AddFileToCollectionOpts struct + XHiarcUserKey optional.String + type AddFileToCollectionRequest struct + FileKey string + type AddGroupToCollectionOpts struct + XHiarcUserKey optional.String + type AddGroupToCollectionRequest struct + AccessLevel AccessLevel + GroupKey string + type AddGroupToFileOpts struct + XHiarcUserKey optional.String + type AddGroupToFileRequest struct + AccessLevel AccessLevel + GroupKey string + type AddRetentionPolicyToFileOpts struct + XHiarcUserKey optional.String + type AddRetentionPolicyToFileRequest struct + RetentionPolicyKey string + type AddUserToCollectionOpts struct + XHiarcUserKey optional.String + type AddUserToCollectionRequest struct + AccessLevel AccessLevel + UserKey string + type AddUserToFileOpts struct + XHiarcUserKey optional.String + type AddUserToFileRequest struct + AccessLevel AccessLevel + UserKey string + type AddVersionOpts struct + XHiarcUserKey optional.String + type AddVersionToFileRequest struct + Key string + StorageService string + type AdminApiService service + func (a *AdminApiService) InitDB(ctx _context.Context) (map[string]interface{}, *_nethttp.Response, error) + func (a *AdminApiService) ResetDB(ctx _context.Context) (map[string]interface{}, *_nethttp.Response, error) + type AllowedFilesRequest struct + Keys []string + type AttachToExisitingFileOpts struct + XHiarcUserKey optional.String + type AttachToExistingFileRequest struct + Name string + StorageId string + StorageService string + type BasicAuth struct + Password string + UserName string + type Classification struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Type string + type ClassificationApiService service + func (a *ClassificationApiService) CreateClassification(ctx _context.Context, createClassificationRequest CreateClassificationRequest, ...) (Classification, *_nethttp.Response, error) + func (a *ClassificationApiService) DeleteClassification(ctx _context.Context, key string, localVarOptionals *DeleteClassificationOpts) (map[string]interface{}, *_nethttp.Response, error) + func (a *ClassificationApiService) FindClassification(ctx _context.Context, findClassificationsRequest FindClassificationsRequest, ...) ([]Classification, *_nethttp.Response, error) + func (a *ClassificationApiService) GetAllClassifications(ctx _context.Context, localVarOptionals *GetAllClassificationsOpts) ([]Classification, *_nethttp.Response, error) + func (a *ClassificationApiService) GetClassification(ctx _context.Context, key string, localVarOptionals *GetClassificationOpts) (Classification, *_nethttp.Response, error) + func (a *ClassificationApiService) UpdateClassification(ctx _context.Context, key string, ...) (Classification, *_nethttp.Response, error) + type Collection struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Type string + type CollectionApiService service + func (a *CollectionApiService) AddChildToCollection(ctx _context.Context, key string, childKey string, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *CollectionApiService) AddFileToCollection(ctx _context.Context, key string, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *CollectionApiService) AddGroupToCollection(ctx _context.Context, key string, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *CollectionApiService) AddUserToCollection(ctx _context.Context, key string, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *CollectionApiService) CreateCollection(ctx _context.Context, createCollectionRequest CreateCollectionRequest, ...) (Collection, *_nethttp.Response, error) + func (a *CollectionApiService) DeleteCollection(ctx _context.Context, key string, localVarOptionals *DeleteCollectionOpts) (map[string]interface{}, *_nethttp.Response, error) + func (a *CollectionApiService) FindCollection(ctx _context.Context, findCollectionsRequest FindCollectionsRequest, ...) ([]Collection, *_nethttp.Response, error) + func (a *CollectionApiService) GetAllCollections(ctx _context.Context, localVarOptionals *GetAllCollectionsOpts) ([]Collection, *_nethttp.Response, error) + func (a *CollectionApiService) GetCollection(ctx _context.Context, key string, localVarOptionals *GetCollectionOpts) (Collection, *_nethttp.Response, error) + func (a *CollectionApiService) GetCollectionChildren(ctx _context.Context, key string, localVarOptionals *GetCollectionChildrenOpts) ([]Collection, *_nethttp.Response, error) + func (a *CollectionApiService) GetCollectionFiles(ctx _context.Context, key string, localVarOptionals *GetCollectionFilesOpts) ([]File, *_nethttp.Response, error) + func (a *CollectionApiService) GetCollectionItems(ctx _context.Context, key string, localVarOptionals *GetCollectionItemsOpts) (CollectionItems, *_nethttp.Response, error) + func (a *CollectionApiService) RemoveFileFromCollection(ctx _context.Context, key string, fileKey string, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *CollectionApiService) UpdateCollection(ctx _context.Context, key string, ...) (Collection, *_nethttp.Response, error) + type CollectionItems struct + ChildCollections []Collection + Files []File + type Configuration struct + BasePath string + Debug bool + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + Servers []ServerConfiguration + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + func (c *Configuration) ServerUrl(index int, variables map[string]string) (string, error) + type CopyFileOpts struct + XHiarcUserKey optional.String + type CopyFileRequest struct + Key string + StorageService string + type CreateClassificationOpts struct + XHiarcUserKey optional.String + type CreateClassificationRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type CreateCollectionOpts struct + XHiarcUserKey optional.String + type CreateCollectionRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type CreateDirectUploadUrlOpts struct + ExpiresInSeconds optional.Int32 + XHiarcUserKey optional.String + type CreateDirectUploadUrlRequest struct + StorageService string + type CreateFileOpts struct + XHiarcUserKey optional.String + type CreateFileRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + StorageService string + type CreateFileRequestAllOf struct + StorageService string + type CreateGroupRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type CreateLegalHoldRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type CreateOrUpdateEntityRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type CreateRetentionPolicyRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + Seconds int32 + type CreateRetentionPolicyRequestAllOf struct + Seconds int32 + type CreateUserRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type CreateUserTokenRequest struct + ExpirationMinues float32 + Key string + type DeleteClassificationOpts struct + XHiarcUserKey optional.String + type DeleteCollectionOpts struct + XHiarcUserKey optional.String + type DeleteFileOpts struct + XHiarcUserKey optional.String + type DownloadFileOpts struct + XHiarcUserKey optional.String + type Entity struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Type string + type File struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Type string + VersionCount float32 + type FileAllOf struct + VersionCount float32 + type FileApiService service + func (a *FileApiService) AddClassificationToFile(ctx _context.Context, key string, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *FileApiService) AddGroupToFile(ctx _context.Context, key string, addGroupToFileRequest AddGroupToFileRequest, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *FileApiService) AddRetentionPolicyToFile(ctx _context.Context, key string, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *FileApiService) AddUserToFile(ctx _context.Context, key string, addUserToFileRequest AddUserToFileRequest, ...) (map[string]interface{}, *_nethttp.Response, error) + func (a *FileApiService) AddVersion(ctx _context.Context, key string, filepath string, filename string, ...) (File, *_nethttp.Response, error) + func (a *FileApiService) AttachToExisitingFile(ctx _context.Context, key string, ...) (File, *_nethttp.Response, error) + func (a *FileApiService) CopyFile(ctx _context.Context, key string, copyFileRequest CopyFileRequest, ...) (File, *_nethttp.Response, error) + func (a *FileApiService) CreateDirectUploadUrl(ctx _context.Context, ...) (FileDirectUpload, *_nethttp.Response, error) + func (a *FileApiService) CreateFile(ctx _context.Context, filepath string, filename string, cfr CreateFileRequest, ...) (File, *_nethttp.Response, error) + func (a *FileApiService) DeleteFile(ctx _context.Context, key string, localVarOptionals *DeleteFileOpts) (map[string]interface{}, *_nethttp.Response, error) + func (a *FileApiService) DownloadFile(ctx _context.Context, key string, localVarOptionals *DownloadFileOpts) (*os.File, *_nethttp.Response, error) + func (a *FileApiService) GetCollectionsForFile(ctx _context.Context, key string, localVarOptionals *GetCollectionsForFileOpts) ([]Collection, *_nethttp.Response, error) + func (a *FileApiService) GetDirectDownloadUrl(ctx _context.Context, key string, localVarOptionals *GetDirectDownloadUrlOpts) (FileDirectDownload, *_nethttp.Response, error) + func (a *FileApiService) GetFile(ctx _context.Context, key string, localVarOptionals *GetFileOpts) (File, *_nethttp.Response, error) + func (a *FileApiService) GetRetentionPolicies(ctx _context.Context, key string, localVarOptionals *GetRetentionPoliciesOpts) ([]RetentionPolicyApplication, *_nethttp.Response, error) + func (a *FileApiService) GetVersions(ctx _context.Context, key string, localVarOptionals *GetVersionsOpts) ([]FileVersion, *_nethttp.Response, error) + func (a *FileApiService) UpdateFile(ctx _context.Context, key string, updateFileRequest UpdateFileRequest, ...) (File, *_nethttp.Response, error) + type FileDirectDownload struct + DirectDownloadUrl string + ExpiresAt time.Time + Key string + type FileDirectUpload struct + DirectUploadUrl string + ExpiresAt time.Time + StorageId string + StorageService string + type FileVersion struct + CreatedAt time.Time + CreatedBy string + StorageId string + StorageService string + type FilesApiService service + func (a *FilesApiService) FilterAllowedFiles(ctx _context.Context, allowedFilesRequest AllowedFilesRequest, ...) ([]string, *_nethttp.Response, error) + type FilterAllowedFilesOpts struct + XHiarcUserKey optional.String + type FindClassificationOpts struct + XHiarcUserKey optional.String + type FindClassificationsRequest struct + Query []map[string]interface{} + type FindCollectionOpts struct + XHiarcUserKey optional.String + type FindCollectionsRequest struct + Query []map[string]interface{} + type FindEntityRequest struct + Query []map[string]interface{} + type FindGroupsRequest struct + Query []map[string]interface{} + type FindRetentionPoliciesRequest struct + Query []map[string]interface{} + type FindUsersRequest struct + Query []map[string]interface{} + type GenericOpenAPIError struct + func (e GenericOpenAPIError) Body() []byte + func (e GenericOpenAPIError) Error() string + func (e GenericOpenAPIError) Model() interface{} + type GetAllClassificationsOpts struct + XHiarcUserKey optional.String + type GetAllCollectionsOpts struct + XHiarcUserKey optional.String + type GetClassificationOpts struct + XHiarcUserKey optional.String + type GetCollectionChildrenOpts struct + XHiarcUserKey optional.String + type GetCollectionFilesOpts struct + XHiarcUserKey optional.String + type GetCollectionItemsOpts struct + XHiarcUserKey optional.String + type GetCollectionOpts struct + XHiarcUserKey optional.String + type GetCollectionsForFileOpts struct + XHiarcUserKey optional.String + type GetCurrentUserOpts struct + XHiarcUserKey optional.String + type GetDirectDownloadUrlOpts struct + ExpiresInSeconds optional.Int32 + XHiarcUserKey optional.String + type GetFileOpts struct + XHiarcUserKey optional.String + type GetGroupsForCurrentUserOpts struct + XHiarcUserKey optional.String + type GetGroupsForUserOpts struct + XHiarcUserKey optional.String + type GetRetentionPoliciesOpts struct + XHiarcUserKey optional.String + type GetVersionsOpts struct + XHiarcUserKey optional.String + type Group struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Type string + type GroupApiService service + func (a *GroupApiService) AddUserToGroup(ctx _context.Context, key string, userKey string) (map[string]interface{}, *_nethttp.Response, error) + func (a *GroupApiService) CreateGroup(ctx _context.Context, createGroupRequest CreateGroupRequest) (Group, *_nethttp.Response, error) + func (a *GroupApiService) DeleteGroup(ctx _context.Context, key string) (map[string]interface{}, *_nethttp.Response, error) + func (a *GroupApiService) FindGroup(ctx _context.Context, findGroupsRequest FindGroupsRequest) ([]Group, *_nethttp.Response, error) + func (a *GroupApiService) GetAllGroups(ctx _context.Context) ([]Group, *_nethttp.Response, error) + func (a *GroupApiService) GetGroup(ctx _context.Context, key string) (Group, *_nethttp.Response, error) + func (a *GroupApiService) GetGroupsForCurrentUser(ctx _context.Context, localVarOptionals *GetGroupsForCurrentUserOpts) ([]Group, *_nethttp.Response, error) + func (a *GroupApiService) UpdateGroup(ctx _context.Context, key string, updateGroupRequest UpdateGroupRequest) (Group, *_nethttp.Response, error) + type GroupsApiService service + func (a *GroupsApiService) GetGroupsForUser(ctx _context.Context, key string, localVarOptionals *GetGroupsForUserOpts) ([]Group, *_nethttp.Response, error) + type InlineObject struct + File *os.File + Request string + type InlineObject1 struct + File *os.File + Request string + type LegalHold struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Type string + type LegalHoldApiService service + func (a *LegalHoldApiService) CreateLegalHold(ctx _context.Context, createLegalHoldRequest CreateLegalHoldRequest) (LegalHold, *_nethttp.Response, error) + func (a *LegalHoldApiService) GetLegalHold(ctx _context.Context, key string) (LegalHold, *_nethttp.Response, error) + type RemoveFileFromCollectionOpts struct + XHiarcUserKey optional.String + type RetentionPolicy struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Seconds int32 + Type string + type RetentionPolicyApiService service + func (a *RetentionPolicyApiService) CreateRetentionPolicy(ctx _context.Context, ...) (RetentionPolicy, *_nethttp.Response, error) + func (a *RetentionPolicyApiService) FindRetentionPolicies(ctx _context.Context, ...) ([]RetentionPolicy, *_nethttp.Response, error) + func (a *RetentionPolicyApiService) GetAllRetentionPolicies(ctx _context.Context) ([]RetentionPolicy, *_nethttp.Response, error) + func (a *RetentionPolicyApiService) GetRetentionPolicy(ctx _context.Context, key string) (RetentionPolicy, *_nethttp.Response, error) + func (a *RetentionPolicyApiService) UpdateRetentionPolicy(ctx _context.Context, key string, ...) (RetentionPolicy, *_nethttp.Response, error) + type RetentionPolicyApplication struct + AppliedAt time.Time + ExpiresAt time.Time + RetentionPolicy RetentionPolicy + type ServerConfiguration struct + Description string + Url string + Variables map[string]ServerVariable + type ServerVariable struct + DefaultValue string + Description string + EnumValues []string + type TokenApiService service + func (a *TokenApiService) CreateUserToken(ctx _context.Context, createUserTokenRequest CreateUserTokenRequest) (UserCredentials, *_nethttp.Response, error) + type UpdateClassificationOpts struct + XHiarcUserKey optional.String + type UpdateClassificationRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type UpdateCollectionOpts struct + XHiarcUserKey optional.String + type UpdateCollectionRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type UpdateFileOpts struct + XHiarcUserKey optional.String + type UpdateFileRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type UpdateGroupRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type UpdateRetentionPolicyRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + Seconds int32 + type UpdateUserRequest struct + Description string + Key string + Metadata map[string]interface{} + Name string + type User struct + CreatedAt time.Time + CreatedBy string + Description string + Key string + Metadata map[string]interface{} + ModifiedAt time.Time + Name string + Type string + type UserApiService service + func (a *UserApiService) CreateUser(ctx _context.Context, createUserRequest CreateUserRequest) (User, *_nethttp.Response, error) + func (a *UserApiService) DeleteUser(ctx _context.Context, key string) (map[string]interface{}, *_nethttp.Response, error) + func (a *UserApiService) FindUser(ctx _context.Context, findUsersRequest FindUsersRequest) ([]User, *_nethttp.Response, error) + func (a *UserApiService) GetAllUsers(ctx _context.Context) ([]User, *_nethttp.Response, error) + func (a *UserApiService) GetCurrentUser(ctx _context.Context, localVarOptionals *GetCurrentUserOpts) (User, *_nethttp.Response, error) + func (a *UserApiService) GetGroupsForCurrentUser(ctx _context.Context, localVarOptionals *GetGroupsForCurrentUserOpts) ([]Group, *_nethttp.Response, error) + func (a *UserApiService) GetGroupsForUser(ctx _context.Context, key string, localVarOptionals *GetGroupsForUserOpts) ([]Group, *_nethttp.Response, error) + func (a *UserApiService) GetUser(ctx _context.Context, key string) (User, *_nethttp.Response, error) + func (a *UserApiService) UpdateUser(ctx _context.Context, key string, updateUserRequest UpdateUserRequest) (User, *_nethttp.Response, error) + type UserCredentials struct + BearerToken string + CreatedAt time.Time + ExpiresAt time.Time + UserKey string