Versions in this module Expand all Collapse all v1 v1.0.1 Nov 15, 2023 v1.0.0 Sep 19, 2023 Changes in this version + var ErrCouldNotCreatePublicURL = errors.New("could not generate a new public url") + var ErrCouldNotUploadFile = errors.New("could not upload a new file version") + var ErrEmptyResponse = errors.New("got an empty response") + func BuildNewIntegrationCredentialsConfig(path string) func() (*oauth2.Config, error) + func BuildNewOnlyofficeConfig(path string) func() (*OnlyofficeConfig, error) + type BoxAPI interface + CreateFile func(ctx context.Context, filename, folderID, token string, file io.ReadCloser) (response.BoxCreateFileResponse, error) + GetAuthCredentials func(ctx context.Context, code, clientID, clientSecret string) (response.BoxCredentialsResponse, error) + GetFileInfo func(ctx context.Context, token, fileId string) (response.BoxFileResponse, error) + GetFilePublicUrl func(ctx context.Context, token, fileID string) (string, error) + GetMe func(ctx context.Context, token string) (response.BoxUserResponse, error) + RefreshAuthCredentials func(ctx context.Context, refreshToken, clientID, clientSecret string) (response.BoxCredentialsResponse, error) + UpdateModifiedAt func(ctx context.Context, token, fileID string) error + UploadFile func(ctx context.Context, filename, token, parentID string, file io.ReadCloser) error + func NewBoxAPIClient() BoxAPI + type IntegrationCredentials struct + Credentials struct{ ... } + func (ic *IntegrationCredentials) Validate() error + type InvalidConfigurationParameterError struct + Parameter string + Reason string + func (e *InvalidConfigurationParameterError) Error() string + type OnlyofficeBuilderConfig struct + AllowedDownloads int + CallbackURL string + DocumentServerHeader string + DocumentServerSecret string + DocumentServerURL string + GatewayURL string + func (oc *OnlyofficeBuilderConfig) Validate() error + type OnlyofficeCallbackConfig struct + MaxSize int64 + UploadTimeout int + func (c *OnlyofficeCallbackConfig) Validate() error + type OnlyofficeConfig struct + Onlyoffice struct{ ... } + func (oc *OnlyofficeConfig) Validate() error