rest

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 12 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
}

API will handle HTTP requests

func NewAPI

func NewAPI(args NewAPIArgs) *API

func NewRestAPI

func NewRestAPI(processorBuilder *builder.ProcessorBuilder, authMiddleware *auth.AuthenticationMiddleware, tokenSourceProvider impersonate.TargetPrincipalForProjectProvider, credentialsProvider secret.SecretProvider) *API

NewRestAPI return instance of API

func (*API) Register

func (a *API) Register()

Register routine that will wait for the HTTP requests

func (*API) ServeHTTP

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

type Endpoint

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

Endpoint for a HTTP requests

func (*Endpoint) String

func (a *Endpoint) String() string

type NewAPIArgs

type NewAPIArgs struct {
	ProcessorBuilder    *builder.ProcessorBuilder
	AuthMiddleware      *auth.AuthenticationMiddleware
	TokenSourceProvider impersonate.TargetPrincipalForProjectProvider
	CredentialsProvider secret.SecretProvider
}

Jump to

Keyboard shortcuts

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