Documentation
¶
Index ¶
- Constants
- type Command
- func (o *Command) CreatePublicDID(rw io.Writer, req io.Reader) command.Error
- func (o *Command) GetDID(rw io.Writer, req io.Reader) command.Error
- func (o *Command) GetDIDRecords(rw io.Writer, req io.Reader) command.Error
- func (o *Command) GetHandlers() []command.Handler
- func (o *Command) ResolveDID(rw io.Writer, req io.Reader) command.Error
- func (o *Command) SaveDID(rw io.Writer, req io.Reader) command.Error
- type CreatePublicDIDArgs
- type CreatePublicDIDResponse
- type DIDArgs
- type DIDRecordResult
- type Document
- type IDArg
- type NameArg
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 // SaveDIDErrorCode for save did error SaveDIDErrorCode // GetDIDErrorCode for get did error GetDIDErrorCode // ResolveDIDErrorCode for get did error ResolveDIDErrorCode )
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 (*Command) CreatePublicDID ¶
CreatePublicDID creates new public DID using agent VDRI
func (*Command) GetDIDRecords ¶ added in v0.1.3
GetDIDRecords retrieves the did doc containing name and didID. //TODO Add pagination feature #1566
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command
func (*Command) ResolveDID ¶ added in v0.1.3
ResolveDID resolve did
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 {
DID json.RawMessage `json:"did"`
}
CreatePublicDIDResponse for returning public DID created
type DIDArgs ¶ added in v0.1.3
DIDArgs is model for did doc with fields related to command features.
type DIDRecordResult ¶ added in v0.1.3
DIDRecordResult holds the did doc records.
type Document ¶ added in v0.1.3
type Document struct {
DID json.RawMessage `json:"did,omitempty"`
}
Document is model for did document.
Click to show internal directories.
Click to hide internal directories.