cert

package
v0.0.0-...-850ae45 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertStore

type CertStore struct {
	FS          FS
	SystemStore SystemStore
}

func (*CertStore) Store

func (c *CertStore) Store(cert string) error

func (*CertStore) Unstore

func (c *CertStore) Unstore() error

type CmdRunner

type CmdRunner interface {
	Run(command string, args ...string) (output []byte, err error)
}

type ConcreteSystemStore

type ConcreteSystemStore struct {
	FS        FS
	CmdRunner CmdRunner
}

func (*ConcreteSystemStore) Store

func (c *ConcreteSystemStore) Store(path string) error

func (*ConcreteSystemStore) Unstore

func (c *ConcreteSystemStore) Unstore() error

type FS

type FS interface {
	Exists(path string) (exists bool, err error)
	Read(path string) (contents []byte, err error)
	Remove(path string) error
	TempDir() (string, error)
	Write(path string, contents io.Reader, append bool) error
}

type SystemStore

type SystemStore interface {
	Store(path string) error
	Unstore() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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