Documentation ¶
Index ¶
- Variables
- func InstanceName(url string) (bool, error)
- func LocalPath(localMountPoint string) (bool, error)
- func LogFile(logFilePath string) (bool, error)
- func RcloneMountFlags(flagList string) (bool, error)
- func RefreshTokenRenew(minutes int) (bool, error)
- func RemotePath(remotePath string) (bool, error)
- func S3Endpoint(endpoint string) (bool, error)
- func WebURL(url string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoValidSize = errors.New("no valid uid") ErrNoValidUID = errors.New("no valid uid") ErrNoValidPermission = errors.New("no valid permission") ErrNoValidDuration = errors.New("no valid duration") ErrNoValidFile = errors.New("no valid file") ErrNoValidLogFile = errors.New("no valid log file") ErrNoValidPath = errors.New("no valid path") ErrNoValidEndpoint = errors.New("no valid s3 endpoint") ErrNoValidWebURL = errors.New("no valid web URL") ErrNoValidS3RemotePath = errors.New("no valid s3 remote path") ErrNoValidInstanceName = errors.New("no valid instance name") ErrNoValidRefreshTokenRenewTime = errors.New("no valid refresh token time duration: min 15min") ErrNoValidRcloneMountOption = errors.New("mount option not valid") )
Functions ¶
func InstanceName ¶
InstanceName checks if the user instance name is valid.
func RcloneMountFlags ¶ added in v1.3.0
RcloneMountFlags checks if the flags are valid rclone mount flags
func RefreshTokenRenew ¶ added in v1.0.1
RefreshTokenRenew checks if the number of minutes are valid: minimum is 15min.
func RemotePath ¶
RemotePath checks if the remote path is valid (a valid bucket path: /something...).
func S3Endpoint ¶
S3Endpoint checks if the given endpoint is a valid s3 endpoint.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.