models

package
v0.0.0-...-6c1762c Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalJSON

type AdditionalJSON map[string]interface{}

type CachedRemoteKeys

type CachedRemoteKeys struct {
	*RemoteServer
	Signatures []*RemoteSignature
	Keys       []*RemoteKey
}

type KeyID

type KeyID string

type OwnKey

type OwnKey struct {
	ID         KeyID
	PublicKey  UnpaddedBase64EncodedData
	PrivateKey UnpaddedBase64EncodedData
	ExpiresTs  Timestamp
}

type RemoteKey

type RemoteKey struct {
	ServerName ServerName
	ID         KeyID
	PublicKey  UnpaddedBase64EncodedData
	ExpiresTs  Timestamp
}

type RemoteServer

type RemoteServer struct {
	ServerName      ServerName
	UpdatedTs       Timestamp
	ValidUntilTs    Timestamp
	NonStandardJSON AdditionalJSON
}

type RemoteSignature

type RemoteSignature struct {
	ServerName ServerName
	KeyID      KeyID
	Signature  UnpaddedBase64EncodedData
}

type ServerName

type ServerName string

type Timestamp

type Timestamp int64

type UnpaddedBase64EncodedData

type UnpaddedBase64EncodedData string

Jump to

Keyboard shortcuts

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