api

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(ctx context.Context, client *workloadapi.Client) (*API, error)

func (*API) GetJwtHandler

func (a *API) GetJwtHandler(w http.ResponseWriter, r *http.Request)

func (*API) GetJwtTrustBundleHandler

func (a *API) GetJwtTrustBundleHandler(w http.ResponseWriter, r *http.Request)

func (*API) GetX509Handler

func (a *API) GetX509Handler(w http.ResponseWriter, r *http.Request)

func (*API) GetX509TrustBundleHandler

func (a *API) GetX509TrustBundleHandler(w http.ResponseWriter, r *http.Request)

func (*API) HealthCheckHandler

func (a *API) HealthCheckHandler(w http.ResponseWriter, r *http.Request)

HealthCheckHandler is a simple health check handler that returns a 200 OK status if server can get the X.509 SVID from the Workload API client.

Jump to

Keyboard shortcuts

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