spiffe

package
v0.13.1-0...-d37dc60 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Log           logger.Logger
	RequestSVIDFn RequestSVIDFn
}

type RequestSVIDFn

type RequestSVIDFn func(context.Context, []byte) ([]*x509.Certificate, error)

type SPIFFE

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

SPIFFE is a readable/writeable store of a SPIFFE X.509 SVID. Used to manage a workload SVID, and share read-only interfaces to consumers.

func New

func New(opts Options) *SPIFFE

func (*SPIFFE) Ready

func (s *SPIFFE) Ready(ctx context.Context) error

Ready blocks until SPIFFE is ready or the context is done which will return the context error.

func (*SPIFFE) Run

func (s *SPIFFE) Run(ctx context.Context) error

func (*SPIFFE) SVIDSource

func (s *SPIFFE) SVIDSource() x509svid.Source

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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