common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 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 BinderService

type BinderService interface {
	Bind(longTerm view.Identity, ephemeral view.Identity) error
}

type DeserializerManager

type DeserializerManager interface {
	AddDeserializer(deserializer sig.Deserializer)
}

func GetDeserializerManager

func GetDeserializerManager(sp view2.ServiceProvider) (DeserializerManager, error)

type EnrollmentService

type EnrollmentService interface {
	GetEnrollmentID(auditInfo []byte) (string, error)
}

type GetIdentityFunc

type GetIdentityFunc func(opts *driver.IdentityOptions) (view.Identity, []byte, error)

GetIdentityFunc is a function that returns an Identity and its associated audit info for the given options

type IdentityInfo

type IdentityInfo struct {
	// contains filtered or unexported fields
}

IdentityInfo implements the driver.IdentityInfo interface.

func NewIdentityInfo

func NewIdentityInfo(id string, eid string, getIdentity func() (view.Identity, []byte, error)) *IdentityInfo

func (*IdentityInfo) EnrollmentID

func (i *IdentityInfo) EnrollmentID() string

func (*IdentityInfo) Get

func (i *IdentityInfo) Get() (view.Identity, []byte, error)

func (*IdentityInfo) ID

func (i *IdentityInfo) ID() string

type KVS added in v0.2.0

type KVS interface {
	Exists(id string) bool
	Put(id string, state interface{}) error
	Get(id string, state interface{}) error
	GetByPartialCompositeID(prefix string, attrs []string) (kvs.Iterator, error)
}

type Resolver

type Resolver struct {
	Name         string `yaml:"name,omitempty"`
	EnrollmentID string
	Default      bool
	GetIdentity  GetIdentityFunc
}

Resolver contains information about an identity and how to retrieve it.

type SignerService

type SignerService interface {
	IsMe(view.Identity) bool
	RegisterSigner(identity view.Identity, signer driver.Signer, verifier driver.Verifier) error
}

Jump to

Keyboard shortcuts

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