Documentation
¶
Index ¶
- Constants
- type ConsistencyProof
- type Error
- type InclusionProof
- type LogEntry
- type LogEntryAnon
- type LogInfo
- type LogInfoSignedTreeHead
- type ProposedEntry
- type Rekord
- func (m *Rekord) Kind() string
- func (m *Rekord) MarshalBinary() ([]byte, error)
- func (m Rekord) MarshalJSON() ([]byte, error)
- func (m *Rekord) SetKind(val string)
- func (m *Rekord) UnmarshalBinary(b []byte) error
- func (m *Rekord) UnmarshalJSON(raw []byte) error
- func (m *Rekord) Validate(formats strfmt.Registry) error
- type RekordSchema
- type RekordV001Schema
- type RekordV001SchemaData
- type RekordV001SchemaDataHash
- type RekordV001SchemaSignature
- type RekordV001SchemaSignaturePublicKey
- type Rpm
- type RpmSchema
- type RpmV001Schema
- type RpmV001SchemaPackage
- type RpmV001SchemaPackageHash
- type RpmV001SchemaPublicKey
- type SearchIndex
- type SearchIndexPublicKey
- type SearchLogQuery
- func (m *SearchLogQuery) Entries() []ProposedEntry
- func (m *SearchLogQuery) MarshalBinary() ([]byte, error)
- func (m SearchLogQuery) MarshalJSON() ([]byte, error)
- func (m *SearchLogQuery) SetEntries(val []ProposedEntry)
- func (m *SearchLogQuery) UnmarshalBinary(b []byte) error
- func (m *SearchLogQuery) UnmarshalJSON(raw []byte) error
- func (m *SearchLogQuery) Validate(formats strfmt.Registry) error
Constants ¶
const ( // RekordV001SchemaSignatureFormatPgp captures enum value "pgp" RekordV001SchemaSignatureFormatPgp string = "pgp" // RekordV001SchemaSignatureFormatMinisign captures enum value "minisign" RekordV001SchemaSignatureFormatMinisign string = "minisign" // RekordV001SchemaSignatureFormatX509 captures enum value "x509" RekordV001SchemaSignatureFormatX509 string = "x509" // RekordV001SchemaSignatureFormatSSH captures enum value "ssh" RekordV001SchemaSignatureFormatSSH string = "ssh" )
const ( // SearchIndexPublicKeyFormatPgp captures enum value "pgp" SearchIndexPublicKeyFormatPgp string = "pgp" // SearchIndexPublicKeyFormatX509 captures enum value "x509" SearchIndexPublicKeyFormatX509 string = "x509" // SearchIndexPublicKeyFormatMinisign captures enum value "minisign" SearchIndexPublicKeyFormatMinisign string = "minisign" // SearchIndexPublicKeyFormatSSH captures enum value "ssh" SearchIndexPublicKeyFormatSSH string = "ssh" )
const ( // RekordV001SchemaDataHashAlgorithmSha256 captures enum value "sha256" RekordV001SchemaDataHashAlgorithmSha256 string = "sha256" )
const ( // RpmV001SchemaPackageHashAlgorithmSha256 captures enum value "sha256" RpmV001SchemaPackageHashAlgorithmSha256 string = "sha256" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsistencyProof ¶
type ConsistencyProof struct {
// hashes
// Required: true
Hashes []string `json:"hashes"`
// The hash value stored at the root of the merkle tree at the time the proof was generated
// Required: true
// Pattern: ^[0-9a-fA-F]{64}$
RootHash *string `json:"rootHash"`
}
ConsistencyProof consistency proof
swagger:model ConsistencyProof
func (*ConsistencyProof) MarshalBinary ¶
func (m *ConsistencyProof) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ConsistencyProof) UnmarshalBinary ¶
func (m *ConsistencyProof) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
Code int64 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
}
Error error
swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type InclusionProof ¶
type InclusionProof struct {
// A list of hashes required to compute the inclusion proof, sorted in order from leaf to root
// Required: true
Hashes []string `json:"hashes"`
// The index of the entry in the transparency log
// Required: true
// Minimum: 0
LogIndex *int64 `json:"logIndex"`
// The hash value stored at the root of the merkle tree at the time the proof was generated
// Required: true
// Pattern: ^[0-9a-fA-F]{64}$
RootHash *string `json:"rootHash"`
// The size of the merkle tree at the time the inclusion proof was generated
// Required: true
// Minimum: 1
TreeSize *int64 `json:"treeSize"`
}
InclusionProof inclusion proof
swagger:model InclusionProof
func (*InclusionProof) MarshalBinary ¶
func (m *InclusionProof) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InclusionProof) UnmarshalBinary ¶
func (m *InclusionProof) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LogEntryAnon ¶
type LogEntryAnon struct {
// body
// Required: true
Body interface{} `json:"body"`
// integrated time
IntegratedTime int64 `json:"integratedTime,omitempty"`
// log index
// Minimum: 0
LogIndex *int64 `json:"logIndex,omitempty"`
}
LogEntryAnon log entry anon
swagger:model LogEntryAnon
func (*LogEntryAnon) MarshalBinary ¶
func (m *LogEntryAnon) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LogEntryAnon) UnmarshalBinary ¶
func (m *LogEntryAnon) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LogInfo ¶
type LogInfo struct {
// The current hash value stored at the root of the merkle tree
// Required: true
// Pattern: ^[0-9a-fA-F]{64}$
RootHash *string `json:"rootHash"`
// signed tree head
// Required: true
SignedTreeHead *LogInfoSignedTreeHead `json:"signedTreeHead"`
// The current number of nodes in the merkle tree
// Required: true
// Minimum: 1
TreeSize *int64 `json:"treeSize"`
}
LogInfo log info
swagger:model LogInfo
func (*LogInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*LogInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LogInfoSignedTreeHead ¶
type LogInfoSignedTreeHead struct {
// Key hint
// Required: true
// Format: byte
KeyHint *strfmt.Base64 `json:"keyHint"`
// Log root
// Required: true
// Format: byte
LogRoot *strfmt.Base64 `json:"logRoot"`
// Signature for log root
// Required: true
// Format: byte
Signature *strfmt.Base64 `json:"signature"`
}
LogInfoSignedTreeHead The current signed tree head
swagger:model LogInfoSignedTreeHead
func (*LogInfoSignedTreeHead) MarshalBinary ¶
func (m *LogInfoSignedTreeHead) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LogInfoSignedTreeHead) UnmarshalBinary ¶
func (m *LogInfoSignedTreeHead) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProposedEntry ¶
type ProposedEntry interface {
runtime.Validatable
// kind
// Required: true
Kind() string
SetKind(string)
}
ProposedEntry proposed entry
swagger:discriminator ProposedEntry kind
func UnmarshalProposedEntry ¶
UnmarshalProposedEntry unmarshals polymorphic ProposedEntry
func UnmarshalProposedEntrySlice ¶
func UnmarshalProposedEntrySlice(reader io.Reader, consumer runtime.Consumer) ([]ProposedEntry, error)
UnmarshalProposedEntrySlice unmarshals polymorphic slices of ProposedEntry
type Rekord ¶
type Rekord struct {
// api version
// Required: true
// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
APIVersion *string `json:"apiVersion"`
// spec
// Required: true
Spec RekordSchema `json:"spec"`
}
Rekord Rekord object
swagger:model rekord
func (*Rekord) MarshalBinary ¶
MarshalBinary interface implementation
func (Rekord) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Rekord) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Rekord) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type RekordSchema ¶
type RekordSchema interface{}
RekordSchema Rekor Schema
Schema for Rekord objects ¶
swagger:model rekordSchema
type RekordV001Schema ¶
type RekordV001Schema struct {
// data
// Required: true
Data *RekordV001SchemaData `json:"data"`
// Arbitrary content to be included in the verifiable entry in the transparency log
ExtraData interface{} `json:"extraData,omitempty"`
// signature
// Required: true
Signature *RekordV001SchemaSignature `json:"signature"`
}
RekordV001Schema Rekor v0.0.1 Schema
Schema for Rekord object ¶
swagger:model rekordV001Schema
func (*RekordV001Schema) MarshalBinary ¶
func (m *RekordV001Schema) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RekordV001Schema) UnmarshalBinary ¶
func (m *RekordV001Schema) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RekordV001SchemaData ¶
type RekordV001SchemaData struct {
// Specifies the content inline within the document
// Format: byte
Content strfmt.Base64 `json:"content,omitempty"`
// hash
Hash *RekordV001SchemaDataHash `json:"hash,omitempty"`
// Specifies the location of the content; if this is specified, a hash value must also be provided
// Format: uri
URL strfmt.URI `json:"url,omitempty"`
}
RekordV001SchemaData Information about the content associated with the entry
swagger:model RekordV001SchemaData
func (*RekordV001SchemaData) MarshalBinary ¶
func (m *RekordV001SchemaData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RekordV001SchemaData) UnmarshalBinary ¶
func (m *RekordV001SchemaData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RekordV001SchemaDataHash ¶
type RekordV001SchemaDataHash struct {
// The hashing function used to compute the hash value
// Required: true
// Enum: [sha256]
Algorithm *string `json:"algorithm"`
// The hash value for the content
// Required: true
Value *string `json:"value"`
}
RekordV001SchemaDataHash Specifies the hash algorithm and value for the content
swagger:model RekordV001SchemaDataHash
func (*RekordV001SchemaDataHash) MarshalBinary ¶
func (m *RekordV001SchemaDataHash) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RekordV001SchemaDataHash) UnmarshalBinary ¶
func (m *RekordV001SchemaDataHash) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RekordV001SchemaSignature ¶
type RekordV001SchemaSignature struct {
// Specifies the content of the signature inline within the document
// Format: byte
Content strfmt.Base64 `json:"content,omitempty"`
// Specifies the format of the signature
// Enum: [pgp minisign x509 ssh]
Format string `json:"format,omitempty"`
// public key
PublicKey *RekordV001SchemaSignaturePublicKey `json:"publicKey,omitempty"`
// Specifies the location of the signature
// Format: uri
URL strfmt.URI `json:"url,omitempty"`
}
RekordV001SchemaSignature Information about the detached signature associated with the entry
swagger:model RekordV001SchemaSignature
func (*RekordV001SchemaSignature) MarshalBinary ¶
func (m *RekordV001SchemaSignature) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RekordV001SchemaSignature) UnmarshalBinary ¶
func (m *RekordV001SchemaSignature) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RekordV001SchemaSignaturePublicKey ¶
type RekordV001SchemaSignaturePublicKey struct {
// Specifies the content of the public key inline within the document
// Format: byte
Content strfmt.Base64 `json:"content,omitempty"`
// Specifies the location of the public key
// Format: uri
URL strfmt.URI `json:"url,omitempty"`
}
RekordV001SchemaSignaturePublicKey The public key that can verify the signature
swagger:model RekordV001SchemaSignaturePublicKey
func (*RekordV001SchemaSignaturePublicKey) MarshalBinary ¶
func (m *RekordV001SchemaSignaturePublicKey) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RekordV001SchemaSignaturePublicKey) UnmarshalBinary ¶
func (m *RekordV001SchemaSignaturePublicKey) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Rpm ¶
type Rpm struct {
// api version
// Required: true
// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
APIVersion *string `json:"apiVersion"`
// spec
// Required: true
Spec RpmSchema `json:"spec"`
}
Rpm RPM object
swagger:model rpm
func (*Rpm) MarshalBinary ¶
MarshalBinary interface implementation
func (Rpm) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Rpm) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Rpm) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type RpmSchema ¶
type RpmSchema interface{}
RpmSchema RPM Schema
Schema for RPM objects ¶
swagger:model rpmSchema
type RpmV001Schema ¶
type RpmV001Schema struct {
// Arbitrary content to be included in the verifiable entry in the transparency log
ExtraData interface{} `json:"extraData,omitempty"`
// package
// Required: true
Package *RpmV001SchemaPackage `json:"package"`
// public key
// Required: true
PublicKey *RpmV001SchemaPublicKey `json:"publicKey"`
}
RpmV001Schema RPM v0.0.1 Schema
Schema for RPM entries ¶
swagger:model rpmV001Schema
func (*RpmV001Schema) MarshalBinary ¶
func (m *RpmV001Schema) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RpmV001Schema) UnmarshalBinary ¶
func (m *RpmV001Schema) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RpmV001SchemaPackage ¶
type RpmV001SchemaPackage struct {
// Specifies the package inline within the document
// Format: byte
Content strfmt.Base64 `json:"content,omitempty"`
// hash
Hash *RpmV001SchemaPackageHash `json:"hash,omitempty"`
// Values of the RPM headers
Headers map[string]string `json:"headers,omitempty"`
// Specifies the location of the package; if this is specified, a hash value must also be provided
// Format: uri
URL strfmt.URI `json:"url,omitempty"`
}
RpmV001SchemaPackage Information about the package associated with the entry
swagger:model RpmV001SchemaPackage
func (*RpmV001SchemaPackage) MarshalBinary ¶
func (m *RpmV001SchemaPackage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RpmV001SchemaPackage) UnmarshalBinary ¶
func (m *RpmV001SchemaPackage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RpmV001SchemaPackageHash ¶
type RpmV001SchemaPackageHash struct {
// The hashing function used to compute the hash value
// Required: true
// Enum: [sha256]
Algorithm *string `json:"algorithm"`
// The hash value for the package
// Required: true
Value *string `json:"value"`
}
RpmV001SchemaPackageHash Specifies the hash algorithm and value for the package
swagger:model RpmV001SchemaPackageHash
func (*RpmV001SchemaPackageHash) MarshalBinary ¶
func (m *RpmV001SchemaPackageHash) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RpmV001SchemaPackageHash) UnmarshalBinary ¶
func (m *RpmV001SchemaPackageHash) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RpmV001SchemaPublicKey ¶
type RpmV001SchemaPublicKey struct {
// Specifies the content of the public key inline within the document
// Format: byte
Content strfmt.Base64 `json:"content,omitempty"`
// Specifies the location of the public key
// Format: uri
URL strfmt.URI `json:"url,omitempty"`
}
RpmV001SchemaPublicKey The PGP public key that can verify the RPM signature
swagger:model RpmV001SchemaPublicKey
func (*RpmV001SchemaPublicKey) MarshalBinary ¶
func (m *RpmV001SchemaPublicKey) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RpmV001SchemaPublicKey) UnmarshalBinary ¶
func (m *RpmV001SchemaPublicKey) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SearchIndex ¶
type SearchIndex struct {
// hash
// Pattern: ^[0-9a-fA-F]{64}$
Hash string `json:"hash,omitempty"`
// public key
PublicKey *SearchIndexPublicKey `json:"publicKey,omitempty"`
}
SearchIndex search index
swagger:model SearchIndex
func (*SearchIndex) MarshalBinary ¶
func (m *SearchIndex) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SearchIndex) UnmarshalBinary ¶
func (m *SearchIndex) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SearchIndexPublicKey ¶
type SearchIndexPublicKey struct {
// content
// Format: byte
Content strfmt.Base64 `json:"content,omitempty"`
// format
// Required: true
// Enum: [pgp x509 minisign ssh]
Format *string `json:"format"`
// url
// Format: uri
URL strfmt.URI `json:"url,omitempty"`
}
SearchIndexPublicKey search index public key
swagger:model SearchIndexPublicKey
func (*SearchIndexPublicKey) MarshalBinary ¶
func (m *SearchIndexPublicKey) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SearchIndexPublicKey) UnmarshalBinary ¶
func (m *SearchIndexPublicKey) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SearchLogQuery ¶
type SearchLogQuery struct {
// entry u UI ds
EntryUUIDs []string `json:"entryUUIDs"`
// log indexes
// Min Items: 1
LogIndexes []*int64 `json:"logIndexes"`
// contains filtered or unexported fields
}
SearchLogQuery search log query
swagger:model SearchLogQuery
func (*SearchLogQuery) Entries ¶
func (m *SearchLogQuery) Entries() []ProposedEntry
Entries gets the entries of this base type
func (*SearchLogQuery) MarshalBinary ¶
func (m *SearchLogQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SearchLogQuery) MarshalJSON ¶
func (m SearchLogQuery) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*SearchLogQuery) SetEntries ¶
func (m *SearchLogQuery) SetEntries(val []ProposedEntry)
SetEntries sets the entries of this base type
func (*SearchLogQuery) UnmarshalBinary ¶
func (m *SearchLogQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SearchLogQuery) UnmarshalJSON ¶
func (m *SearchLogQuery) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure