Help us shape the future of Go! Take the 2026 Go Developer Survey

runtimeresourceapi

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuntimeService

func RuntimeService(ctx context.Context) string

func WithRuntimeService

func WithRuntimeService(r *http.Request, service string) *http.Request

Types

type Authorizer

type Authorizer interface {
	AuthorizeRuntimeOperation(app, service, capability, operation string) error
}

type Handler

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

func New

func New(app string, operations *runtimeoperation.Manager, authorizer Authorizer, executor runtimeoperation.Executor) (*Handler, error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ServiceTokenVerifier

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

func NewServiceTokenVerifier

func NewServiceTokenVerifier(path string) (*ServiceTokenVerifier, error)

func (*ServiceTokenVerifier) Verify

func (v *ServiceTokenVerifier) Verify(token string) (string, error)

type StaticAuthorizer

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

func NewStaticAuthorizer

func NewStaticAuthorizer(app, path string) (*StaticAuthorizer, error)

func (*StaticAuthorizer) AuthorizeRuntimeOperation

func (a *StaticAuthorizer) AuthorizeRuntimeOperation(app, service, capability, operation string) error

func (*StaticAuthorizer) Capabilities

func (a *StaticAuthorizer) Capabilities() map[string][]string

func (*StaticAuthorizer) CapabilitiesForService

func (a *StaticAuthorizer) CapabilitiesForService(service string) map[string][]string

Jump to

Keyboard shortcuts

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