grants

package
v0.0.0-...-6fd6e37 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialise

func Initialise(controller *internalclient.Controller, currentNamespace string, watchNamespace string, config *GrantConfig, generator GrantResponse, filter NamespaceFilter) func()

func RedeemAccessToken

func RedeemAccessToken(token *skupperv2alpha1.AccessToken, site *skupperv2alpha1.Site, clients internalclient.Clients) error

Types

type AutoConfigure

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

type CertToken

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

func (*CertToken) Write

func (t *CertToken) Write(writer io.Writer) error

type ClaimToken

type ClaimToken struct {
}

type GrantConfig

type GrantConfig struct {
	Enabled              bool
	AutoConfigure        bool
	BaseUrl              string
	Port                 int
	TlsCredentialsSecret string
	Hostname             string
}

func BoundGrantConfig

func BoundGrantConfig(flags *flag.FlagSet) (*GrantConfig, error)

type GrantResponse

type GrantResponse func(namespace string, name string, subject string, writer io.Writer) error

type Grants

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

func (*Grants) ServeHTTP

func (g *Grants) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GrantsDisabled

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

type GrantsEnabled

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

func (*GrantsEnabled) Start

func (c *GrantsEnabled) Start()

type HttpError

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

type LinkDecoder

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

type NamespaceFilter

type NamespaceFilter func(string) bool

type Server

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

type Token

type Token interface {
	Write(writer io.Writer) error
}

type TokenGenerator

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

func NewTokenGenerator

func NewTokenGenerator(site *skupperv2alpha1.Site, clients internalclient.Clients) (*TokenGenerator, error)

func (*TokenGenerator) NewCertToken

func (g *TokenGenerator) NewCertToken(name string, subject string) Token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