models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 81

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
const (

	// RekordV001SchemaDataHashAlgorithmSha256 captures enum value "sha256"
	RekordV001SchemaDataHashAlgorithmSha256 string = "sha256"
)
View Source
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

func (*ConsistencyProof) Validate

func (m *ConsistencyProof) Validate(formats strfmt.Registry) error

Validate validates this consistency proof

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

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (*InclusionProof) Validate

func (m *InclusionProof) Validate(formats strfmt.Registry) error

Validate validates this inclusion proof

type LogEntry

type LogEntry map[string]LogEntryAnon

LogEntry log entry

swagger:model LogEntry

func (LogEntry) Validate

func (m LogEntry) Validate(formats strfmt.Registry) error

Validate validates this log entry

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

func (*LogEntryAnon) Validate

func (m *LogEntryAnon) Validate(formats strfmt.Registry) error

Validate validates this log entry anon

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

func (m *LogInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LogInfo) UnmarshalBinary

func (m *LogInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LogInfo) Validate

func (m *LogInfo) Validate(formats strfmt.Registry) error

Validate validates this log info

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

func (*LogInfoSignedTreeHead) Validate

func (m *LogInfoSignedTreeHead) Validate(formats strfmt.Registry) error

Validate validates this log info signed tree head

type ProposedEntry

type ProposedEntry interface {
	runtime.Validatable

	// kind
	// Required: true
	Kind() string
	SetKind(string)
}

ProposedEntry proposed entry

swagger:discriminator ProposedEntry kind

func UnmarshalProposedEntry

func UnmarshalProposedEntry(reader io.Reader, consumer runtime.Consumer) (ProposedEntry, error)

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) Kind

func (m *Rekord) Kind() string

Kind gets the kind of this subtype

func (*Rekord) MarshalBinary

func (m *Rekord) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Rekord) MarshalJSON

func (m Rekord) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*Rekord) SetKind

func (m *Rekord) SetKind(val string)

SetKind sets the kind of this subtype

func (*Rekord) UnmarshalBinary

func (m *Rekord) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rekord) UnmarshalJSON

func (m *Rekord) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*Rekord) Validate

func (m *Rekord) Validate(formats strfmt.Registry) error

Validate validates this rekord

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

func (*RekordV001Schema) Validate

func (m *RekordV001Schema) Validate(formats strfmt.Registry) error

Validate validates this rekord v001 schema

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

func (*RekordV001SchemaData) Validate

func (m *RekordV001SchemaData) Validate(formats strfmt.Registry) error

Validate validates this rekord v001 schema data

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

func (*RekordV001SchemaDataHash) Validate

func (m *RekordV001SchemaDataHash) Validate(formats strfmt.Registry) error

Validate validates this rekord v001 schema data hash

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

func (*RekordV001SchemaSignature) Validate

func (m *RekordV001SchemaSignature) Validate(formats strfmt.Registry) error

Validate validates this rekord v001 schema signature

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

func (*RekordV001SchemaSignaturePublicKey) Validate

Validate validates this rekord v001 schema signature public key

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) Kind

func (m *Rpm) Kind() string

Kind gets the kind of this subtype

func (*Rpm) MarshalBinary

func (m *Rpm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Rpm) MarshalJSON

func (m Rpm) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*Rpm) SetKind

func (m *Rpm) SetKind(val string)

SetKind sets the kind of this subtype

func (*Rpm) UnmarshalBinary

func (m *Rpm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rpm) UnmarshalJSON

func (m *Rpm) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*Rpm) Validate

func (m *Rpm) Validate(formats strfmt.Registry) error

Validate validates this rpm

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

func (*RpmV001Schema) Validate

func (m *RpmV001Schema) Validate(formats strfmt.Registry) error

Validate validates this rpm v001 schema

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

func (*RpmV001SchemaPackage) Validate

func (m *RpmV001SchemaPackage) Validate(formats strfmt.Registry) error

Validate validates this rpm v001 schema package

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

func (*RpmV001SchemaPackageHash) Validate

func (m *RpmV001SchemaPackageHash) Validate(formats strfmt.Registry) error

Validate validates this rpm v001 schema package hash

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

func (*RpmV001SchemaPublicKey) Validate

func (m *RpmV001SchemaPublicKey) Validate(formats strfmt.Registry) error

Validate validates this rpm v001 schema public key

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

func (*SearchIndex) Validate

func (m *SearchIndex) Validate(formats strfmt.Registry) error

Validate validates this search index

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

func (*SearchIndexPublicKey) Validate

func (m *SearchIndexPublicKey) Validate(formats strfmt.Registry) error

Validate validates this search index public key

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

func (*SearchLogQuery) Validate

func (m *SearchLogQuery) Validate(formats strfmt.Registry) error

Validate validates this search log query

Jump to

Keyboard shortcuts

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