openssl

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexConfig

type IndexConfig struct {
	NewCerts string
	Serial   string
	Index    string
	CA       string
	Hash     crypto.Hash
}

type IndexTXT

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

func EmptyIndex

func EmptyIndex() *IndexTXT

func (*IndexTXT) AddIndex

func (txt *IndexTXT) AddIndex(cfg *IndexConfig) error

func (*IndexTXT) Del

func (txt *IndexTXT) Del(ctx context.Context, id ca.KeyID) error

func (*IndexTXT) Get

func (txt *IndexTXT) Get(ctx context.Context, id ca.KeyID) (*x509.Certificate, ca.CertStatus, error)

func (*IndexTXT) Put

func (txt *IndexTXT) Put(ctx context.Context, cert *x509.Certificate) error

func (*IndexTXT) Revoke

func (txt *IndexTXT) Revoke(ctx context.Context, id ca.KeyID) error

func (*IndexTXT) Status

func (txt *IndexTXT) Status(ctx context.Context, id ca.KeyID) (ca.CertStatus, error)

func (*IndexTXT) Sync

func (txt *IndexTXT) Sync() error

Sync will take the map of entries being held in memory and write it back to disk.

func (*IndexTXT) WatchFiles

func (txt *IndexTXT) WatchFiles(ctx context.Context) error

Jump to

Keyboard shortcuts

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