Documentation ¶
Index ¶
- Variables
- func Delete(kind Kind, audience string) error
- func DeleteAll() error
- func Load(kind Kind, audience string) ([]byte, error)
- func Path(kind Kind, audience string) (string, error)
- func RemainingLife(kind Kind, audience string, less time.Duration) time.Duration
- func Save(token []byte, kind Kind, audience string) error
- type Kind
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AllKinds = []Kind{KindAccess, KindRefresh}
)
Functions ¶
func Delete ¶
Delete removes the token for the given audience, if it exists. No error is returned if the token doesn't exist.
func DeleteAll ¶
func DeleteAll() error
DeleteAll removes all Chainguard tokens and empty audience directories.
func RemainingLife ¶
RemainingLife returns the amount of time remaining before the token for the given audience expires. Returns 0 for expired and non-existent tokens.
Types ¶
Click to show internal directories.
Click to hide internal directories.