fakeserverca

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

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

func New

func New(t *testing.T, trustDomain spiffeid.TrustDomain, options *Options) *CA

func (*CA) Bundle

func (c *CA) Bundle() []*x509.Certificate

func (*CA) Clock

func (c *CA) Clock() clock.Clock

func (*CA) CredBuilder added in v1.6.0

func (c *CA) CredBuilder() *credtemplate.Builder

func (*CA) CredValidator added in v1.6.0

func (c *CA) CredValidator() *credvalidator.Validator

func (*CA) JWTSVIDTTL

func (c *CA) JWTSVIDTTL() time.Duration

func (*CA) SetError added in v1.6.0

func (c *CA) SetError(err error)

func (*CA) SetJWTKey added in v1.6.0

func (c *CA) SetJWTKey(jwtKey *ca.JWTKey)

func (*CA) SetX509CA added in v1.6.0

func (c *CA) SetX509CA(x509CA *ca.X509CA)

func (*CA) SignAgentX509SVID added in v1.6.0

func (c *CA) SignAgentX509SVID(ctx context.Context, params ca.AgentX509SVIDParams) ([]*x509.Certificate, error)

func (*CA) SignDownstreamX509CA added in v1.6.0

func (c *CA) SignDownstreamX509CA(ctx context.Context, params ca.DownstreamX509CAParams) ([]*x509.Certificate, error)

func (*CA) SignServerX509SVID added in v1.6.0

func (c *CA) SignServerX509SVID(ctx context.Context, params ca.ServerX509SVIDParams) ([]*x509.Certificate, error)

func (*CA) SignWorkloadJWTSVID added in v1.6.0

func (c *CA) SignWorkloadJWTSVID(ctx context.Context, params ca.WorkloadJWTSVIDParams) (string, error)

func (*CA) SignWorkloadX509SVID added in v1.6.0

func (c *CA) SignWorkloadX509SVID(ctx context.Context, params ca.WorkloadX509SVIDParams) ([]*x509.Certificate, error)

func (*CA) X509SVIDTTL

func (c *CA) X509SVIDTTL() time.Duration

type Options

type Options struct {
	Clock        clock.Clock
	AgentSVIDTTL time.Duration
	X509SVIDTTL  time.Duration
	JWTSVIDTTL   time.Duration
}

Jump to

Keyboard shortcuts

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