autocertcache

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupDirCache

type GroupDirCache string

GroupDirCache implements Cache using a directory on the local filesystem. If the directory does not exist, it will be created with 0770 permissions.

func (GroupDirCache) Delete

func (d GroupDirCache) Delete(ctx context.Context, name string) error

Delete removes the specified file name.

func (GroupDirCache) Get

func (d GroupDirCache) Get(ctx context.Context, name string) ([]byte, error)

Get reads a certificate data from the specified file name.

func (GroupDirCache) Put

func (d GroupDirCache) Put(ctx context.Context, name string, data []byte) error

Put writes the certificate data to the specified file name. The file will be created with 0660 permissions.

Jump to

Keyboard shortcuts

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