service

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	RawRequest(req []byte) ([]byte, error)
	Availability(req *structs.AvailabilityRequest) (*structs.Availability, error)
	KeyInfo() (*structs.KeyManager, error)
}

func NewSKD

func NewSKD(sdk Storage) Service

type Storage added in v1.2.0

type Storage interface {
	SendRawRequest(req []byte) ([]byte, error)
	GetAvailability(req []byte) (*structs.AvailabilityResponse, error)
	GetCurrentKeyInfo(req []byte) (*structs.KeyInfoResponse, error)
	GetKeyData() (*client.KeyData, error)
	Request(requestBytes []byte, logAttributes map[string]string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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