token

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureTokenFile

func EnsureTokenFile(path string) error

Types

type FileTokenClient

type FileTokenClient struct {
	Path string
}

func (*FileTokenClient) CheckToken

func (c *FileTokenClient) CheckToken(tokenToCheck string) (bool, error)

func (*FileTokenClient) GetToken

func (c *FileTokenClient) GetToken() (string, error)

type TokenClient

type TokenClient interface {
	GetToken() (string, error)
	CheckToken(token string) (bool, error)
}

Jump to

Keyboard shortcuts

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