identity

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSPIFFEID added in v0.11.0

func CreateSPIFFEID(trustDomain, namespace, appID string) (string, error)

CreateSPIFFEID returns a SPIFFE standard unique id for the given trust domain, namespace and appID.

Types

type Bundle added in v0.11.0

type Bundle struct {
	ID          string
	Namespace   string
	TrustDomain string
}

Bundle contains all the elements to identify a workload across a trust domain and a namespace.

func NewBundle added in v0.11.0

func NewBundle(id, namespace, trustDomain string) *Bundle

NewBundle returns a new identity bundle. namespace and trustDomain are optional parameters. When empty, a nil value is returned.

type Validator

type Validator interface {
	Validate(id, token, namespace string) error
}

Validator is used to validate the identity of a certificate requester by using an ID and token.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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