handlers

package
v0.0.0-...-0c64ca7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIStore

type APIStore struct {
	AuthCache *cache.AuthCache
	// contains filtered or unexported fields
}

func NewStore

func NewStore(ctx context.Context) *APIStore

func (*APIStore) GetToken

func (a *APIStore) GetToken(w http.ResponseWriter, r *http.Request) error

GetToken validates if user has access to template and then returns a new token for required scope

func (*APIStore) HealthCheck

func (a *APIStore) HealthCheck(w http.ResponseWriter, _ *http.Request)

func (*APIStore) Login

func (a *APIStore) Login(w http.ResponseWriter, r *http.Request) error

func (*APIStore) Proxy

func (a *APIStore) Proxy(w http.ResponseWriter, req *http.Request)

type DockerToken

type DockerToken struct {
	Token     string `json:"token"`
	ExpiresIn int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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