Documentation
¶
Index ¶
- type GoogleprotobufAny
- func (m *GoogleprotobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GoogleprotobufAny) MarshalBinary() ([]byte, error)
- func (m GoogleprotobufAny) MarshalJSON() ([]byte, error)
- func (m *GoogleprotobufAny) UnmarshalBinary(b []byte) error
- func (m *GoogleprotobufAny) UnmarshalJSON(data []byte) error
- func (m *GoogleprotobufAny) Validate(formats strfmt.Registry) error
- type ProtobufNullValue
- type RPCStatus
- type V1alpha1CredentialEnvelopeType
- type V1alpha1CredentialSchema
- func (m *V1alpha1CredentialSchema) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1CredentialSchema) MarshalBinary() ([]byte, error)
- func (m *V1alpha1CredentialSchema) UnmarshalBinary(b []byte) error
- func (m *V1alpha1CredentialSchema) Validate(formats strfmt.Registry) error
- type V1alpha1CredentialStatus
- func (m *V1alpha1CredentialStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1CredentialStatus) MarshalBinary() ([]byte, error)
- func (m *V1alpha1CredentialStatus) UnmarshalBinary(b []byte) error
- func (m *V1alpha1CredentialStatus) Validate(formats strfmt.Registry) error
- type V1alpha1CredentialStatusPurpose
- type V1alpha1EnvelopedCredential
- func (m *V1alpha1EnvelopedCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1EnvelopedCredential) MarshalBinary() ([]byte, error)
- func (m *V1alpha1EnvelopedCredential) UnmarshalBinary(b []byte) error
- func (m *V1alpha1EnvelopedCredential) Validate(formats strfmt.Registry) error
- type V1alpha1ErrorInfo
- type V1alpha1ErrorReason
- type V1alpha1GenerateRequest
- func (m *V1alpha1GenerateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1GenerateRequest) MarshalBinary() ([]byte, error)
- func (m *V1alpha1GenerateRequest) UnmarshalBinary(b []byte) error
- func (m *V1alpha1GenerateRequest) Validate(formats strfmt.Registry) error
- type V1alpha1GenerateResponse
- func (m *V1alpha1GenerateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1GenerateResponse) MarshalBinary() ([]byte, error)
- func (m *V1alpha1GenerateResponse) UnmarshalBinary(b []byte) error
- func (m *V1alpha1GenerateResponse) Validate(formats strfmt.Registry) error
- type V1alpha1GetIssuerWellKnownResponse
- func (m *V1alpha1GetIssuerWellKnownResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1GetIssuerWellKnownResponse) MarshalBinary() ([]byte, error)
- func (m *V1alpha1GetIssuerWellKnownResponse) UnmarshalBinary(b []byte) error
- func (m *V1alpha1GetIssuerWellKnownResponse) Validate(formats strfmt.Registry) error
- type V1alpha1GetVcWellKnownResponse
- func (m *V1alpha1GetVcWellKnownResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1GetVcWellKnownResponse) MarshalBinary() ([]byte, error)
- func (m *V1alpha1GetVcWellKnownResponse) UnmarshalBinary(b []byte) error
- func (m *V1alpha1GetVcWellKnownResponse) Validate(formats strfmt.Registry) error
- type V1alpha1Issuer
- type V1alpha1IssuerAuthType
- type V1alpha1Jwk
- type V1alpha1Jwks
- type V1alpha1Proof
- type V1alpha1PublishRequest
- func (m *V1alpha1PublishRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1PublishRequest) MarshalBinary() ([]byte, error)
- func (m *V1alpha1PublishRequest) UnmarshalBinary(b []byte) error
- func (m *V1alpha1PublishRequest) Validate(formats strfmt.Registry) error
- type V1alpha1RegisterIssuerRequest
- func (m *V1alpha1RegisterIssuerRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1RegisterIssuerRequest) MarshalBinary() ([]byte, error)
- func (m *V1alpha1RegisterIssuerRequest) UnmarshalBinary(b []byte) error
- func (m *V1alpha1RegisterIssuerRequest) Validate(formats strfmt.Registry) error
- type V1alpha1RegisterIssuerResponse
- type V1alpha1ResolveRequest
- func (m *V1alpha1ResolveRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1ResolveRequest) MarshalBinary() ([]byte, error)
- func (m *V1alpha1ResolveRequest) UnmarshalBinary(b []byte) error
- func (m *V1alpha1ResolveRequest) Validate(formats strfmt.Registry) error
- type V1alpha1ResolveResponse
- func (m *V1alpha1ResolveResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1ResolveResponse) MarshalBinary() ([]byte, error)
- func (m *V1alpha1ResolveResponse) UnmarshalBinary(b []byte) error
- func (m *V1alpha1ResolveResponse) Validate(formats strfmt.Registry) error
- type V1alpha1ResolverMetadata
- func (m *V1alpha1ResolverMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1ResolverMetadata) MarshalBinary() ([]byte, error)
- func (m *V1alpha1ResolverMetadata) UnmarshalBinary(b []byte) error
- func (m *V1alpha1ResolverMetadata) Validate(formats strfmt.Registry) error
- type V1alpha1RevokeRequest
- type V1alpha1SearchRequest
- type V1alpha1SearchResponse
- func (m *V1alpha1SearchResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1SearchResponse) MarshalBinary() ([]byte, error)
- func (m *V1alpha1SearchResponse) UnmarshalBinary(b []byte) error
- func (m *V1alpha1SearchResponse) Validate(formats strfmt.Registry) error
- type V1alpha1Service
- type V1alpha1Time
- type V1alpha1VerifiableCredential
- func (m *V1alpha1VerifiableCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1VerifiableCredential) MarshalBinary() ([]byte, error)
- func (m *V1alpha1VerifiableCredential) UnmarshalBinary(b []byte) error
- func (m *V1alpha1VerifiableCredential) Validate(formats strfmt.Registry) error
- type V1alpha1VerificationMethod
- func (m *V1alpha1VerificationMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1VerificationMethod) MarshalBinary() ([]byte, error)
- func (m *V1alpha1VerificationMethod) UnmarshalBinary(b []byte) error
- func (m *V1alpha1VerificationMethod) Validate(formats strfmt.Registry) error
- type V1alpha1VerificationResult
- func (m *V1alpha1VerificationResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *V1alpha1VerificationResult) MarshalBinary() ([]byte, error)
- func (m *V1alpha1VerificationResult) UnmarshalBinary(b []byte) error
- func (m *V1alpha1VerificationResult) Validate(formats strfmt.Registry) error
- type V1alpha1VerifyRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleprotobufAny ¶
type GoogleprotobufAny struct {
// A URL/resource name that uniquely identifies the type of the serialized
// protocol buffer message. This string must contain at least
// one "/" character. The last segment of the URL's path must represent
// the fully qualified name of the type (as in
// `path/google.protobuf.Duration`). The name should be in a canonical form
// (e.g., leading "." is not accepted).
//
// In practice, teams usually precompile into the binary all types that they
// expect it to use in the context of Any. However, for URLs which use the
// scheme `http`, `https`, or no scheme, one can optionally set up a type
// server that maps type URLs to message definitions as follows:
//
// * If no scheme is provided, `https` is assumed.
// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
// value in binary format, or produce an error.
// * Applications are allowed to cache lookup results based on the
// URL, or have them precompiled into a binary to avoid any
// lookup. Therefore, binary compatibility needs to be preserved
// on changes to types. (Use versioned type names to manage
// breaking changes.)
//
// Note: this functionality is not currently available in the official
// protobuf release, and it is not used for type URLs beginning with
// type.googleapis.com. As of May 2023, there are no widely used type server
// implementations and no plans to implement one.
//
// Schemes other than `http`, `https` (or the empty scheme) might be
// used with implementation specific semantics.
AtType string `json:"@type,omitempty"`
// googleprotobuf any
GoogleprotobufAny map[string]any `json:"-"`
}
GoogleprotobufAny `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.
Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type.
Example 1: Pack and unpack a message in C++.
Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
...
}
Example 2: Pack and unpack a message in Java.
Foo foo = ...;
Any any = Any.pack(foo);
...
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
foo = any.unpack(Foo.getDefaultInstance());
}
Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
any.Pack(foo)
...
if any.Is(Foo.DESCRIPTOR):
any.Unpack(foo)
...
Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
if err != nil {
...
}
...
foo := &pb.Foo{}
if err := any.UnmarshalTo(foo); err != nil {
...
}
The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example "foo.bar.com/x/y.z" will yield type name "y.z".
JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example:
package google.profile;
message Person {
string first_name = 1;
string last_name = 2;
}
{
"@type": "type.googleapis.com/google.profile.Person",
"firstName": <string>,
"lastName": <string>
}
If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]):
{
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
swagger:model googleprotobufAny
func (*GoogleprotobufAny) ContextValidate ¶
ContextValidate validates this googleprotobuf any based on context it is used
func (*GoogleprotobufAny) MarshalBinary ¶
func (m *GoogleprotobufAny) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GoogleprotobufAny) MarshalJSON ¶
func (m GoogleprotobufAny) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with additional properties into a JSON object
func (*GoogleprotobufAny) UnmarshalBinary ¶
func (m *GoogleprotobufAny) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GoogleprotobufAny) UnmarshalJSON ¶
func (m *GoogleprotobufAny) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals this object with additional properties from JSON
type ProtobufNullValue ¶
type ProtobufNullValue string
ProtobufNullValue `NullValue` is a singleton enumeration to represent the null value for the `Value` type union.
The JSON representation for `NullValue` is JSON `null`.
- NULL_VALUE: Null value.
swagger:model protobufNullValue
const ( // ProtobufNullValueNULLVALUE captures enum value "NULL_VALUE" ProtobufNullValueNULLVALUE ProtobufNullValue = "NULL_VALUE" )
func NewProtobufNullValue ¶
func NewProtobufNullValue(value ProtobufNullValue) *ProtobufNullValue
func (ProtobufNullValue) ContextValidate ¶
ContextValidate validates this protobuf null value based on context it is used
func (ProtobufNullValue) Pointer ¶
func (m ProtobufNullValue) Pointer() *ProtobufNullValue
Pointer returns a pointer to a freshly-allocated ProtobufNullValue.
type RPCStatus ¶
type RPCStatus struct {
// code
Code int32 `json:"code,omitempty"`
// details
Details []*GoogleprotobufAny `json:"details"`
// message
Message string `json:"message,omitempty"`
}
RPCStatus rpc status
swagger:model rpcStatus
func (*RPCStatus) ContextValidate ¶
ContextValidate validate this rpc status based on the context it is used
func (*RPCStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (*RPCStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type V1alpha1CredentialEnvelopeType ¶
type V1alpha1CredentialEnvelopeType string
V1alpha1CredentialEnvelopeType The Envelope Type of the Credential. Multiple envelope types can be supported: Embedded Proof, JOSE, COSE etc.
- CREDENTIAL_ENVELOPE_TYPE_UNSPECIFIED: Unspecified Envelope Type.
- CREDENTIAL_ENVELOPE_TYPE_EMBEDDED_PROOF: Embedded Proof Envelope Type.
- CREDENTIAL_ENVELOPE_TYPE_JOSE: JOSE Envelope Type.
swagger:model v1alpha1CredentialEnvelopeType
const ( // V1alpha1CredentialEnvelopeTypeCREDENTIALENVELOPETYPEUNSPECIFIED captures enum value "CREDENTIAL_ENVELOPE_TYPE_UNSPECIFIED" V1alpha1CredentialEnvelopeTypeCREDENTIALENVELOPETYPEUNSPECIFIED V1alpha1CredentialEnvelopeType = "CREDENTIAL_ENVELOPE_TYPE_UNSPECIFIED" // V1alpha1CredentialEnvelopeTypeCREDENTIALENVELOPETYPEEMBEDDEDPROOF captures enum value "CREDENTIAL_ENVELOPE_TYPE_EMBEDDED_PROOF" V1alpha1CredentialEnvelopeTypeCREDENTIALENVELOPETYPEEMBEDDEDPROOF V1alpha1CredentialEnvelopeType = "CREDENTIAL_ENVELOPE_TYPE_EMBEDDED_PROOF" // V1alpha1CredentialEnvelopeTypeCREDENTIALENVELOPETYPEJOSE captures enum value "CREDENTIAL_ENVELOPE_TYPE_JOSE" V1alpha1CredentialEnvelopeTypeCREDENTIALENVELOPETYPEJOSE V1alpha1CredentialEnvelopeType = "CREDENTIAL_ENVELOPE_TYPE_JOSE" )
func NewV1alpha1CredentialEnvelopeType ¶
func NewV1alpha1CredentialEnvelopeType(value V1alpha1CredentialEnvelopeType) *V1alpha1CredentialEnvelopeType
func (V1alpha1CredentialEnvelopeType) ContextValidate ¶
func (m V1alpha1CredentialEnvelopeType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this v1alpha1 credential envelope type based on context it is used
func (V1alpha1CredentialEnvelopeType) Pointer ¶
func (m V1alpha1CredentialEnvelopeType) Pointer() *V1alpha1CredentialEnvelopeType
Pointer returns a pointer to a freshly-allocated V1alpha1CredentialEnvelopeType.
type V1alpha1CredentialSchema ¶
type V1alpha1CredentialSchema struct {
// The URL identifying the schema file
ID string `json:"id,omitempty"`
// Type specifies the type of the file
Type string `json:"type,omitempty"`
}
V1alpha1CredentialSchema CredentialSchema represents the credentialSchema property of a Verifiable Credential. more information can be found here
swagger:model v1alpha1CredentialSchema
func (*V1alpha1CredentialSchema) ContextValidate ¶
func (m *V1alpha1CredentialSchema) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this v1alpha1 credential schema based on context it is used
func (*V1alpha1CredentialSchema) MarshalBinary ¶
func (m *V1alpha1CredentialSchema) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1CredentialSchema) UnmarshalBinary ¶
func (m *V1alpha1CredentialSchema) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1CredentialStatus ¶
type V1alpha1CredentialStatus struct {
// The creation date and time of the status
CreatedAt V1alpha1Time `json:"createdAt,omitempty"`
// The URL identifying the schema file
ID string `json:"id,omitempty"`
// The value of the purpose for the status entry
Purpose *V1alpha1CredentialStatusPurpose `json:"purpose,omitempty"`
// Type specifies the type of the file
Type string `json:"type,omitempty"`
}
V1alpha1CredentialStatus CredentialStatus represents the credentialStatus property of a Verifiable Credential. more information can be found here
swagger:model v1alpha1CredentialStatus
func (*V1alpha1CredentialStatus) ContextValidate ¶
func (m *V1alpha1CredentialStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 credential status based on the context it is used
func (*V1alpha1CredentialStatus) MarshalBinary ¶
func (m *V1alpha1CredentialStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1CredentialStatus) UnmarshalBinary ¶
func (m *V1alpha1CredentialStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1CredentialStatusPurpose ¶
type V1alpha1CredentialStatusPurpose string
V1alpha1CredentialStatusPurpose The purpose of the status entry
- CREDENTIAL_STATUS_PURPOSE_UNSPECIFIED: Unspecified status purpose
- CREDENTIAL_STATUS_PURPOSE_REVOCATION: Used to cancel the validity of a verifiable credential.
This status is not reversible.
swagger:model v1alpha1CredentialStatusPurpose
const ( // V1alpha1CredentialStatusPurposeCREDENTIALSTATUSPURPOSEUNSPECIFIED captures enum value "CREDENTIAL_STATUS_PURPOSE_UNSPECIFIED" V1alpha1CredentialStatusPurposeCREDENTIALSTATUSPURPOSEUNSPECIFIED V1alpha1CredentialStatusPurpose = "CREDENTIAL_STATUS_PURPOSE_UNSPECIFIED" // V1alpha1CredentialStatusPurposeCREDENTIALSTATUSPURPOSEREVOCATION captures enum value "CREDENTIAL_STATUS_PURPOSE_REVOCATION" V1alpha1CredentialStatusPurposeCREDENTIALSTATUSPURPOSEREVOCATION V1alpha1CredentialStatusPurpose = "CREDENTIAL_STATUS_PURPOSE_REVOCATION" )
func NewV1alpha1CredentialStatusPurpose ¶
func NewV1alpha1CredentialStatusPurpose(value V1alpha1CredentialStatusPurpose) *V1alpha1CredentialStatusPurpose
func (V1alpha1CredentialStatusPurpose) ContextValidate ¶
func (m V1alpha1CredentialStatusPurpose) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this v1alpha1 credential status purpose based on context it is used
func (V1alpha1CredentialStatusPurpose) Pointer ¶
func (m V1alpha1CredentialStatusPurpose) Pointer() *V1alpha1CredentialStatusPurpose
Pointer returns a pointer to a freshly-allocated V1alpha1CredentialStatusPurpose.
type V1alpha1EnvelopedCredential ¶
type V1alpha1EnvelopedCredential struct {
// EnvelopeType specifies the type of the envelope used to store the credential.
EnvelopeType *V1alpha1CredentialEnvelopeType `json:"envelopeType,omitempty"`
// Value is the enveloped credential in the specified format.
Value string `json:"value,omitempty"`
}
V1alpha1EnvelopedCredential EnvelopedCredential represents a Credential enveloped in a specific format.
swagger:model v1alpha1EnvelopedCredential
func (*V1alpha1EnvelopedCredential) ContextValidate ¶
func (m *V1alpha1EnvelopedCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 enveloped credential based on the context it is used
func (*V1alpha1EnvelopedCredential) MarshalBinary ¶
func (m *V1alpha1EnvelopedCredential) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1EnvelopedCredential) UnmarshalBinary ¶
func (m *V1alpha1EnvelopedCredential) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1ErrorInfo ¶
type V1alpha1ErrorInfo struct {
// The message describing the error in a human-readable way. This
// field gives additional details about the error.
Message string `json:"message,omitempty"`
// The reason of the error, as defined by the ErrorReason enum.
// This is a constant unique value that helps identify the cause of
// the error.
Reason *V1alpha1ErrorReason `json:"reason,omitempty"`
}
V1alpha1ErrorInfo Describes the cause of the error with structured details.
swagger:model v1alpha1ErrorInfo
func (*V1alpha1ErrorInfo) ContextValidate ¶
ContextValidate validate this v1alpha1 error info based on the context it is used
func (*V1alpha1ErrorInfo) MarshalBinary ¶
func (m *V1alpha1ErrorInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1ErrorInfo) UnmarshalBinary ¶
func (m *V1alpha1ErrorInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1ErrorReason ¶
type V1alpha1ErrorReason string
V1alpha1ErrorReason Represents the reason for an error, providing a unique constant value for the error.
- ERROR_REASON_UNSPECIFIED: ERROR_REASON_UNSPECIFIED indicates that no specific error reason
has been specified.
- ERROR_REASON_INTERNAL: An internal error, this happens in case of unexpected condition or failure within the service
- ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_TYPE: The credential envelope type is invalid. For valid values refer to
the enum CredentialEnvelopeType.
- ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_VALUE_FORMAT: The credential envelope value format does not correspond to the format
specified in envelope_type.
- ERROR_REASON_INVALID_ISSUER: The issuer contains one or more invalid fields.
- ERROR_REASON_ISSUER_NOT_REGISTERED: The issuer is not registered in the Node.
- ERROR_REASON_INVALID_VERIFIABLE_CREDENTIAL: The Verifiable Credential is invalid, this can be related to either
invalid format or unable to verify the Data Integrity proof.
- ERROR_REASON_IDP_REQUIRED: The Identity Provider (IdP) is required for the operation, but it is not provided.
- ERROR_REASON_INVALID_PROOF: The proof is invalid
- ERROR_REASON_UNSUPPORTED_PROOF: The proof type is not supported
- ERROR_REASON_RESOLVER_METADATA_NOT_FOUND: Unable to resolve an ID to a ResolverMetadata
- ERROR_REASON_UNKNOWN_IDP: Unknown Identity Provider
- ERROR_REASON_ID_ALREADY_REGISTERED: The ID and Resolver Metadata are already registered in the system
- ERROR_REASON_VERIFIABLE_CREDENTIAL_REVOKED: The Verifiable Credential is revoked
swagger:model v1alpha1ErrorReason
const ( // V1alpha1ErrorReasonERRORREASONUNSPECIFIED captures enum value "ERROR_REASON_UNSPECIFIED" V1alpha1ErrorReasonERRORREASONUNSPECIFIED V1alpha1ErrorReason = "ERROR_REASON_UNSPECIFIED" // V1alpha1ErrorReasonERRORREASONINTERNAL captures enum value "ERROR_REASON_INTERNAL" V1alpha1ErrorReasonERRORREASONINTERNAL V1alpha1ErrorReason = "ERROR_REASON_INTERNAL" // V1alpha1ErrorReasonERRORREASONINVALIDCREDENTIALENVELOPETYPE captures enum value "ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_TYPE" V1alpha1ErrorReasonERRORREASONINVALIDCREDENTIALENVELOPETYPE V1alpha1ErrorReason = "ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_TYPE" // V1alpha1ErrorReasonERRORREASONINVALIDCREDENTIALENVELOPEVALUEFORMAT captures enum value "ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_VALUE_FORMAT" V1alpha1ErrorReasonERRORREASONINVALIDCREDENTIALENVELOPEVALUEFORMAT V1alpha1ErrorReason = "ERROR_REASON_INVALID_CREDENTIAL_ENVELOPE_VALUE_FORMAT" // V1alpha1ErrorReasonERRORREASONINVALIDISSUER captures enum value "ERROR_REASON_INVALID_ISSUER" V1alpha1ErrorReasonERRORREASONINVALIDISSUER V1alpha1ErrorReason = "ERROR_REASON_INVALID_ISSUER" // V1alpha1ErrorReasonERRORREASONISSUERNOTREGISTERED captures enum value "ERROR_REASON_ISSUER_NOT_REGISTERED" V1alpha1ErrorReasonERRORREASONISSUERNOTREGISTERED V1alpha1ErrorReason = "ERROR_REASON_ISSUER_NOT_REGISTERED" // V1alpha1ErrorReasonERRORREASONINVALIDVERIFIABLECREDENTIAL captures enum value "ERROR_REASON_INVALID_VERIFIABLE_CREDENTIAL" V1alpha1ErrorReasonERRORREASONINVALIDVERIFIABLECREDENTIAL V1alpha1ErrorReason = "ERROR_REASON_INVALID_VERIFIABLE_CREDENTIAL" // V1alpha1ErrorReasonERRORREASONIDPREQUIRED captures enum value "ERROR_REASON_IDP_REQUIRED" V1alpha1ErrorReasonERRORREASONIDPREQUIRED V1alpha1ErrorReason = "ERROR_REASON_IDP_REQUIRED" // V1alpha1ErrorReasonERRORREASONINVALIDPROOF captures enum value "ERROR_REASON_INVALID_PROOF" V1alpha1ErrorReasonERRORREASONINVALIDPROOF V1alpha1ErrorReason = "ERROR_REASON_INVALID_PROOF" // V1alpha1ErrorReasonERRORREASONUNSUPPORTEDPROOF captures enum value "ERROR_REASON_UNSUPPORTED_PROOF" V1alpha1ErrorReasonERRORREASONUNSUPPORTEDPROOF V1alpha1ErrorReason = "ERROR_REASON_UNSUPPORTED_PROOF" // V1alpha1ErrorReasonERRORREASONRESOLVERMETADATANOTFOUND captures enum value "ERROR_REASON_RESOLVER_METADATA_NOT_FOUND" V1alpha1ErrorReasonERRORREASONRESOLVERMETADATANOTFOUND V1alpha1ErrorReason = "ERROR_REASON_RESOLVER_METADATA_NOT_FOUND" // V1alpha1ErrorReasonERRORREASONUNKNOWNIDP captures enum value "ERROR_REASON_UNKNOWN_IDP" V1alpha1ErrorReasonERRORREASONUNKNOWNIDP V1alpha1ErrorReason = "ERROR_REASON_UNKNOWN_IDP" // V1alpha1ErrorReasonERRORREASONIDALREADYREGISTERED captures enum value "ERROR_REASON_ID_ALREADY_REGISTERED" V1alpha1ErrorReasonERRORREASONIDALREADYREGISTERED V1alpha1ErrorReason = "ERROR_REASON_ID_ALREADY_REGISTERED" // V1alpha1ErrorReasonERRORREASONVERIFIABLECREDENTIALREVOKED captures enum value "ERROR_REASON_VERIFIABLE_CREDENTIAL_REVOKED" V1alpha1ErrorReasonERRORREASONVERIFIABLECREDENTIALREVOKED V1alpha1ErrorReason = "ERROR_REASON_VERIFIABLE_CREDENTIAL_REVOKED" )
func NewV1alpha1ErrorReason ¶
func NewV1alpha1ErrorReason(value V1alpha1ErrorReason) *V1alpha1ErrorReason
func (V1alpha1ErrorReason) ContextValidate ¶
ContextValidate validates this v1alpha1 error reason based on context it is used
func (V1alpha1ErrorReason) Pointer ¶
func (m V1alpha1ErrorReason) Pointer() *V1alpha1ErrorReason
Pointer returns a pointer to a freshly-allocated V1alpha1ErrorReason.
type V1alpha1GenerateRequest ¶
type V1alpha1GenerateRequest struct {
// The Issuer details
Issuer *V1alpha1Issuer `json:"issuer,omitempty"`
// Optional Proof of ownership of the Issuer's provided id
// This should be provided when the Issuer is provided by an external IdP
// Example: a signed JWT
Proof *V1alpha1Proof `json:"proof,omitempty"`
}
V1alpha1GenerateRequest Generate an Id and its corresponding ResolverMetadata for the specified Issuer For external IdPs, the Issuer should be provided with a Proof of ownership of the Issuer's provided id
swagger:model v1alpha1GenerateRequest
func (*V1alpha1GenerateRequest) ContextValidate ¶
func (m *V1alpha1GenerateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 generate request based on the context it is used
func (*V1alpha1GenerateRequest) MarshalBinary ¶
func (m *V1alpha1GenerateRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1GenerateRequest) UnmarshalBinary ¶
func (m *V1alpha1GenerateRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1GenerateResponse ¶
type V1alpha1GenerateResponse struct {
// The ResolverMetadata corresponding to the generated Id
ResolverMetadata *V1alpha1ResolverMetadata `json:"resolverMetadata,omitempty"`
}
V1alpha1GenerateResponse Returns the Generated Id and its corresponding ResolverMetadata
swagger:model v1alpha1GenerateResponse
func (*V1alpha1GenerateResponse) ContextValidate ¶
func (m *V1alpha1GenerateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 generate response based on the context it is used
func (*V1alpha1GenerateResponse) MarshalBinary ¶
func (m *V1alpha1GenerateResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1GenerateResponse) UnmarshalBinary ¶
func (m *V1alpha1GenerateResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1GetIssuerWellKnownResponse ¶
type V1alpha1GetIssuerWellKnownResponse struct {
// The well-known Json Web Key Set (JWKS) document
Jwks *V1alpha1Jwks `json:"jwks,omitempty"`
}
V1alpha1GetIssuerWellKnownResponse Returns the content of the well-known JWKS document
swagger:model v1alpha1GetIssuerWellKnownResponse
func (*V1alpha1GetIssuerWellKnownResponse) ContextValidate ¶
func (m *V1alpha1GetIssuerWellKnownResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 get issuer well known response based on the context it is used
func (*V1alpha1GetIssuerWellKnownResponse) MarshalBinary ¶
func (m *V1alpha1GetIssuerWellKnownResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1GetIssuerWellKnownResponse) UnmarshalBinary ¶
func (m *V1alpha1GetIssuerWellKnownResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1GetVcWellKnownResponse ¶
type V1alpha1GetVcWellKnownResponse struct {
// The list of VCs for the specified Id
Vcs []*V1alpha1EnvelopedCredential `json:"vcs"`
}
V1alpha1GetVcWellKnownResponse Returns the well-known VCs for an Id
swagger:model v1alpha1GetVcWellKnownResponse
func (*V1alpha1GetVcWellKnownResponse) ContextValidate ¶
func (m *V1alpha1GetVcWellKnownResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 get vc well known response based on the context it is used
func (*V1alpha1GetVcWellKnownResponse) MarshalBinary ¶
func (m *V1alpha1GetVcWellKnownResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1GetVcWellKnownResponse) UnmarshalBinary ¶
func (m *V1alpha1GetVcWellKnownResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1Issuer ¶
type V1alpha1Issuer struct {
// This field specifies the authentication mechanism used by the issuer.
// It determines whether the issuer uses an external Identity Provider (IDP)
// or a self-issued key for authentication.
AuthType *V1alpha1IssuerAuthType `json:"authType,omitempty"`
// The common name of the issuer
// Could be a FQDN or a FQDA
CommonName string `json:"commonName,omitempty"`
// The organization of the issuer
Organization string `json:"organization,omitempty"`
// This field is optional
// The private key of the issuer in JWK format
PrivateKey *V1alpha1Jwk `json:"privateKey,omitempty"`
// This field is optional
// The keys of the issuer in JWK format
// The public key is used to verify the signature of the different claims
PublicKey *V1alpha1Jwk `json:"publicKey,omitempty"`
// The sub organization of the issuer
SubOrganization string `json:"subOrganization,omitempty"`
// This will be set to true when issuer provides a valid proof of ownership
// of the common name on registration
Verified bool `json:"verified,omitempty"`
}
V1alpha1Issuer A Identity Issuer
swagger:model v1alpha1Issuer
func (*V1alpha1Issuer) ContextValidate ¶
ContextValidate validate this v1alpha1 issuer based on the context it is used
func (*V1alpha1Issuer) MarshalBinary ¶
func (m *V1alpha1Issuer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1Issuer) UnmarshalBinary ¶
func (m *V1alpha1Issuer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1IssuerAuthType ¶
type V1alpha1IssuerAuthType string
V1alpha1IssuerAuthType IssuerAuthType represents the type of authentication mechanism used by the issuer.
- ISSUER_AUTH_TYPE_UNSPECIFIED: ISSUER_AUTH_TYPE_UNSPECIFIED represents an unspecified or unknown authentication type.
- ISSUER_AUTH_TYPE_IDP: ISSUER_AUTH_TYPE_IDP indicates that the issuer uses an external Identity Provider (IDP)
to authenticate
- ISSUER_AUTH_TYPE_SELF: ISSUER_AUTH_TYPE_SELF indicates that the issuer uses a self-issued key for authentication.
This is typically used in scenarios where the issuer doesn't rely on an IdP.
swagger:model v1alpha1IssuerAuthType
const ( // V1alpha1IssuerAuthTypeISSUERAUTHTYPEUNSPECIFIED captures enum value "ISSUER_AUTH_TYPE_UNSPECIFIED" V1alpha1IssuerAuthTypeISSUERAUTHTYPEUNSPECIFIED V1alpha1IssuerAuthType = "ISSUER_AUTH_TYPE_UNSPECIFIED" // V1alpha1IssuerAuthTypeISSUERAUTHTYPEIDP captures enum value "ISSUER_AUTH_TYPE_IDP" V1alpha1IssuerAuthTypeISSUERAUTHTYPEIDP V1alpha1IssuerAuthType = "ISSUER_AUTH_TYPE_IDP" // V1alpha1IssuerAuthTypeISSUERAUTHTYPESELF captures enum value "ISSUER_AUTH_TYPE_SELF" V1alpha1IssuerAuthTypeISSUERAUTHTYPESELF V1alpha1IssuerAuthType = "ISSUER_AUTH_TYPE_SELF" )
func NewV1alpha1IssuerAuthType ¶
func NewV1alpha1IssuerAuthType(value V1alpha1IssuerAuthType) *V1alpha1IssuerAuthType
func (V1alpha1IssuerAuthType) ContextValidate ¶
ContextValidate validates this v1alpha1 issuer auth type based on context it is used
func (V1alpha1IssuerAuthType) Pointer ¶
func (m V1alpha1IssuerAuthType) Pointer() *V1alpha1IssuerAuthType
Pointer returns a pointer to a freshly-allocated V1alpha1IssuerAuthType.
type V1alpha1Jwk ¶
type V1alpha1Jwk struct {
// ALG represents the algorithm intended for use with the key.
// Example algorithms for Post-Quantum ML-DSA family:
// "ML-DSA-44", "ML-DSA-65", "ML-DSA-87".
// Some example algorithms are "RS256", "RS384", "RS512" for RSA algorithms.
Alg string `json:"alg,omitempty"`
// The private exponent for the RSA kty.
D string `json:"d,omitempty"`
// The first factor CRT exponent for the RSA private key.
Dp string `json:"dp,omitempty"`
// The second factor CRT exponent for the RSA private key.
Dq string `json:"dq,omitempty"`
// The exponent for the RSA public key.
E string `json:"e,omitempty"`
// KID represents the key ID.
// It is used to match a specific key.
Kid string `json:"kid,omitempty"`
// KTY represents the key type parameter.
// It specifies the family of quantum algorithms used with the key,
// such as "AKP" for post quantum algorithms
// or "RSA" for non quantum algorithms.
Kty string `json:"kty,omitempty"`
// The modulus for the RSA public key.
N string `json:"n,omitempty"`
// The first prime factor for the RSA private key.
P string `json:"p,omitempty"`
// The private key for the AKP kty.
Priv string `json:"priv,omitempty"`
// The public key for the AKP kty.
Pub string `json:"pub,omitempty"`
// The second prime factor for the RSA private key.
Q string `json:"q,omitempty"`
// The first CRT coefficient for the RSA private key.
Qi string `json:"qi,omitempty"`
// Seed used to derive keys for ML-DSA alg.
Seed string `json:"seed,omitempty"`
// Use represents the intended use of the key.
// Some example values are "enc" and "sig".
Use string `json:"use,omitempty"`
}
V1alpha1Jwk JWK represents: - a JSON Web Key (JWK) with the respective fields specific to RSA algorithms. - a Quantum JSON Web Key (QJWK) with the respective fields specific to AKP algorithms.
swagger:model v1alpha1Jwk
func (*V1alpha1Jwk) ContextValidate ¶
ContextValidate validates this v1alpha1 jwk based on context it is used
func (*V1alpha1Jwk) MarshalBinary ¶
func (m *V1alpha1Jwk) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1Jwk) UnmarshalBinary ¶
func (m *V1alpha1Jwk) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1Jwks ¶
type V1alpha1Jwks struct {
// Keys represents the list of JSON Web Keys.
Keys []*V1alpha1Jwk `json:"keys"`
}
V1alpha1Jwks JWKS represents a set of JSON Web Keys (JWKs).
swagger:model v1alpha1Jwks
func (*V1alpha1Jwks) ContextValidate ¶
ContextValidate validate this v1alpha1 jwks based on the context it is used
func (*V1alpha1Jwks) MarshalBinary ¶
func (m *V1alpha1Jwks) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1Jwks) UnmarshalBinary ¶
func (m *V1alpha1Jwks) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1Proof ¶
type V1alpha1Proof struct {
// The proof purpose
ProofPurpose string `json:"proofPurpose,omitempty"`
// The proof value
ProofValue string `json:"proofValue,omitempty"`
// The type of the proof
Type string `json:"type,omitempty"`
}
V1alpha1Proof A data integrity proof provides information about the proof mechanism, parameters required to verify that proof, and the proof value itself.
swagger:model v1alpha1Proof
func (*V1alpha1Proof) ContextValidate ¶
ContextValidate validates this v1alpha1 proof based on context it is used
func (*V1alpha1Proof) MarshalBinary ¶
func (m *V1alpha1Proof) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1Proof) UnmarshalBinary ¶
func (m *V1alpha1Proof) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1PublishRequest ¶
type V1alpha1PublishRequest struct {
// Optional Proof of ownership of the Issuer's ResolverMetadata
// This should be provided when the Issuer is provided by an external IdP
// Example: a signed JWT
Proof *V1alpha1Proof `json:"proof,omitempty"`
// The Verifiable Credential to publish
Vc *V1alpha1EnvelopedCredential `json:"vc,omitempty"`
}
V1alpha1PublishRequest Request to publish an issued Verifiable Credential
swagger:model v1alpha1PublishRequest
func (*V1alpha1PublishRequest) ContextValidate ¶
func (m *V1alpha1PublishRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 publish request based on the context it is used
func (*V1alpha1PublishRequest) MarshalBinary ¶
func (m *V1alpha1PublishRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1PublishRequest) UnmarshalBinary ¶
func (m *V1alpha1PublishRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1RegisterIssuerRequest ¶
type V1alpha1RegisterIssuerRequest struct {
// The Issuer to register.
Issuer *V1alpha1Issuer `json:"issuer,omitempty"`
// Optional Proof of ownership of the Issuer's common_name
// This should be provided when the Issuer is provided by an external IdP
// Example: a signed JWT
Proof *V1alpha1Proof `json:"proof,omitempty"`
}
V1alpha1RegisterIssuerRequest Request to register an issuer
swagger:model v1alpha1RegisterIssuerRequest
func (*V1alpha1RegisterIssuerRequest) ContextValidate ¶
func (m *V1alpha1RegisterIssuerRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 register issuer request based on the context it is used
func (*V1alpha1RegisterIssuerRequest) MarshalBinary ¶
func (m *V1alpha1RegisterIssuerRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1RegisterIssuerRequest) UnmarshalBinary ¶
func (m *V1alpha1RegisterIssuerRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1RegisterIssuerResponse ¶
type V1alpha1RegisterIssuerResponse any
V1alpha1RegisterIssuerResponse Returns a registration response for the issuer
Empty response ¶
swagger:model v1alpha1RegisterIssuerResponse
type V1alpha1ResolveRequest ¶
type V1alpha1ResolveRequest struct {
// Id is the identifier.
ID string `json:"id,omitempty"`
}
V1alpha1ResolveRequest Resolve a specified Id to its corresponding ResolverMetadata
swagger:model v1alpha1ResolveRequest
func (*V1alpha1ResolveRequest) ContextValidate ¶
func (m *V1alpha1ResolveRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this v1alpha1 resolve request based on context it is used
func (*V1alpha1ResolveRequest) MarshalBinary ¶
func (m *V1alpha1ResolveRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1ResolveRequest) UnmarshalBinary ¶
func (m *V1alpha1ResolveRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1ResolveResponse ¶
type V1alpha1ResolveResponse struct {
// The ResolverMetadata resolved from the Id
ResolverMetadata *V1alpha1ResolverMetadata `json:"resolverMetadata,omitempty"`
}
V1alpha1ResolveResponse Returns the ResolverMetadata corresponding to the specified Id
swagger:model v1alpha1ResolveResponse
func (*V1alpha1ResolveResponse) ContextValidate ¶
func (m *V1alpha1ResolveResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 resolve response based on the context it is used
func (*V1alpha1ResolveResponse) MarshalBinary ¶
func (m *V1alpha1ResolveResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1ResolveResponse) UnmarshalBinary ¶
func (m *V1alpha1ResolveResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1ResolverMetadata ¶
type V1alpha1ResolverMetadata struct {
// AssertionMethod is used to specify how the entity represented by the ID
// is expected to express claims, such as for the purposes of issuing a VCs.
AssertionMethod []string `json:"assertionMethod"`
// A controller is an entity that is authorized to make changes to a Resolver Metadata.
Controller string `json:"controller,omitempty"`
// The ID
// The metadata below is related as claims to the ID
ID string `json:"id,omitempty"`
// Service is used in ResolverMetadatas to express ways of communicating with
// the node that published the document.
Service []*V1alpha1Service `json:"service"`
// VerificationMethod is a list of cryptographic public keys, which can be used
// to authenticate or authorize interactions with the entities represented by the ID.
VerificationMethod []*V1alpha1VerificationMethod `json:"verificationMethod"`
}
V1alpha1ResolverMetadata ResolverMetadata represents a set of data describing the ID including mechanisms such as:
- cryptographic public keys - used to authenticate itself and prove association with the ID
- service - ways of communicating with the node that published the document
A ResolverMetadata can be retrieved by resolving an ID.
swagger:model v1alpha1ResolverMetadata
func (*V1alpha1ResolverMetadata) ContextValidate ¶
func (m *V1alpha1ResolverMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 resolver metadata based on the context it is used
func (*V1alpha1ResolverMetadata) MarshalBinary ¶
func (m *V1alpha1ResolverMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1ResolverMetadata) UnmarshalBinary ¶
func (m *V1alpha1ResolverMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1RevokeRequest ¶
type V1alpha1RevokeRequest struct {
// Required Proof of ownership of the Issuer's ResolverMetadata
// This should be provided when the Issuer is provided by an external IdP
// Example: a signed JWT
Proof *V1alpha1Proof `json:"proof,omitempty"`
// The Verifiable Credential to revoked
Vc *V1alpha1EnvelopedCredential `json:"vc,omitempty"`
}
V1alpha1RevokeRequest Request to revoke a published Verifiable Credential
swagger:model v1alpha1RevokeRequest
func (*V1alpha1RevokeRequest) ContextValidate ¶
ContextValidate validate this v1alpha1 revoke request based on the context it is used
func (*V1alpha1RevokeRequest) MarshalBinary ¶
func (m *V1alpha1RevokeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1RevokeRequest) UnmarshalBinary ¶
func (m *V1alpha1RevokeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1SearchRequest ¶
type V1alpha1SearchRequest struct {
// The credential content representation in JSON-LD format
Content string `json:"content,omitempty"`
// ID is the identifier.
ID string `json:"id,omitempty"`
// Schema is the schema of the credential contained in the VC
Schema *V1alpha1CredentialSchema `json:"schema,omitempty"`
}
V1alpha1SearchRequest Request to search for VCs based on the specified criteria
swagger:model v1alpha1SearchRequest
func (*V1alpha1SearchRequest) ContextValidate ¶
ContextValidate validate this v1alpha1 search request based on the context it is used
func (*V1alpha1SearchRequest) MarshalBinary ¶
func (m *V1alpha1SearchRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1SearchRequest) UnmarshalBinary ¶
func (m *V1alpha1SearchRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1SearchResponse ¶
type V1alpha1SearchResponse struct {
// The list of VCs that match the search criteria
Vcs []*V1alpha1EnvelopedCredential `json:"vcs"`
}
V1alpha1SearchResponse Returns the VCs that match the search criteria
swagger:model v1alpha1SearchResponse
func (*V1alpha1SearchResponse) ContextValidate ¶
func (m *V1alpha1SearchResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 search response based on the context it is used
func (*V1alpha1SearchResponse) MarshalBinary ¶
func (m *V1alpha1SearchResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1SearchResponse) UnmarshalBinary ¶
func (m *V1alpha1SearchResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1Service ¶
type V1alpha1Service struct {
// ServiceEndpoint is a network address, such as an HTTP URL, of the
// node.
ServiceEndpoint []string `json:"serviceEndpoint"`
}
V1alpha1Service Service is used in ResolverMetadata to express ways of communicating with the node that published the document.
swagger:model v1alpha1Service
func (*V1alpha1Service) ContextValidate ¶
ContextValidate validates this v1alpha1 service based on context it is used
func (*V1alpha1Service) MarshalBinary ¶
func (m *V1alpha1Service) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1Service) UnmarshalBinary ¶
func (m *V1alpha1Service) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1VerifiableCredential ¶
type V1alpha1VerifiableCredential struct {
// https://www.w3.org/TR/vc-data-model/#credential-subject
Content any `json:"content,omitempty"`
// https://www.w3.org/TR/vc-data-model/#contexts
Context []string `json:"context"`
// https://www.w3.org/TR/vc-data-model-2.0/#data-schemas
CredentialSchema []*V1alpha1CredentialSchema `json:"credentialSchema"`
// https://www.w3.org/TR/vc-data-model-2.0/#status
CredentialStatus []*V1alpha1CredentialStatus `json:"credentialStatus"`
// https://www.w3.org/TR/vc-data-model/#expiration
ExpirationDate string `json:"expirationDate,omitempty"`
// https://www.w3.org/TR/vc-data-model/#identifiers
ID string `json:"id,omitempty"`
// https://www.w3.org/TR/vc-data-model/#issuance-date
IssuanceDate string `json:"issuanceDate,omitempty"`
// https://www.w3.org/TR/vc-data-model/#issuer
Issuer string `json:"issuer,omitempty"`
// https://w3id.org/security#proof
Proof *V1alpha1Proof `json:"proof,omitempty"`
// https://www.w3.org/TR/vc-data-model/#dfn-type
Type []string `json:"type"`
}
V1alpha1VerifiableCredential DataModel represents the W3C Verifiable Credential Data Model defined here
swagger:model v1alpha1VerifiableCredential
func (*V1alpha1VerifiableCredential) ContextValidate ¶
func (m *V1alpha1VerifiableCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 verifiable credential based on the context it is used
func (*V1alpha1VerifiableCredential) MarshalBinary ¶
func (m *V1alpha1VerifiableCredential) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1VerifiableCredential) UnmarshalBinary ¶
func (m *V1alpha1VerifiableCredential) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1VerificationMethod ¶
type V1alpha1VerificationMethod struct {
// A unique id of the verification method.
ID string `json:"id,omitempty"`
// The public key used for the verification method.
PublicKeyJwk *V1alpha1Jwk `json:"publicKeyJwk,omitempty"`
}
V1alpha1VerificationMethod VerificationMethod expresses verification methods, such as cryptographic public keys, which can be used to authenticate or authorize interactions with the entities represented by the ID. It is a part of the ResolverMetadata.
swagger:model v1alpha1VerificationMethod
func (*V1alpha1VerificationMethod) ContextValidate ¶
func (m *V1alpha1VerificationMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 verification method based on the context it is used
func (*V1alpha1VerificationMethod) MarshalBinary ¶
func (m *V1alpha1VerificationMethod) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1VerificationMethod) UnmarshalBinary ¶
func (m *V1alpha1VerificationMethod) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1VerificationResult ¶
type V1alpha1VerificationResult struct {
// A controlled identifier document that is associated with the verification method
// used to verify the securing mechanism (i,e the DID)
ControlledIdentifierDocument string `json:"controlledIdentifierDocument,omitempty"`
// The controller of the verification method associated with the securing mechanism,
// usually it represents the issuer.
Controller string `json:"controller,omitempty"`
// A conforming document which represents the Verifiable Credential
Document *V1alpha1VerifiableCredential `json:"document,omitempty"`
// A list represents zero or more errors generated by the verification process
Errors []*V1alpha1ErrorInfo `json:"errors"`
// The media type of the Verifiable Credential (ex: application/vc)
MediaType string `json:"mediaType,omitempty"`
// A boolean status
Status bool `json:"status,omitempty"`
// A list represents zero or more warnings generated by the verification process
Warnings []*V1alpha1ErrorInfo `json:"warnings"`
}
V1alpha1VerificationResult The result returned from the verification process defined here
swagger:model v1alpha1VerificationResult
func (*V1alpha1VerificationResult) ContextValidate ¶
func (m *V1alpha1VerificationResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this v1alpha1 verification result based on the context it is used
func (*V1alpha1VerificationResult) MarshalBinary ¶
func (m *V1alpha1VerificationResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1VerificationResult) UnmarshalBinary ¶
func (m *V1alpha1VerificationResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1alpha1VerifyRequest ¶
type V1alpha1VerifyRequest struct {
// The Verifiable Credential to verify
Vc *V1alpha1EnvelopedCredential `json:"vc,omitempty"`
}
V1alpha1VerifyRequest Request to verify an existing Verifiable Credential
swagger:model v1alpha1VerifyRequest
func (*V1alpha1VerifyRequest) ContextValidate ¶
ContextValidate validate this v1alpha1 verify request based on the context it is used
func (*V1alpha1VerifyRequest) MarshalBinary ¶
func (m *V1alpha1VerifyRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1alpha1VerifyRequest) UnmarshalBinary ¶
func (m *V1alpha1VerifyRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- googleprotobuf_any.go
- protobuf_null_value.go
- rpc_status.go
- v1alpha1_credential_envelope_type.go
- v1alpha1_credential_schema.go
- v1alpha1_credential_status.go
- v1alpha1_credential_status_purpose.go
- v1alpha1_enveloped_credential.go
- v1alpha1_error_info.go
- v1alpha1_error_reason.go
- v1alpha1_generate_request.go
- v1alpha1_generate_response.go
- v1alpha1_get_issuer_well_known_response.go
- v1alpha1_get_vc_well_known_response.go
- v1alpha1_issuer.go
- v1alpha1_issuer_auth_type.go
- v1alpha1_jwk.go
- v1alpha1_jwks.go
- v1alpha1_proof.go
- v1alpha1_publish_request.go
- v1alpha1_register_issuer_request.go
- v1alpha1_register_issuer_response.go
- v1alpha1_resolve_request.go
- v1alpha1_resolve_response.go
- v1alpha1_resolver_metadata.go
- v1alpha1_revoke_request.go
- v1alpha1_search_request.go
- v1alpha1_search_response.go
- v1alpha1_service.go
- v1alpha1_time.go
- v1alpha1_verifiable_credential.go
- v1alpha1_verification_method.go
- v1alpha1_verification_result.go
- v1alpha1_verify_request.go