vdri

package
v0.1.3-0...-617a0de Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InvalidRequestErrorCode is typically a code for invalid requests
	InvalidRequestErrorCode = command.Code(iota + command.VDRI)

	// CreatePublicDIDError is for failures while creating public DIDs
	CreatePublicDIDError
)

Error codes

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

Command contains command operations provided by vdri controller

func New

func New(ctx provider) *Command

New returns new vdri controller command instance

func (*Command) CreatePublicDID

func (o *Command) CreatePublicDID(rw io.Writer, req io.Reader) command.Error

CreatePublicDID creates new public DID using agent VDRI

func (*Command) GetHandlers

func (o *Command) GetHandlers() []command.Handler

GetHandlers returns list of all commands supported by this controller command

type CreatePublicDIDArgs

type CreatePublicDIDArgs struct {
	// Params for creating public DID
	Method string `json:"method"`

	// RequestHeader to be included while submitting request to http binding URL
	RequestHeader string `json:"header"`
}

CreatePublicDIDArgs contains parameters for creating new public DID

type CreatePublicDIDResponse

type CreatePublicDIDResponse struct {
	// TODO return base64-encoded raw bytes of the DID doc [Issue: #855]
	DID *did.Doc `json:"did"`
}

CreatePublicDIDResponse for returning public DID created

Jump to

Keyboard shortcuts

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