signature

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileBackedSignatureManager added in v0.1.1

type FileBackedSignatureManager struct {
	// expected to be a path to the directory where the signature file will be written
	ConfigDir string

	SignatureFileName string
}

generate a signature and persist it on disk so that we get consistent signatures across CLI invocations both fields are optional to provide - the signature file will be written by default to ~/.soloio/signature

func (*FileBackedSignatureManager) GetSignature added in v0.1.1

func (f *FileBackedSignatureManager) GetSignature() (string, error)

type SignatureManager

type SignatureManager interface {

	// get the signature for this reporting client instance
	// this function may return both a nonempty string and an error in the case
	// where we failed to load the previously-existing signature but generated a new one.
	GetSignature() (string, error)
}

users of reporting-client are encouraged but not required to use this type to keep track of their signature

func NewSignatureManager

func NewSignatureManager() SignatureManager

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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