dscache

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCache

func WithCache(ctx context.Context) context.Context

Types

type DatastoreCache

type DatastoreCache struct {
	datastore.DataStore
	// contains filtered or unexported fields
}

func New

func (*DatastoreCache) AppendBundle

func (ds *DatastoreCache) AppendBundle(ctx context.Context, b *common.Bundle) (bundle *common.Bundle, err error)

func (*DatastoreCache) DeleteBundle

func (ds *DatastoreCache) DeleteBundle(ctx context.Context, td string, mode datastore.DeleteMode) (err error)

func (*DatastoreCache) FetchBundle

func (ds *DatastoreCache) FetchBundle(ctx context.Context, trustDomain string) (*common.Bundle, error)

func (*DatastoreCache) PruneBundle

func (ds *DatastoreCache) PruneBundle(ctx context.Context, trustDomainID string, expiresBefore time.Time) (changed bool, err error)

func (*DatastoreCache) RevokeJWTKey added in v1.6.3

func (ds *DatastoreCache) RevokeJWTKey(ctx context.Context, trustDomainID string, authorityID string) (revokedKey *common.PublicKey, err error)

func (*DatastoreCache) RevokeX509CA added in v1.6.3

func (ds *DatastoreCache) RevokeX509CA(ctx context.Context, trustDomainID string, subjectKeyIDToRevoke string) (err error)

func (*DatastoreCache) SetBundle

func (ds *DatastoreCache) SetBundle(ctx context.Context, b *common.Bundle) (bundle *common.Bundle, err error)

func (*DatastoreCache) TaintJWTKey added in v1.6.3

func (ds *DatastoreCache) TaintJWTKey(ctx context.Context, trustDomainID string, authorityID string) (taintedKey *common.PublicKey, err error)

func (*DatastoreCache) TaintX509CA added in v1.6.3

func (ds *DatastoreCache) TaintX509CA(ctx context.Context, trustDomainID string, subjectKeyIDToTaint string) (err error)

func (*DatastoreCache) UpdateBundle

func (ds *DatastoreCache) UpdateBundle(ctx context.Context, b *common.Bundle, mask *common.BundleMask) (bundle *common.Bundle, err error)

Jump to

Keyboard shortcuts

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