notary

package
v0.0.0-...-25ef9b4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnknownNotarization = &Notarization{
	Status:    constants.Unknown,
	Object:    nil,
	StoreMeta: nil,
}

Functions

This section is empty.

Types

type Notarization

type Notarization struct {
	Status    string
	Object    *object.Object
	StoreMeta StoreMeta
}

func (Notarization) String

func (n Notarization) String() string

type Notary

type Notary interface {
	Start() error
	Stop() error
	Notarize(object *object.Object, status string) (*Notarization, error)
	Authenticate(object *object.Object) (*Notarization, error)
	AuthenticateBatch(objects []*object.Object) ([]Notarization, error)
	History(object *object.Object) ([]*Notarization, error)
}

func NewImmuNotary

func NewImmuNotary() (Notary, error)

type StoreMeta

type StoreMeta map[string]interface{}

func NewStoreMeta

func NewStoreMeta(index uint64) StoreMeta

Jump to

Keyboard shortcuts

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