fakeserverca

package
v0.0.0-...-8f69376 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 14 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 {
	Now        func() time.Time
	DefaultTTL time.Duration
	UpstreamCA upstreamca.UpstreamCA
}

type ServerCA

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

func New

func New(t *testing.T, trustDomain string, options *Options) *ServerCA

func (*ServerCA) SignJWTSVID

func (c *ServerCA) SignJWTSVID(ctx context.Context, jsr *node.JSR) (string, error)

func (*ServerCA) SignX509SVID

func (c *ServerCA) SignX509SVID(ctx context.Context, csrDER []byte, ttl time.Duration) ([]*x509.Certificate, error)

Jump to

Keyboard shortcuts

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