control

package
v0.89.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, factory managerservice.ManagerFactory) error

Types

type Authenticator

type Authenticator interface {
	Authenticate(context.Context, string) (*scyjwt.Claims, error)
}

type JWTAuthenticator

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

func NewJWTAuthenticator

func NewJWTAuthenticator(ctx context.Context, publicKeyResource, issuer, audience, scope string) (*JWTAuthenticator, error)

func NewJWTAuthenticatorWithResource

func NewJWTAuthenticatorWithResource(ctx context.Context, resource *scy.Resource, issuer, audience, scope string) (*JWTAuthenticator, error)

func (*JWTAuthenticator) Authenticate

func (a *JWTAuthenticator) Authenticate(ctx context.Context, token string) (*scyjwt.Claims, error)

type Server

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

func New

func New(service *managerservice.Service) *Server

func NewAuthenticated

func NewAuthenticated(service *managerservice.Service, authenticator Authenticator) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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