claims

package
v0.0.0-...-25adb8f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenClaimVerification string = "TokenClaimVerification"
)

Variables

This section is empty.

Functions

func StartClaimVerifier

func StartClaimVerifier(client kubernetes.Interface, namespace string, generator TokenGenerator, siteChecker SiteChecker) bool

Types

type ClaimFactory

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

func NewClaimFactory

func NewClaimFactory(clients kube.Clients, namespace string, siteContext SiteContext, ctx context.Context) *ClaimFactory

func (*ClaimFactory) CreateTokenClaim

func (m *ClaimFactory) CreateTokenClaim(name string, password []byte, expiry time.Duration, uses int) (*corev1.Secret, error)

func (*ClaimFactory) RecreateTokenClaim

func (m *ClaimFactory) RecreateTokenClaim(name string) (*corev1.Secret, error)

type ClaimOptions

type ClaimOptions struct {
	Name     string
	Password []byte
	Expiry   time.Duration
	Uses     int
}

type ClaimVerifier

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

func (*ClaimVerifier) ServeHTTP

func (server *ClaimVerifier) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SiteChecker

type SiteChecker interface {
	VerifySiteCompatibility(siteVersion string) error
}

type SiteContext

type SiteContext interface {
	resolver.Resolver
	IsEdge() bool
	GetSiteVersion() string
	GetSiteId() string
	GetOwnerReferences() []metav1.OwnerReference
}

type TokenGenerator

type TokenGenerator interface {
	ConnectorTokenCreate(ctx context.Context, subject string, namespace string) (*corev1.Secret, bool, error)
}

Jump to

Keyboard shortcuts

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