factory

package
v0.0.0-...-51fbea3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCSP

func GetCSP() (csp.CSP, error)

func InitCSPFactoryWithOpts

func InitCSPFactoryWithOpts(opts *FactoryOpts)

Types

type CSPFactory

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

type FactoryOpts

type FactoryOpts struct {
	// Kind 目前仅支持:sw,即通过软件实现的密码方案。
	Kind          string `json:"kind" yaml:"Kind"`
	KeyStorePath  string `json:"key_store_path" yaml:"KeyStorePath"`
	SecurityLevel int    `json:"security_level" yaml:"SecurityLevel"`
	HashFamily    string `json:"hash_family" yaml:"HashFamily"`
	ReadOnly      bool   `json:"read_only" yaml:"ReadOnly"`
}

func ReadConfig

func ReadConfig() (*FactoryOpts, error)

Jump to

Keyboard shortcuts

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