Documentation ¶
Index ¶
- type APIError
- type APIErrorCode
- type HAL_Embedded
- type HAL_Links
- type HAL_MultipleShareResponse
- type HAL_Ref
- type HAL_SingleShareResponse
- type Info
- type MySQLOptions
- type ProtocolInfo
- type ProtocolOptions
- type ProviderAuthorizer
- type ProviderInfo
- type ResourceTypes
- type ResourceTypesProtocols
- type Share
- type ShareManager
- type TokenManager
- type UserManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { Code APIErrorCode `json:"code"` Message string `json:"message"` }
func NewAPIError ¶
func NewAPIError(code APIErrorCode) *APIError
func (*APIError) WithMessage ¶
type APIErrorCode ¶
type APIErrorCode string
const ( APIErrorNotFound APIErrorCode = "RESOURCE_NOT_FOUND" APIErrorUnauthenticated APIErrorCode = "UNAUTHENTICATED" APIErrorUntrustedService APIErrorCode = "UNTRUSTED_SERVICE" APIErrorUnimplemented APIErrorCode = "FUNCTION_NOT_IMPLEMENTED" APIErrorInvalidParameter APIErrorCode = "INVALID_PARAMETER" APIErrorProviderError APIErrorCode = "PROVIDER_ERROR" )
type HAL_Embedded ¶
type HAL_Embedded struct {
}type HAL_MultipleShareResponse ¶
type HAL_MultipleShareResponse struct {}
func (HAL_MultipleShareResponse) JSON ¶
func (msr HAL_MultipleShareResponse) JSON() []byte
type HAL_SingleShareResponse ¶
type HAL_SingleShareResponse struct {}
func (HAL_SingleShareResponse) JSON ¶
func (ssr HAL_SingleShareResponse) JSON() []byte
type Info ¶
type Info struct { Enabled bool `json:"enabled"` APIVersion string `json:"apiVersion"` EndPoint string `json:"endPoint"` ResourceTypes []ResourceTypes `json:"resourceTypes"` }
type MySQLOptions ¶
type ProtocolInfo ¶
type ProtocolInfo struct { Name string `json:"name"` Options *ProtocolOptions `json:"options"` }
type ProtocolOptions ¶
type ProtocolOptions struct { Permissions string `json:"permissions,omitempty"` }
type ProviderAuthorizer ¶
type ProviderInfo ¶
type ResourceTypes ¶
type ResourceTypes struct { Name string `json:"name"` Protocols ResourceTypesProtocols `json:"protocols"` }
type ResourceTypesProtocols ¶
type ResourceTypesProtocols struct {
Webdav string `json:"webdav"`
}
type ShareManager ¶
type ShareManager interface {}
type TokenManager ¶
Click to show internal directories.
Click to hide internal directories.