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
Click to show internal directories.
Click to hide internal directories.