Documentation
¶
Index ¶
- type Attribute
- type AttributeDescriptor
- type BooleanAttribute
- type BooleanAttributeDescriptor
- type Credential
- type CredentialBuilder
- func (c CredentialBuilder) Build() (CredentialReceipt, error)
- func (c CredentialBuilder) WithBooleanAttribute(key string, value bool) CredentialBuilder
- func (c CredentialBuilder) WithDateAttribute(key string, value int64) CredentialBuilder
- func (c CredentialBuilder) WithDatetimeAttribute(key string, value int64) CredentialBuilder
- func (c CredentialBuilder) WithNumberAttribute(key string, value int64) CredentialBuilder
- func (c CredentialBuilder) WithStringAttribute(key string, value string) CredentialBuilder
- type CredentialOffer
- type CredentialOfferBody
- type CredentialOfferCredential
- type CredentialProof
- type CredentialReceipt
- type CredentialSchema
- type CredentialStatus
- type CredentialVerification
- type DateAttribute
- type DateAttributeDescriptor
- type DatetimeAttribute
- type DatetimeAttributeDescriptor
- type Identity
- type NumberAttribute
- type NumberAttributeDescriptor
- type Schema
- type SchemaBuilder
- func (c SchemaBuilder) AddBooleanAttribute(name string, technicalName string, description string) SchemaBuilder
- func (c SchemaBuilder) AddDateAttribute(name string, technicalName string, description string) SchemaBuilder
- func (c SchemaBuilder) AddDatetimeAttribute(name string, technicalName string, description string) SchemaBuilder
- func (c SchemaBuilder) AddNumberAttribute(name string, technicalName string, description string) SchemaBuilder
- func (c SchemaBuilder) AddStringAttribute(name string, technicalName string, description string) SchemaBuilder
- func (c SchemaBuilder) Build() (Schema, error)
- type StringAttribute
- type StringAttributeDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeDescriptor ¶
type BooleanAttribute ¶
type BooleanAttribute struct {
Attribute
}
func NewBooleanAttribute ¶
func NewBooleanAttribute(key string, value bool) BooleanAttribute
func NewBooleanAttributeFromProto ¶
func NewBooleanAttributeFromProto(s *proto.BooleanAttribute) BooleanAttribute
func (BooleanAttribute) ToProto ¶
func (s BooleanAttribute) ToProto() *proto.BooleanAttribute
type BooleanAttributeDescriptor ¶
type BooleanAttributeDescriptor struct {
AttributeDescriptor
}
func NewBooleanAttributeDescriptor ¶
func NewBooleanAttributeDescriptor(name string, technicalName string, description string) BooleanAttributeDescriptor
func NewBooleanAttributeDescriptorFromProto ¶
func NewBooleanAttributeDescriptorFromProto(s *proto.BooleanAttributeDefinition) BooleanAttributeDescriptor
func (BooleanAttributeDescriptor) ToProto ¶
func (s BooleanAttributeDescriptor) ToProto() *proto.BooleanAttributeDefinition
type Credential ¶
type Credential struct { Context []string Id string Type []string IssuanceDate string CredentialSubject interface{} CredentialStatus CredentialStatus Issuer string CredentialSchema CredentialSchema Proof CredentialProof }
func NewCredentialFromJson ¶
func NewCredentialFromJson(json string) (Credential, error)
func NewCredentialFromProto ¶
func NewCredentialFromProto(s *proto.Credential) Credential
func (Credential) ToJson ¶
func (c Credential) ToJson() (string, error)
func (Credential) ToProto ¶
func (c Credential) ToProto() *proto.Credential
type CredentialBuilder ¶
type CredentialBuilder struct {
// contains filtered or unexported fields
}
func NewCredentialBuilder ¶
func NewCredentialBuilder(schemaId string, holderKey string, configData *proto.ConfigData) CredentialBuilder
func (CredentialBuilder) Build ¶
func (c CredentialBuilder) Build() (CredentialReceipt, error)
func (CredentialBuilder) WithBooleanAttribute ¶
func (c CredentialBuilder) WithBooleanAttribute(key string, value bool) CredentialBuilder
func (CredentialBuilder) WithDateAttribute ¶
func (c CredentialBuilder) WithDateAttribute(key string, value int64) CredentialBuilder
func (CredentialBuilder) WithDatetimeAttribute ¶
func (c CredentialBuilder) WithDatetimeAttribute(key string, value int64) CredentialBuilder
func (CredentialBuilder) WithNumberAttribute ¶
func (c CredentialBuilder) WithNumberAttribute(key string, value int64) CredentialBuilder
func (CredentialBuilder) WithStringAttribute ¶ added in v2.5.7
func (c CredentialBuilder) WithStringAttribute(key string, value string) CredentialBuilder
type CredentialOffer ¶
type CredentialOffer struct { Thid string Body CredentialOfferBody From string To string }
func NewCredentialOfferFromJson ¶
func NewCredentialOfferFromJson(json string) (CredentialOffer, error)
func NewCredentialOfferFromProto ¶
func NewCredentialOfferFromProto(s *proto.CredentialOffer) CredentialOffer
func (CredentialOffer) ToJson ¶
func (c CredentialOffer) ToJson() (string, error)
func (CredentialOffer) ToProto ¶
func (c CredentialOffer) ToProto() *proto.CredentialOffer
type CredentialOfferBody ¶
type CredentialOfferBody struct { Url string Credentials []CredentialOfferCredential }
func NewCredentialOfferBodyFromProto ¶
func NewCredentialOfferBodyFromProto(s *proto.CredentialOfferBody) CredentialOfferBody
func (CredentialOfferBody) ToProto ¶
func (c CredentialOfferBody) ToProto() *proto.CredentialOfferBody
type CredentialOfferCredential ¶
func NewCredentialOfferCredentialsFromProto ¶
func NewCredentialOfferCredentialsFromProto(s *proto.CredentialOfferBodyCredentials) CredentialOfferCredential
func (CredentialOfferCredential) ToProto ¶
func (c CredentialOfferCredential) ToProto() *proto.CredentialOfferBodyCredentials
type CredentialProof ¶
type CredentialProof struct { BloockProof integrity.Proof SignatureProof authenticity.SignatureJws }
func NewCredentialProofFromProto ¶
func NewCredentialProofFromProto(s *proto.CredentialProof) CredentialProof
func (CredentialProof) ToProto ¶
func (c CredentialProof) ToProto() *proto.CredentialProof
type CredentialReceipt ¶
func NewCredentialReceiptFromProto ¶
func NewCredentialReceiptFromProto(s *proto.CredentialReceipt) CredentialReceipt
func (CredentialReceipt) ToProto ¶
func (c CredentialReceipt) ToProto() *proto.CredentialReceipt
type CredentialSchema ¶
func NewCredentialSchemaFromProto ¶
func NewCredentialSchemaFromProto(s *proto.CredentialSchema) CredentialSchema
func (CredentialSchema) ToProto ¶
func (c CredentialSchema) ToProto() *proto.CredentialSchema
type CredentialStatus ¶
func NewCredentialStatusFromProto ¶
func NewCredentialStatusFromProto(s *proto.CredentialStatus) CredentialStatus
func (CredentialStatus) ToProto ¶
func (c CredentialStatus) ToProto() *proto.CredentialStatus
type CredentialVerification ¶
func NewCredentialVerificationFromProto ¶
func NewCredentialVerificationFromProto(s *proto.CredentialVerification) CredentialVerification
func (CredentialVerification) ToProto ¶
func (c CredentialVerification) ToProto() *proto.CredentialVerification
type DateAttribute ¶
type DateAttribute struct {
Attribute
}
func NewDateAttribute ¶
func NewDateAttribute(key string, value int64) DateAttribute
func NewDateAttributeFromProto ¶
func NewDateAttributeFromProto(s *proto.DateAttribute) DateAttribute
func (DateAttribute) ToProto ¶
func (s DateAttribute) ToProto() *proto.DateAttribute
type DateAttributeDescriptor ¶
type DateAttributeDescriptor struct {
AttributeDescriptor
}
func NewDateAttributeDescriptor ¶
func NewDateAttributeDescriptor(name string, technicalName string, description string) DateAttributeDescriptor
func NewDateAttributeDescriptorFromProto ¶
func NewDateAttributeDescriptorFromProto(s *proto.DateAttributeDefinition) DateAttributeDescriptor
func (DateAttributeDescriptor) ToProto ¶
func (s DateAttributeDescriptor) ToProto() *proto.DateAttributeDefinition
type DatetimeAttribute ¶
type DatetimeAttribute struct {
Attribute
}
func NewDatetimeAttribute ¶
func NewDatetimeAttribute(key string, value int64) DatetimeAttribute
func NewDatetimeAttributeFromProto ¶
func NewDatetimeAttributeFromProto(s *proto.DateTimeAttribute) DatetimeAttribute
func (DatetimeAttribute) ToProto ¶
func (s DatetimeAttribute) ToProto() *proto.DateTimeAttribute
type DatetimeAttributeDescriptor ¶
type DatetimeAttributeDescriptor struct {
AttributeDescriptor
}
func NewDatetimeAttributeDescriptor ¶
func NewDatetimeAttributeDescriptor(name string, technicalName string, description string) DatetimeAttributeDescriptor
func NewDatetimeAttributeDescriptorFromProto ¶
func NewDatetimeAttributeDescriptorFromProto(s *proto.DateTimeAttributeDefinition) DatetimeAttributeDescriptor
func (DatetimeAttributeDescriptor) ToProto ¶
func (s DatetimeAttributeDescriptor) ToProto() *proto.DateTimeAttributeDefinition
type Identity ¶
func NewIdentityFromProto ¶
type NumberAttribute ¶
type NumberAttribute struct {
Attribute
}
func NewNumberAttribute ¶
func NewNumberAttribute(key string, value int64) NumberAttribute
func NewNumberAttributeFromProto ¶
func NewNumberAttributeFromProto(s *proto.NumberAttribute) NumberAttribute
func (NumberAttribute) ToProto ¶
func (s NumberAttribute) ToProto() *proto.NumberAttribute
type NumberAttributeDescriptor ¶
type NumberAttributeDescriptor struct {
AttributeDescriptor
}
func NewNumberAttributeDescriptor ¶
func NewNumberAttributeDescriptor(name string, technicalName string, description string) NumberAttributeDescriptor
func NewNumberAttributeDescriptorFromProto ¶
func NewNumberAttributeDescriptorFromProto(s *proto.NumberAttributeDefinition) NumberAttributeDescriptor
func (NumberAttributeDescriptor) ToProto ¶
func (s NumberAttributeDescriptor) ToProto() *proto.NumberAttributeDefinition
type Schema ¶
func NewSchemaFromProto ¶
type SchemaBuilder ¶
type SchemaBuilder struct {
// contains filtered or unexported fields
}
func NewSchemaBuilder ¶
func NewSchemaBuilder(displayName string, technicalName string, configData *proto.ConfigData) SchemaBuilder
func (SchemaBuilder) AddBooleanAttribute ¶
func (c SchemaBuilder) AddBooleanAttribute(name string, technicalName string, description string) SchemaBuilder
func (SchemaBuilder) AddDateAttribute ¶
func (c SchemaBuilder) AddDateAttribute(name string, technicalName string, description string) SchemaBuilder
func (SchemaBuilder) AddDatetimeAttribute ¶
func (c SchemaBuilder) AddDatetimeAttribute(name string, technicalName string, description string) SchemaBuilder
func (SchemaBuilder) AddNumberAttribute ¶
func (c SchemaBuilder) AddNumberAttribute(name string, technicalName string, description string) SchemaBuilder
func (SchemaBuilder) AddStringAttribute ¶ added in v2.5.7
func (c SchemaBuilder) AddStringAttribute(name string, technicalName string, description string) SchemaBuilder
func (SchemaBuilder) Build ¶
func (c SchemaBuilder) Build() (Schema, error)
type StringAttribute ¶ added in v2.5.7
type StringAttribute struct {
Attribute
}
func NewStringAttribute ¶ added in v2.5.7
func NewStringAttribute(key string, value string) StringAttribute
func NewStringAttributeFromProto ¶ added in v2.5.7
func NewStringAttributeFromProto(s *proto.StringAttribute) StringAttribute
func (StringAttribute) ToProto ¶ added in v2.5.7
func (s StringAttribute) ToProto() *proto.StringAttribute
type StringAttributeDescriptor ¶ added in v2.5.7
type StringAttributeDescriptor struct {
AttributeDescriptor
}
func NewStringAttributeDescriptor ¶ added in v2.5.7
func NewStringAttributeDescriptor(name string, technicalName string, description string) StringAttributeDescriptor
func NewStringAttributeDescriptorFromProto ¶ added in v2.5.7
func NewStringAttributeDescriptorFromProto(s *proto.StringAttributeDefinition) StringAttributeDescriptor
func (StringAttributeDescriptor) ToProto ¶ added in v2.5.7
func (s StringAttributeDescriptor) ToProto() *proto.StringAttributeDefinition
Source Files
¶
- attribute.go
- attribute_descriptor.go
- boolean_attribute.go
- boolean_attribute_descriptor.go
- credential.go
- credential_builder.go
- credential_offer.go
- credential_offer_body.go
- credential_offer_credentials.go
- credential_proof.go
- credential_receipt.go
- credential_schema.go
- credential_status.go
- credential_verification.go
- date_attribute.go
- date_attribute_descriptor.go
- datetime_attribute.go
- datetime_attribute_descriptor.go
- identity.go
- number_attribute.go
- number_attribute_descriptor.go
- schema.go
- schema_builder.go
- string_attribute.go
- string_attribute_descriptor.go
Click to show internal directories.
Click to hide internal directories.