accesstoken

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken interface {
	Read() (string, error)
}

func NewAccessToken

func NewAccessToken(filePath string) AccessToken

type FileAccessToken

type FileAccessToken struct {
	// contains filtered or unexported fields
}

func (*FileAccessToken) IsExpired

func (k *FileAccessToken) IsExpired() bool

IsExpired checks if the token is expired

func (*FileAccessToken) Read

func (k *FileAccessToken) Read() (string, error)

type StaticAccessToken

type StaticAccessToken struct {
	Token string `yaml:"token" json:"token"`
}

func NewStaticAccessToken

func NewStaticAccessToken(token string) *StaticAccessToken

func (*StaticAccessToken) Read

func (s *StaticAccessToken) Read() (string, error)

Jump to

Keyboard shortcuts

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