Documentation ¶
Index ¶
- type Authorization
- type AuthorizedQuery
- func (m *AuthorizedQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AuthorizedQuery) ID() string
- func (m *AuthorizedQuery) MarshalBinary() ([]byte, error)
- func (m AuthorizedQuery) MarshalJSON() ([]byte, error)
- func (m *AuthorizedQuery) SetID(val string)
- func (m *AuthorizedQuery) SetType(val string)
- func (m *AuthorizedQuery) Type() string
- func (m *AuthorizedQuery) UnmarshalBinary(b []byte) error
- func (m *AuthorizedQuery) UnmarshalJSON(raw []byte) error
- func (m *AuthorizedQuery) Validate(formats strfmt.Registry) error
- type Caveat
- type Comparison
- func (m *Comparison) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *Comparison) MarshalBinary() ([]byte, error)
- func (m Comparison) MarshalJSON() ([]byte, error)
- func (m *Comparison) Op() Operator
- func (m *Comparison) SetOp(val Operator)
- func (m *Comparison) UnmarshalBinary(b []byte) error
- func (m *Comparison) UnmarshalJSON(raw []byte) error
- func (m *Comparison) Validate(formats strfmt.Registry) error
- type ComparisonResult
- type Config
- type DocQuery
- func (m *DocQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DocQuery) ID() string
- func (m *DocQuery) MarshalBinary() ([]byte, error)
- func (m DocQuery) MarshalJSON() ([]byte, error)
- func (m *DocQuery) SetID(val string)
- func (m *DocQuery) SetType(val string)
- func (m *DocQuery) Type() string
- func (m *DocQuery) UnmarshalBinary(b []byte) error
- func (m *DocQuery) UnmarshalJSON(raw []byte) error
- func (m *DocQuery) Validate(formats strfmt.Registry) error
- type DocQueryAO1AuthTokens
- type EqOp
- func (m *EqOp) Args() []Query
- func (m *EqOp) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EqOp) MarshalBinary() ([]byte, error)
- func (m EqOp) MarshalJSON() ([]byte, error)
- func (m *EqOp) SetArgs(val []Query)
- func (m *EqOp) SetType(val string)
- func (m *EqOp) Type() string
- func (m *EqOp) UnmarshalBinary(b []byte) error
- func (m *EqOp) UnmarshalJSON(raw []byte) error
- func (m *EqOp) Validate(formats strfmt.Registry) error
- type Error
- type ExpiryCaveat
- func (m *ExpiryCaveat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ExpiryCaveat) MarshalBinary() ([]byte, error)
- func (m ExpiryCaveat) MarshalJSON() ([]byte, error)
- func (m *ExpiryCaveat) SetType(val string)
- func (m *ExpiryCaveat) Type() string
- func (m *ExpiryCaveat) UnmarshalBinary(b []byte) error
- func (m *ExpiryCaveat) UnmarshalJSON(raw []byte) error
- func (m *ExpiryCaveat) Validate(formats strfmt.Registry) error
- type Extract
- func (m *Extract) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *Extract) MarshalBinary() ([]byte, error)
- func (m Extract) MarshalJSON() ([]byte, error)
- func (m *Extract) Queries() []Query
- func (m *Extract) SetQueries(val []Query)
- func (m *Extract) UnmarshalBinary(b []byte) error
- func (m *Extract) UnmarshalJSON(raw []byte) error
- func (m *Extract) Validate(formats strfmt.Registry) error
- type ExtractResp
- type ExtractRespDocumentsItems0
- func (m *ExtractRespDocumentsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ExtractRespDocumentsItems0) MarshalBinary() ([]byte, error)
- func (m *ExtractRespDocumentsItems0) UnmarshalBinary(b []byte) error
- func (m *ExtractRespDocumentsItems0) Validate(formats strfmt.Registry) error
- type Operator
- type Query
- type Scope
- func (m *Scope) Caveats() []Caveat
- func (m *Scope) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *Scope) MarshalBinary() ([]byte, error)
- func (m Scope) MarshalJSON() ([]byte, error)
- func (m *Scope) SetCaveats(val []Caveat)
- func (m *Scope) UnmarshalBinary(b []byte) error
- func (m *Scope) UnmarshalJSON(raw []byte) error
- func (m *Scope) Validate(formats strfmt.Registry) error
- type ScopeAuthTokens
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization struct { // An opaque authorization token authorizing the requesting party to perform a comparison // referencing the document in the `scope`. // AuthToken string `json:"authToken,omitempty"` // The authorization's unique ID. ID string `json:"id,omitempty"` // KeyID in the format of a DID URL that identifies the party granted authorization. // Required: true RequestingParty *string `json:"requestingParty"` // scope // Required: true Scope *Scope `json:"scope"` }
Authorization An authorization object encodes the permissions granted to a third party. Its `scope` details the allowed action and the object on which the action will be performed. The `requestingParty` is the third party allowed to perform those actions.
The `authToken` is an opaque tokens granting the `requestingParty` the priviledge of running a comparison with the document identified in `scope` at the remote Confidential Storage Hub.
Example: {"requestingParty":"did:example:party_doing_comparison","scope":[{"actions":["compare"],"caveats":[{"duration":600,"type":"expiry"}],"docID":"batphone","vaultID":"did:example:123"}]}
swagger:model Authorization
func (*Authorization) ContextValidate ¶
ContextValidate validate this authorization based on the context it is used
func (*Authorization) MarshalBinary ¶
func (m *Authorization) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Authorization) UnmarshalBinary ¶
func (m *Authorization) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AuthorizedQuery ¶
type AuthorizedQuery struct { // auth token // Required: true AuthToken *string `json:"authToken"` // contains filtered or unexported fields }
AuthorizedQuery AuthorizedQuery is a query that has been pre-authorized by another Comparator. The AuthorizedQuery's `authToken` is the authorization token handed back by the other Comparator authorizing the comparison on a document.
swagger:model AuthorizedQuery
func (*AuthorizedQuery) ContextValidate ¶
ContextValidate validate this authorized query based on the context it is used
func (*AuthorizedQuery) MarshalBinary ¶
func (m *AuthorizedQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (AuthorizedQuery) MarshalJSON ¶
func (m AuthorizedQuery) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*AuthorizedQuery) SetID ¶
func (m *AuthorizedQuery) SetID(val string)
SetID sets the id of this subtype
func (*AuthorizedQuery) SetType ¶
func (m *AuthorizedQuery) SetType(val string)
SetType sets the type of this subtype
func (*AuthorizedQuery) Type ¶
func (m *AuthorizedQuery) Type() string
Type gets the type of this subtype
func (*AuthorizedQuery) UnmarshalBinary ¶
func (m *AuthorizedQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*AuthorizedQuery) UnmarshalJSON ¶
func (m *AuthorizedQuery) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type Caveat ¶
type Caveat interface { runtime.Validatable runtime.ContextValidatable // type // Required: true Type() string SetType(string) }
Caveat Caveats place constraints on the scope of an authorization. For example, an authorization may allow to compare a document but only for a certain length of time (caveat).
swagger:discriminator Caveat type
func UnmarshalCaveat ¶
UnmarshalCaveat unmarshals polymorphic Caveat
type Comparison ¶
type Comparison struct {
// contains filtered or unexported fields
}
Comparison A comparison is a request to compare two or more documents.
Comparisons have an operator that determines the kind of comparison to be performed.
Example: {"op":{"args":[{"authTokens":{"edv":"21tDAKCERh95uGgKbJNHYp","kms":"bcehfew7h32f32h7af3"},"docID":"batphone","type":"DocQuery","vaultID":"did:example:123"},{"authToken":"123456789abcdefghi","type":"AuthorizedQuery"}],"type":"EqOp"}}
swagger:model Comparison
func (*Comparison) ContextValidate ¶
ContextValidate validate this comparison based on the context it is used
func (*Comparison) MarshalBinary ¶
func (m *Comparison) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (Comparison) MarshalJSON ¶
func (m Comparison) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Comparison) SetOp ¶
func (m *Comparison) SetOp(val Operator)
SetOp sets the op of this base type
func (*Comparison) UnmarshalBinary ¶
func (m *Comparison) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*Comparison) UnmarshalJSON ¶
func (m *Comparison) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type ComparisonResult ¶
type ComparisonResult struct { // result Result bool `json:"result,omitempty"` }
ComparisonResult comparison result
swagger:model ComparisonResult
func (*ComparisonResult) ContextValidate ¶
ContextValidate validates this comparison result based on context it is used
func (*ComparisonResult) MarshalBinary ¶
func (m *ComparisonResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ComparisonResult) UnmarshalBinary ¶
func (m *ComparisonResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Config ¶
type Config struct { // The comparator's authentication key's keyID in the format of a DID URL. AuthKeyURL string `json:"authKeyURL,omitempty"` // The comparator's unique DID. // Required: true Did *string `json:"did"` // A JWK Set containing the primary public/private key pair. // Required: true Key interface{} `json:"key"` }
Config config
swagger:model Config
func (*Config) ContextValidate ¶
ContextValidate validates this config based on context it is used
func (*Config) MarshalBinary ¶
MarshalBinary interface implementation
func (*Config) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DocQuery ¶
type DocQuery struct { // auth tokens // Required: true AuthTokens *DocQueryAO1AuthTokens `json:"authTokens"` // By default, a DocQuery identifies a document in its entirety, which means the entire contents of the // document are used in the comparison. `docAttrPath` is a JSONPath that allows a _portion_ of the // document to be used during the comparison. // DocAttrPath string `json:"docAttrPath,omitempty"` // an identifier for a document stored in the Vault Server. // Required: true DocID *string `json:"docID"` // vault ID // Required: true VaultID *string `json:"vaultID"` // contains filtered or unexported fields }
DocQuery DocQuery identifies a document by directly referencing the document's Vault Server vaultID and docID. It also contains the necessary authorization tokens to access the document at the remote Confidential Storage vault and decrypt with the WebKMS key.
swagger:model DocQuery
func (*DocQuery) ContextValidate ¶
ContextValidate validate this doc query based on the context it is used
func (*DocQuery) MarshalBinary ¶
MarshalBinary interface implementation
func (DocQuery) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*DocQuery) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*DocQuery) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type DocQueryAO1AuthTokens ¶
type DocQueryAO1AuthTokens struct { // edv Edv string `json:"edv,omitempty"` // kms Kms string `json:"kms,omitempty"` }
DocQueryAO1AuthTokens doc query a o1 auth tokens
swagger:model DocQueryAO1AuthTokens
func (*DocQueryAO1AuthTokens) ContextValidate ¶
ContextValidate validates this doc query a o1 auth tokens based on context it is used
func (*DocQueryAO1AuthTokens) MarshalBinary ¶
func (m *DocQueryAO1AuthTokens) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DocQueryAO1AuthTokens) UnmarshalBinary ¶
func (m *DocQueryAO1AuthTokens) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EqOp ¶
type EqOp struct {
// contains filtered or unexported fields
}
EqOp eq op
swagger:model EqOp
func (*EqOp) ContextValidate ¶
ContextValidate validate this eq op based on the context it is used
func (*EqOp) MarshalBinary ¶
MarshalBinary interface implementation
func (EqOp) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*EqOp) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*EqOp) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type Error ¶
type Error struct { // err message ErrMessage string `json:"errMessage,omitempty"` }
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ExpiryCaveat ¶
type ExpiryCaveat struct { // Duration (in seconds) for which this authorization will remain valid. Duration int64 `json:"duration,omitempty"` }
ExpiryCaveat expiry caveat
swagger:model ExpiryCaveat
func (*ExpiryCaveat) ContextValidate ¶
ContextValidate validate this expiry caveat based on the context it is used
func (*ExpiryCaveat) MarshalBinary ¶
func (m *ExpiryCaveat) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ExpiryCaveat) MarshalJSON ¶
func (m ExpiryCaveat) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ExpiryCaveat) SetType ¶
func (m *ExpiryCaveat) SetType(val string)
SetType sets the type of this subtype
func (*ExpiryCaveat) UnmarshalBinary ¶
func (m *ExpiryCaveat) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ExpiryCaveat) UnmarshalJSON ¶
func (m *ExpiryCaveat) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type Extract ¶
type Extract struct {
// contains filtered or unexported fields
}
Extract extract
swagger:model Extract
func (*Extract) ContextValidate ¶
ContextValidate validate this extract based on the context it is used
func (*Extract) MarshalBinary ¶
MarshalBinary interface implementation
func (Extract) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Extract) SetQueries ¶
SetQueries sets the queries of this base type
func (*Extract) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Extract) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type ExtractResp ¶
type ExtractResp struct { // documents // Required: true Documents []*ExtractRespDocumentsItems0 `json:"documents"` }
ExtractResp extract resp
swagger:model ExtractResp
func (*ExtractResp) ContextValidate ¶
ContextValidate validate this extract resp based on the context it is used
func (*ExtractResp) MarshalBinary ¶
func (m *ExtractResp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExtractResp) UnmarshalBinary ¶
func (m *ExtractResp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ExtractRespDocumentsItems0 ¶
type ExtractRespDocumentsItems0 struct { // contents Contents interface{} `json:"contents,omitempty"` // id ID string `json:"id,omitempty"` }
ExtractRespDocumentsItems0 extract resp documents items0
swagger:model ExtractRespDocumentsItems0
func (*ExtractRespDocumentsItems0) ContextValidate ¶
func (m *ExtractRespDocumentsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this extract resp documents items0 based on context it is used
func (*ExtractRespDocumentsItems0) MarshalBinary ¶
func (m *ExtractRespDocumentsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExtractRespDocumentsItems0) UnmarshalBinary ¶
func (m *ExtractRespDocumentsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Operator ¶
type Operator interface { runtime.Validatable runtime.ContextValidatable // type // Required: true Type() string SetType(string) }
Operator Operators indicate the kind of comparison operation to be performed.
swagger:discriminator Operator type
func UnmarshalOperator ¶
UnmarshalOperator unmarshals polymorphic Operator
type Query ¶
type Query interface { runtime.Validatable runtime.ContextValidatable // id ID() string SetID(string) // type // Required: true Type() string SetType(string) }
Query A query identifies a document to be compared.
swagger:discriminator Query type
func UnmarshalQuery ¶
UnmarshalQuery unmarshals polymorphic Query
type Scope ¶
type Scope struct { // actions // Required: true Actions []string `json:"actions"` // auth tokens // Required: true AuthTokens *ScopeAuthTokens `json:"authTokens"` // Optional json path. Authorizes the comparison of a portion of the document. DocAttrPath string `json:"docAttrPath,omitempty"` // an identifier for a document stored in the Vault Server. // Required: true DocID *string `json:"docID"` // the Vault Server ID (DID) VaultID string `json:"vaultID,omitempty"` // contains filtered or unexported fields }
Scope scope
swagger:model Scope
func (*Scope) ContextValidate ¶
ContextValidate validate this scope based on the context it is used
func (*Scope) MarshalBinary ¶
MarshalBinary interface implementation
func (Scope) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Scope) SetCaveats ¶
SetCaveats sets the caveats of this base type
func (*Scope) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Scope) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type ScopeAuthTokens ¶
type ScopeAuthTokens struct { // edv Edv string `json:"edv,omitempty"` // kms Kms string `json:"kms,omitempty"` }
ScopeAuthTokens scope auth tokens
swagger:model ScopeAuthTokens
func (*ScopeAuthTokens) ContextValidate ¶
ContextValidate validates this scope auth tokens based on context it is used
func (*ScopeAuthTokens) MarshalBinary ¶
func (m *ScopeAuthTokens) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ScopeAuthTokens) UnmarshalBinary ¶
func (m *ScopeAuthTokens) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation