workspaces

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package workspaces implements the DocuSign SDK category Workspaces.

Workspaces creation and management.

Service Api documentation may be found at: https://developers.docusign.com/esign-rest-api/reference/Workspaces Usage example:

import (
    "github.com/ICGGroup/esign"
    "github.com/ICGGroup/esign/v2.1/workspaces"
    "github.com/ICGGroup/esign/v2.1/model"
)
...
workspacesService := workspaces.New(esignCredential)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOp

type CreateOp esign.Op

CreateOp implements DocuSign API SDK Workspaces::createWorkspace

func (*CreateOp) Do

func (op *CreateOp) Do(ctx context.Context) (*model.Workspace, error)

Do executes the op. A nil context will return error.

type DeleteOp

type DeleteOp esign.Op

DeleteOp implements DocuSign API SDK Workspaces::deleteWorkspace

func (*DeleteOp) Do

func (op *DeleteOp) Do(ctx context.Context) (*model.Workspace, error)

Do executes the op. A nil context will return error.

type GetOp

type GetOp esign.Op

GetOp implements DocuSign API SDK Workspaces::getWorkspace

func (*GetOp) Do

func (op *GetOp) Do(ctx context.Context) (*model.Workspace, error)

Do executes the op. A nil context will return error.

type ItemsCreateFIleOp

type ItemsCreateFIleOp esign.Op

ItemsCreateFIleOp implements DocuSign API SDK Workspaces::createWorkspaceFile

func (*ItemsCreateFIleOp) Do

Do executes the op. A nil context will return error.

type ItemsDeleteFolderItemsOp

type ItemsDeleteFolderItemsOp esign.Op

ItemsDeleteFolderItemsOp implements DocuSign API SDK Workspaces::deleteWorkspaceFolderItems

func (*ItemsDeleteFolderItemsOp) Do

Do executes the op. A nil context will return error.

type ItemsGetFileOp

type ItemsGetFileOp esign.Op

ItemsGetFileOp implements DocuSign API SDK Workspaces::getWorkspaceFile

func (*ItemsGetFileOp) Do

Do executes the op. A nil context will return error.

func (*ItemsGetFileOp) IsDownload

func (op *ItemsGetFileOp) IsDownload() *ItemsGetFileOp

IsDownload when set to **true**, the Content-Disposition header is set in the response. The value of the header provides the filename of the file. Default is **false**.

func (*ItemsGetFileOp) PdfVersion

func (op *ItemsGetFileOp) PdfVersion() *ItemsGetFileOp

PdfVersion when set to **true** the file returned as a PDF.

type ItemsListFilePagesOp

type ItemsListFilePagesOp esign.Op

ItemsListFilePagesOp implements DocuSign API SDK Workspaces::listWorkspaceFilePages

func (*ItemsListFilePagesOp) Count

Count is the maximum number of results to return.

func (*ItemsListFilePagesOp) Do

Do executes the op. A nil context will return error.

func (*ItemsListFilePagesOp) Dpi

Dpi is the number of dots per inch (DPI) for the resulting images. Valid values are 1-310 DPI. The default value is 94.

func (*ItemsListFilePagesOp) MaxHeight

func (op *ItemsListFilePagesOp) MaxHeight(val int) *ItemsListFilePagesOp

MaxHeight sets the maximum height of the returned images in pixels.

func (*ItemsListFilePagesOp) MaxWidth

func (op *ItemsListFilePagesOp) MaxWidth(val int) *ItemsListFilePagesOp

MaxWidth sets the maximum width of the returned images in pixels.

func (*ItemsListFilePagesOp) StartPosition

func (op *ItemsListFilePagesOp) StartPosition(val int) *ItemsListFilePagesOp

StartPosition is the position within the total result set from which to start returning values. The value **thumbnail** may be used to return the page image.

type ItemsListFolderItemsOp

type ItemsListFolderItemsOp esign.Op

ItemsListFolderItemsOp implements DocuSign API SDK Workspaces::listWorkspaceFolderItems

func (*ItemsListFolderItemsOp) Count

Count is the maximum number of results to return.

func (*ItemsListFolderItemsOp) Do

Do executes the op. A nil context will return error.

func (*ItemsListFolderItemsOp) IncludeFiles

func (op *ItemsListFolderItemsOp) IncludeFiles() *ItemsListFolderItemsOp

IncludeFiles when set to **true**, file information is returned in the response along with folder information. The default is **false**.

func (*ItemsListFolderItemsOp) IncludeSubFolders

func (op *ItemsListFolderItemsOp) IncludeSubFolders() *ItemsListFolderItemsOp

IncludeSubFolders when set to **true**, information about the sub-folders of the current folder is returned. The default is **false**.

func (*ItemsListFolderItemsOp) IncludeThumbnails

func (op *ItemsListFolderItemsOp) IncludeThumbnails() *ItemsListFolderItemsOp

