cache

package
v0.0.0-...-d0eae6a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenData

type AccessTokenData struct {
	DockerToken string
	TemplateID  string
}

type AuthCache

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

func New

func New() *AuthCache

func (*AuthCache) Create

func (c *AuthCache) Create(templateID, token string, expiresIn int) string

Create creates a new auth token for the given templateID and accessToken and returns e2bToken

func (*AuthCache) Get

func (c *AuthCache) Get(e2bToken string) (*AccessTokenData, error)

Get returns the auth token for the given teamID and e2bToken.

Jump to

Keyboard shortcuts

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