clientdata

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User          ClientType = "user"
	TechnicalUser ClientType = "technical-user"
	System        ClientType = "system"

	// EnrichHeaderWithClientRegion if set on true is including the client region. information in the headers
	EnrichHeaderWithClientRegion = "enrich-header-with-client-region"
	// EnrichHeaderWithClientType if set on true is including the client type. information in the headers
	EnrichHeaderWithClientType = "enrich-header-with-client-type"
	// DisableClientDataComputation if set on true the client data is not generated on the headers
	DisableClientDataComputation = "disable-client-data-computation"
)

Variables

View Source
var (
	ErrComputationNotEnabled = errors.New("computation of client data not enabled")
)

Functions

This section is empty.

Types

type ClientType

type ClientType string

type Factory

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

func NewFactory

func NewFactory(featureGates *commoncfg.FeatureGates, cfg *config.ClientData) (*Factory, error)

func NewFactoryWithSigningKey

func NewFactoryWithSigningKey(featureGates *commoncfg.FeatureGates, signingKey *signing.Key) *Factory

func (*Factory) Create

func (c *Factory) Create(opts ...Option) (*auth.ClientData, error)

func (*Factory) CreateAndEncode

func (c *Factory) CreateAndEncode(opts ...Option) (string, string, error)

func (*Factory) Enabled

func (c *Factory) Enabled() bool

func (*Factory) IsDisabled

func (c *Factory) IsDisabled() bool

func (*Factory) SigningKeyID

func (c *Factory) SigningKeyID() string

type Option

type Option func(*clientDataBuilder) error

func WithClientType

func WithClientType(val ClientType) Option

func WithEmail

func WithEmail(val string) Option

func WithGroups

func WithGroups(vals []string) Option

func WithIssuer added in v0.4.1

func WithIssuer(val string) Option

func WithRegion

func WithRegion(val string) Option

func WithSignatureAlgorithm

func WithSignatureAlgorithm(val auth.SignatureAlgorithm) Option

func WithSubject

func WithSubject(val string) Option

Directories

Path Synopsis
Package signing handles the loading of signing keys from files.
Package signing handles the loading of signing keys from files.

Jump to

Keyboard shortcuts

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