IncludeThumbnails when set to **true**, thumbnails are returned as part of the response. The default is **false**.

func (*ItemsListFolderItemsOp) IncludeUserDetail

func (op *ItemsListFolderItemsOp) IncludeUserDetail() *ItemsListFolderItemsOp

IncludeUserDetail set to **true** to return extended details about the user. The default is **false**.

func (*ItemsListFolderItemsOp) StartPosition

func (op *ItemsListFolderItemsOp) StartPosition(val int) *ItemsListFolderItemsOp

StartPosition is the position within the total result set from which to start returning values.

func (*ItemsListFolderItemsOp) WorkspaceUserID

func (op *ItemsListFolderItemsOp) WorkspaceUserID(val string) *ItemsListFolderItemsOp

WorkspaceUserID if set, then the results are filtered to those associated with the specified userId.

type ItemsUpdateFileOp

type ItemsUpdateFileOp esign.Op

ItemsUpdateFileOp implements DocuSign API SDK Workspaces::updateWorkspaceFile

func (*ItemsUpdateFileOp) Do

Do executes the op. A nil context will return error.

type ListOp

type ListOp esign.Op

ListOp implements DocuSign API SDK Workspaces::listWorkspaces

func (*ListOp) Do

func (op *ListOp) Do(ctx context.Context) (*model.WorkspaceList, error)

Do executes the op. A nil context will return error.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements DocuSign Workspaces Category API operations

func New

func New(cred esign.Credential) *Service

New initializes a workspaces service using cred to authorize ops.

func (*Service) Create

func (s *Service) Create(workspaces *model.Workspace) *CreateOp

Create create a Workspace

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaces/create

SDK Method Workspaces::createWorkspace

func (*Service) Delete

func (s *Service) Delete(workspaceID string) *DeleteOp

Delete delete Workspace

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaces/delete

SDK Method Workspaces::deleteWorkspace

func (*Service) Get

func (s *Service) Get(workspaceID string) *GetOp

Get get Workspace

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaces/get

SDK Method Workspaces::getWorkspace

func (*Service) ItemsCreateFIle

func (s *Service) ItemsCreateFIle(folderID string, workspaceID string, media io.Reader, mimeType string) *ItemsCreateFIleOp

ItemsCreateFIle creates a workspace file. If media is an io.ReadCloser, Do() will close media.

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaceitems/createfile

SDK Method Workspaces::createWorkspaceFile

func (*Service) ItemsDeleteFolderItems

func (s *Service) ItemsDeleteFolderItems(folderID string, workspaceID string, workspaceItemList *model.WorkspaceItemList) *ItemsDeleteFolderItemsOp

ItemsDeleteFolderItems deletes workspace one or more specific files/folders from the given folder or root.

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaceitems/deletefolderitems

SDK Method Workspaces::deleteWorkspaceFolderItems

func (*Service) ItemsGetFile

func (s *Service) ItemsGetFile(fileID string, folderID string, workspaceID string) *ItemsGetFileOp

ItemsGetFile get Workspace File

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaceitems/getfile

SDK Method Workspaces::getWorkspaceFile

func (*Service) ItemsListFilePages

func (s *Service) ItemsListFilePages(fileID string, folderID string, workspaceID string) *ItemsListFilePagesOp

ItemsListFilePages list File Pages

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaceitems/listfilepages

SDK Method Workspaces::listWorkspaceFilePages

func (*Service) ItemsListFolderItems

func (s *Service) ItemsListFolderItems(folderID string, workspaceID string) *ItemsListFolderItemsOp

ItemsListFolderItems list Workspace Folder Contents

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaceitems/listfolderitems

SDK Method Workspaces::listWorkspaceFolderItems

func (*Service) ItemsUpdateFile

func (s *Service) ItemsUpdateFile(fileID string, folderID string, workspaceID string, media io.Reader, mimeType string) *ItemsUpdateFileOp

ItemsUpdateFile update Workspace File Metadata If media is an io.ReadCloser, Do() will close media.

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaceitems/updatefile

SDK Method Workspaces::updateWorkspaceFile

func (*Service) List

func (s *Service) List() *ListOp

List list Workspaces

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaces/list

SDK Method Workspaces::listWorkspaces

func (*Service) Update

func (s *Service) Update(workspaceID string, workspaces *model.Workspace) *UpdateOp

Update update Workspace

https://developers.docusign.com/esign-rest-api/reference/workspaces/workspaces/update

SDK Method Workspaces::updateWorkspace

type UpdateOp

type UpdateOp esign.Op

UpdateOp implements DocuSign API SDK Workspaces::updateWorkspace

func (*UpdateOp) Do

func (op *UpdateOp) Do(ctx context.Context) (*model.Workspace, error)

Do executes the op. A nil context will return error.

Jump to

Keyboard shortcuts

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