validator

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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")
)

Functions

func InstanceName

func InstanceName(url string) (bool, error)

func LocalPath

func LocalPath(localMountPoint string) (bool, error)

func LogFile

func LogFile(logFilePath string) (bool, error)

func RefreshTokenRenew added in v1.0.1

func RefreshTokenRenew(minutes int) (bool, error)

func RemotePath

func RemotePath(remotePath string) (bool, error)

func S3Endpoint

func S3Endpoint(endpoint string) (bool, error)

func WebURL

func WebURL(url string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL