Documentation
¶
Overview ¶
Package cloudstorage implements the DocuSign SDK category CloudStorage.
Use the Cloud Storage category to list the user's cloud storage document contents.
It is also used to manage the user's authentication/accounts with cloud storage service providers.
Service Api documentation may be found at: https://developers.docusign.com/esign-rest-api/v2/reference/CloudStorage Usage example:
import ( "github.com/jfcote87/esign" "github.com/jfcote87/esign/v2/cloudstorage" "github.com/jfcote87/esign/v2/model" ) ... cloudstorageService := cloudstorage.New(esignCredential)
Index ¶
- type ListFoldersOp
- func (op *ListFoldersOp) CloudStorageFolderPath(val ...string) *ListFoldersOp
- func (op *ListFoldersOp) Count(val int) *ListFoldersOp
- func (op *ListFoldersOp) Do(ctx context.Context) (*model.ExternalFolder, error)
- func (op *ListFoldersOp) Order(val string) *ListFoldersOp
- func (op *ListFoldersOp) OrderBy(val string) *ListFoldersOp
- func (op *ListFoldersOp) SearchText(val string) *ListFoldersOp
- func (op *ListFoldersOp) StartPosition(val int) *ListFoldersOp
- type ListOp
- func (op *ListOp) CloudStorageFolderPath(val string) *ListOp
- func (op *ListOp) Count(val int) *ListOp
- func (op *ListOp) Do(ctx context.Context) (*model.ExternalFolder, error)
- func (op *ListOp) Order(val string) *ListOp
- func (op *ListOp) OrderBy(val string) *ListOp
- func (op *ListOp) SearchText(val string) *ListOp
- func (op *ListOp) StartPosition(val int) *ListOp
- type ProvidersCreateOp
- type ProvidersDeleteListOp
- type ProvidersDeleteOp
- type ProvidersGetOp
- type ProvidersListOp
- type Service
- func (s *Service) List(folderID string, serviceID string, userID string) *ListOp
- func (s *Service) ListFolders(serviceID string, userID string) *ListFoldersOp
- func (s *Service) ProvidersCreate(userID string, cloudStorageProviders *model.CloudStorageProviders) *ProvidersCreateOp
- func (s *Service) ProvidersDelete(serviceID string, userID string) *ProvidersDeleteOp
- func (s *Service) ProvidersDeleteList(userID string, cloudStorageProviders *model.CloudStorageProviders) *ProvidersDeleteListOp
- func (s *Service) ProvidersGet(serviceID string, userID string) *ProvidersGetOp
- func (s *Service) ProvidersList(userID string) *ProvidersListOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListFoldersOp ¶
ListFoldersOp implements DocuSign API SDK CloudStorage::listFolders
func (*ListFoldersOp) CloudStorageFolderPath ¶
func (op *ListFoldersOp) CloudStorageFolderPath(val ...string) *ListFoldersOp
CloudStorageFolderPath is a comma separated list of folder IDs included in the request.
func (*ListFoldersOp) Count ¶
func (op *ListFoldersOp) Count(val int) *ListFoldersOp
Count is an optional value that sets how many items are included in the response.
The default setting for this is 25.
func (*ListFoldersOp) Do ¶
func (op *ListFoldersOp) Do(ctx context.Context) (*model.ExternalFolder, error)
Do executes the op. A nil context will return error.
func (*ListFoldersOp) Order ¶
func (op *ListFoldersOp) Order(val string) *ListFoldersOp
Order is an optional value that sets the direction order used to sort the item list.
Valid values are:
* asc = ascending sort order * desc = descending sort order
func (*ListFoldersOp) OrderBy ¶
func (op *ListFoldersOp) OrderBy(val string) *ListFoldersOp
OrderBy is an optional value that sets the file attribute used to sort the item list.
Valid values are:
* modified * name
func (*ListFoldersOp) SearchText ¶
func (op *ListFoldersOp) SearchText(val string) *ListFoldersOp
SearchText set the call query parameter search_text
func (*ListFoldersOp) StartPosition ¶
func (op *ListFoldersOp) StartPosition(val int) *ListFoldersOp
StartPosition indicates the starting point of the first item included in the response set. It uses a 0-based index. The default setting for this is 0.
type ListOp ¶
ListOp implements DocuSign API SDK CloudStorage::list
func (*ListOp) CloudStorageFolderPath ¶
CloudStorageFolderPath set the call query parameter cloud_storage_folder_path
func (*ListOp) Count ¶
Count is an optional value that sets how many items are included in the response.
The default setting for this is 25.
func (*ListOp) Order ¶
Order is an optional value that sets the direction order used to sort the item list.
Valid values are:
* asc = ascending sort order * desc = descending sort order
func (*ListOp) OrderBy ¶
OrderBy is an optional value that sets the file attribute used to sort the item list.
Valid values are:
* modified * name
func (*ListOp) SearchText ¶
SearchText set the call query parameter search_text
func (*ListOp) StartPosition ¶
StartPosition indicates the starting point of the first item included in the response set. It uses a 0-based index. The default setting for this is 0.
type ProvidersCreateOp ¶
ProvidersCreateOp implements DocuSign API SDK CloudStorage::createProvider
func (*ProvidersCreateOp) Do ¶
func (op *ProvidersCreateOp) Do(ctx context.Context) (*model.CloudStorageProviders, error)
Do executes the op. A nil context will return error.
type ProvidersDeleteListOp ¶
ProvidersDeleteListOp implements DocuSign API SDK CloudStorage::deleteProviders
func (*ProvidersDeleteListOp) Do ¶
func (op *ProvidersDeleteListOp) Do(ctx context.Context) (*model.CloudStorageProviders, error)
Do executes the op. A nil context will return error.
type ProvidersDeleteOp ¶
ProvidersDeleteOp implements DocuSign API SDK CloudStorage::deleteProvider
func (*ProvidersDeleteOp) Do ¶
func (op *ProvidersDeleteOp) Do(ctx context.Context) (*model.CloudStorageProviders, error)
Do executes the op. A nil context will return error.
type ProvidersGetOp ¶
ProvidersGetOp implements DocuSign API SDK CloudStorage::getProvider
func (*ProvidersGetOp) Do ¶
func (op *ProvidersGetOp) Do(ctx context.Context) (*model.CloudStorageProviders, error)
Do executes the op. A nil context will return error.
func (*ProvidersGetOp) RedirectURL ¶
func (op *ProvidersGetOp) RedirectURL(val string) *ProvidersGetOp
RedirectURL is the URL the user is redirected to after the cloud storage provider authenticates the user. Using this will append the redirectUrl to the authenticationUrl.
The redirectUrl is restricted to URLs in the docusign.com or docusign.net domains.
type ProvidersListOp ¶
ProvidersListOp implements DocuSign API SDK CloudStorage::listProviders
func (*ProvidersListOp) Do ¶
func (op *ProvidersListOp) Do(ctx context.Context) (*model.CloudStorageProviders, error)
Do executes the op. A nil context will return error.
func (*ProvidersListOp) RedirectURL ¶
func (op *ProvidersListOp) RedirectURL(val string) *ProvidersListOp
RedirectURL is the URL the user is redirected to after the cloud storage provider authenticates the user. Using this will append the redirectUrl to the authenticationUrl.
The redirectUrl is restricted to URLs in the docusign.com or docusign.net domains.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements DocuSign CloudStorage Category API operations
func New ¶
func New(cred esign.Credential) *Service
New initializes a cloudstorage service using cred to authorize ops.
func (*Service) List ¶
List gets a list of all the items from the specified cloud storage provider.
https://developers.docusign.com/esign-rest-api/v2/reference/cloudstorage/cloudstorage/list
SDK Method CloudStorage::list
func (*Service) ListFolders ¶
func (s *Service) ListFolders(serviceID string, userID string) *ListFoldersOp
ListFolders retrieves a list of all the items in a specified folder from the specified cloud storage provider.
https://developers.docusign.com/esign-rest-api/v2/reference/cloudstorage/cloudstorage/listfolders
SDK Method CloudStorage::listFolders
func (*Service) ProvidersCreate ¶
func (s *Service) ProvidersCreate(userID string, cloudStorageProviders *model.CloudStorageProviders) *ProvidersCreateOp
ProvidersCreate configures the redirect URL information for one or more cloud storage providers for the specified user.
SDK Method CloudStorage::createProvider
func (*Service) ProvidersDelete ¶
func (s *Service) ProvidersDelete(serviceID string, userID string) *ProvidersDeleteOp
ProvidersDelete deletes the user authentication information for the specified cloud storage provider.
SDK Method CloudStorage::deleteProvider
func (*Service) ProvidersDeleteList ¶
func (s *Service) ProvidersDeleteList(userID string, cloudStorageProviders *model.CloudStorageProviders) *ProvidersDeleteListOp
ProvidersDeleteList deletes the user authentication information for one or more cloud storage providers.
SDK Method CloudStorage::deleteProviders
func (*Service) ProvidersGet ¶
func (s *Service) ProvidersGet(serviceID string, userID string) *ProvidersGetOp
ProvidersGet gets the specified Cloud Storage Provider configuration for the User.
https://developers.docusign.com/esign-rest-api/v2/reference/cloudstorage/cloudstorageproviders/get
SDK Method CloudStorage::getProvider
func (*Service) ProvidersList ¶
func (s *Service) ProvidersList(userID string) *ProvidersListOp
ProvidersList get the Cloud Storage Provider configuration for the specified user.
https://developers.docusign.com/esign-rest-api/v2/reference/cloudstorage/cloudstorageproviders/list
SDK Method CloudStorage::listProviders