spire

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"spire-delegate",
	"Spire Delegate API Client",
	cell.Provide(newSpireDelegateClient),
	cell.Config(SpireDelegateConfig{}),
)

Functions

This section is empty.

Types

type SpireDelegateClient

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

func (*SpireDelegateClient) GetCertificateForIdentity

func (s *SpireDelegateClient) GetCertificateForIdentity(identity string) (*tls.Certificate, error)

func (*SpireDelegateClient) GetTrustBundle

func (s *SpireDelegateClient) GetTrustBundle() (*x509.CertPool, error)

func (*SpireDelegateClient) ValidateIdentity

func (s *SpireDelegateClient) ValidateIdentity(identity string, cert *x509.Certificate) (bool, error)

type SpireDelegateConfig

type SpireDelegateConfig struct {
	SpireAdminSocketPath string `mapstructure:"mesh-auth-spire-admin-socket"`
	SpiffeTrustDomain    string `mapstructure:"mesh-auth-spiffe-trust-domain"`
}

func (SpireDelegateConfig) Flags

func (cfg SpireDelegateConfig) Flags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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