Documentation ¶
Overview ¶
Package truststore manages local trust stores and certificates.
Index ¶
- Constants
- Variables
- type Audit
- type AuditInfo
- type Brew
- type CA
- type CmdFS
- type DataFS
- type Error
- type FS
- type Java
- type Mock
- type NSS
- func (s *NSS) Browsers() string
- func (s *NSS) Check() (bool, error)
- func (s *NSS) CheckCA(ca *CA) (installed bool, err error)
- func (s *NSS) Description() string
- func (s *NSS) InstallCA(ca *CA) (installed bool, err error)
- func (s *NSS) ListCAs() ([]*CA, error)
- func (s *NSS) UninstallCA(ca *CA) (bool, error)
- type NSSError
- type Op
- type Platform
- func (s *Platform) Check() (bool, error)
- func (s *Platform) CheckCA(ca *CA) (installed bool, err error)
- func (s *Platform) Description() string
- func (s *Platform) InstallCA(ca *CA) (installed bool, err error)
- func (s *Platform) ListCAs() (cas []*CA, err error)
- func (s *Platform) UninstallCA(ca *CA) (uninstalled bool, err error)
- type PlatformError
- type Store
Constants ¶
View Source
const ( OpCheck Op = "check" OpInstall = "install" OpList = "list" OpSudo = "sudo" OpUninstall = "uninstall" )
Variables ¶
View Source
var ( ErrNoSudo = errors.New(`"sudo" is not available`) ErrNoKeytool = errors.New("no java keytool") ErrNoCertutil = errors.New("no certutil tooling") ErrNoNSS = errors.New("no NSS browser") ErrNoNSSDB = errors.New("no NSS database") ErrUnknownNSS = errors.New("unknown NSS install") // untested ErrUnsupportedDistro = errors.New("unsupported Linux distrobution") )
View Source
var MockCAs []*CA
Functions ¶
This section is empty.
Types ¶
type AuditInfo ¶ added in v0.0.8
type AuditInfo struct {
Valid, Missing, Rotate, Expired, PreValid, Extra []*CA
// contains filtered or unexported fields
}
type Brew ¶ added in v0.0.4
type Brew struct { RootDir string DataFS DataFS SysFS CmdFS // contains filtered or unexported fields }
func (*Brew) Description ¶ added in v0.0.8
type CA ¶
type CA struct { *x509.Certificate FilePath string NickName string // only used by nss UniqueName string }
type Java ¶
type NSS ¶
type NSS struct { HomeDir string DataFS fs.StatFS SysFS CmdFS // contains filtered or unexported fields }
func (*NSS) Description ¶ added in v0.0.8
type Platform ¶
type Platform struct { HomeDir string DataFS DataFS SysFS CmdFS // contains filtered or unexported fields }
func (*Platform) Description ¶ added in v0.0.8
type PlatformError ¶
func (PlatformError) Error ¶
func (e PlatformError) Error() string
Click to show internal directories.
Click to hide internal directories.