submission

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	ID     string                      `json:"id" validate:"required"`
	Path   string                      `json:"path" validate:"required"`
	Format definition.CredentialFormat `json:"format" validate:"required"`
}

type PresentationSubmission

type PresentationSubmission struct {
	ID            string       `json:"id" validate:"required"`
	DefinitionID  string       `json:"definition_id" validate:"required"`
	Locale        string       `json:"locale,omitempty"`
	DescriptorMap []Descriptor `json:"descriptor_map" validate:"required"`
}

type PresentationSubmissionBuilder

type PresentationSubmissionBuilder struct {
	Submission PresentationSubmission
}

func NewPresentationSubmissionBuilder

func NewPresentationSubmissionBuilder(definitionID string) *PresentationSubmissionBuilder

func (*PresentationSubmissionBuilder) AddDescriptor

func (p *PresentationSubmissionBuilder) AddDescriptor(d Descriptor) error

func (*PresentationSubmissionBuilder) Build

func (*PresentationSubmissionBuilder) SetDefinitionID added in v0.1.3

func (p *PresentationSubmissionBuilder) SetDefinitionID(definitionID string)

func (*PresentationSubmissionBuilder) SetID added in v0.1.3

func (*PresentationSubmissionBuilder) SetLocale

func (p *PresentationSubmissionBuilder) SetLocale(locale string)

type PresentationSubmissionHolder

type PresentationSubmissionHolder struct {
	PresentationSubmission `json:"presentation_submission" validate:"required"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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