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/docs/esign-rest-api/reference/CloudStorage Usage example:
import ( "github.com/jfcote87/esign" "github.com/jfcote87/esign/v2.1/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) CloudStorageFolderidPlain(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 the maximum number of results to return.
Use `start_position` to specify the number of results to skip.
Default: `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 the order in which to sort the results.
Valid values are:
* `asc`: Ascending order. * `desc`: Descending order.
func (*ListFoldersOp) OrderBy ¶
func (op *ListFoldersOp) OrderBy(val string) *ListFoldersOp
OrderBy is the file attribute to use to sort the results.
Valid values are:
* `modified` * `name`
func (*ListFoldersOp) SearchText ¶
func (op *ListFoldersOp) SearchText(val string) *ListFoldersOp
SearchText use this parameter to search for specific text.
func (*ListFoldersOp) StartPosition ¶
func (op *ListFoldersOp) StartPosition(val int) *ListFoldersOp
StartPosition is the zero-based index of the result from which to start returning results.
Use with `count` to limit the number of results.
The default value is `0`.
type ListOp ¶
ListOp implements DocuSign API SDK CloudStorage::list
func (*ListOp) CloudStorageFolderPath ¶
CloudStorageFolderPath is the file path to a cloud storage folder.
func (*ListOp) CloudStorageFolderidPlain ¶
CloudStorageFolderidPlain is a plain-text folder ID that you can use as an alternative to the existing folder id. This property is mainly used for rooms. Enter multiple folder IDs as a comma-separated list.
func (*ListOp) Count ¶
Count is the maximum number of results to return.
Use `start_position` to specify the number of results to skip.
Default: `25`
func (*ListOp) Order ¶
Order is the order in which to sort the results.
Valid values are:
* `asc`: Ascending order. * `desc`: Descending order.
func (*ListOp) OrderBy ¶
OrderBy is the file attribute to use to sort the results.
Valid values are:
* `modified` * `name`
func (*ListOp) SearchText ¶
SearchText use this parameter to search for specific text.
func (*ListOp) StartPosition ¶
StartPosition is the zero-based index of the result from which to start returning results.
Use with `count` to limit the number of results.
The default value 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 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 items from a cloud storage provider.
https://developers.docusign.com/docs/esign-rest-api/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/docs/esign-rest-api/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/docs/esign-rest-api/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.
SDK Method CloudStorage::listProviders