auth

package
v3.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WarningTokenTooShort Warning return for token shorter than 200 b
	WarningTokenTooShort = "Token is too short to be valid"
	// WarningTokenToolong Warning return for token longer than 4096 b
	WarningTokenToolong = "Token is too large to be valid"
	// WarningEmptyToken Warning return for empty token string
	WarningEmptyToken = "Token file is empty"
	// WarningTokenFileNotFound token file not found
	WarningTokenFileNotFound = "Authentication token file not found"
	// WarningCouldntReadFile Warning return for issues when reading file
	WarningCouldntReadFile = "Couldn't read your Sylabs authentication token"
)

Variables

This section is empty.

Functions

func ReadToken

func ReadToken(tokenPath string) (token, warning string)

ReadToken reads a sylabs JWT auth token from a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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