certstore

package
v1.4.15 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

certstore implements file-based storage for certificates and certificate authorities.

Index

Constants

View Source
const (
	R_OK = 4
	W_OK = 2
	X_OK = 1
)

Variables

This section is empty.

Functions

func New

func New(c Config) (*certstore, error)

Types

type Config

type Config struct {
	DataPath string `hcl:"data" description:"Data directory for certificates"`
	Group    string `hcl:"group" description:"Group ID for data directory"`
}

func (Config) Description

func (Config) Description() string

Description returns the description of the service

func (Config) DirMode

func (c Config) DirMode() os.FileMode

Return the dir mode for the data directory

func (Config) FileMode

func (c Config) FileMode() os.FileMode

Return the file mode for the data directory

func (Config) GroupId

func (c Config) GroupId() (int, error)

Return the gid of the group

func (Config) Name

func (Config) Name() string

Name returns the name of the service

func (Config) New

func (c Config) New() (server.Task, error)

Create a new task from the configuration

Jump to

Keyboard shortcuts

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