Documentation ¶
Index ¶
- type Chain
- func (*Chain) Descriptor() ([]byte, []int)
- func (m *Chain) GetLinks() []*Link
- func (*Chain) ProtoMessage()
- func (m *Chain) Reset()
- func (m *Chain) String() string
- func (m *Chain) XXX_DiscardUnknown()
- func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Chain) XXX_Merge(src proto.Message)
- func (m *Chain) XXX_Size() int
- func (m *Chain) XXX_Unmarshal(b []byte) error
- type Link
- func (*Link) Descriptor() ([]byte, []int)
- func (m *Link) GetNonceOrBlind() []byte
- func (m *Link) GetPublicKeyType() string
- func (m *Link) GetReply() []byte
- func (m *Link) GetServerPublicKey() []byte
- func (*Link) ProtoMessage()
- func (m *Link) Reset()
- func (m *Link) String() string
- func (m *Link) XXX_DiscardUnknown()
- func (m *Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Link) XXX_Merge(src proto.Message)
- func (m *Link) XXX_Size() int
- func (m *Link) XXX_Unmarshal(b []byte) error
- type Server
- func (*Server) Descriptor() ([]byte, []int)
- func (m *Server) GetAddresses() []*ServerAddress
- func (m *Server) GetName() string
- func (m *Server) GetPublicKey() []byte
- func (m *Server) GetPublicKeyType() string
- func (*Server) ProtoMessage()
- func (m *Server) Reset()
- func (m *Server) String() string
- func (m *Server) XXX_DiscardUnknown()
- func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Server) XXX_Merge(src proto.Message)
- func (m *Server) XXX_Size() int
- func (m *Server) XXX_Unmarshal(b []byte) error
- type ServerAddress
- func (*ServerAddress) Descriptor() ([]byte, []int)
- func (m *ServerAddress) GetAddress() string
- func (m *ServerAddress) GetProtocol() string
- func (*ServerAddress) ProtoMessage()
- func (m *ServerAddress) Reset()
- func (m *ServerAddress) String() string
- func (m *ServerAddress) XXX_DiscardUnknown()
- func (m *ServerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServerAddress) XXX_Merge(src proto.Message)
- func (m *ServerAddress) XXX_Size() int
- func (m *ServerAddress) XXX_Unmarshal(b []byte) error
- type ServersJSON
- func (*ServersJSON) Descriptor() ([]byte, []int)
- func (m *ServersJSON) GetCreated() string
- func (m *ServersJSON) GetExpires() string
- func (m *ServersJSON) GetServers() []*Server
- func (*ServersJSON) ProtoMessage()
- func (m *ServersJSON) Reset()
- func (m *ServersJSON) String() string
- func (m *ServersJSON) XXX_DiscardUnknown()
- func (m *ServersJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServersJSON) XXX_Merge(src proto.Message)
- func (m *ServersJSON) XXX_Size() int
- func (m *ServersJSON) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct { Links []*Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Chain represents a history of Roughtime queries where each provably follows the previous one.
func (*Chain) Descriptor ¶
func (*Chain) ProtoMessage ¶
func (*Chain) ProtoMessage()
func (*Chain) XXX_DiscardUnknown ¶
func (m *Chain) XXX_DiscardUnknown()
func (*Chain) XXX_Marshal ¶
func (*Chain) XXX_Unmarshal ¶
type Link ¶
type Link struct { // public_key_type specifies the type of public key contained in // |PublicKey|. See the same field in |Server| for details. PublicKeyType string `protobuf:"bytes,1,opt,name=public_key_type,json=publicKeyType,proto3" json:"public_key_type,omitempty"` ServerPublicKey []byte `protobuf:"bytes,2,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"` // nonce_or_blind contains either the full nonce (only for the first |Link| // in a |Chain|) or else contains a blind value that is combined with the // previous reply to make the next nonce. In either case, the value is 64 // bytes long. NonceOrBlind []byte `protobuf:"bytes,3,opt,name=nonce_or_blind,json=nonceOrBlind,proto3" json:"nonce_or_blind,omitempty"` // reply contains the reply from the server. Reply []byte `protobuf:"bytes,4,opt,name=reply,proto3" json:"reply,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Link represents an entry in a Chain.
func (*Link) Descriptor ¶
func (*Link) GetNonceOrBlind ¶
func (*Link) GetPublicKeyType ¶
func (*Link) GetServerPublicKey ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) XXX_DiscardUnknown ¶
func (m *Link) XXX_DiscardUnknown()
func (*Link) XXX_Unmarshal ¶
type Server ¶
type Server struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // public_key_type specifies the type of the public key contained in // |PublicKey|. Normally this will be "ed25519" but implementations should // ignore entries with unknown key types. PublicKeyType string `protobuf:"bytes,2,opt,name=public_key_type,json=publicKeyType,proto3" json:"public_key_type,omitempty"` PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Addresses []*ServerAddress `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Server represents a Roughtime server in a JSON configuration.
func (*Server) Descriptor ¶
func (*Server) GetAddresses ¶
func (m *Server) GetAddresses() []*ServerAddress
func (*Server) GetPublicKey ¶
func (*Server) GetPublicKeyType ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) XXX_DiscardUnknown ¶
func (m *Server) XXX_DiscardUnknown()
func (*Server) XXX_Marshal ¶
func (*Server) XXX_Unmarshal ¶
type ServerAddress ¶
type ServerAddress struct { Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"` // address contains a protocol specific address. For the protocol "udp", the // address has the form "host:port" where host is either a DNS name, an IPv4 // literal, or an IPv6 literal in square brackets. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ServerAddress represents the address of a Roughtime server in a JSON configuration.
func (*ServerAddress) Descriptor ¶
func (*ServerAddress) Descriptor() ([]byte, []int)
func (*ServerAddress) GetAddress ¶
func (m *ServerAddress) GetAddress() string
func (*ServerAddress) GetProtocol ¶
func (m *ServerAddress) GetProtocol() string
func (*ServerAddress) ProtoMessage ¶
func (*ServerAddress) ProtoMessage()
func (*ServerAddress) Reset ¶
func (m *ServerAddress) Reset()
func (*ServerAddress) String ¶
func (m *ServerAddress) String() string
func (*ServerAddress) XXX_DiscardUnknown ¶
func (m *ServerAddress) XXX_DiscardUnknown()
func (*ServerAddress) XXX_Marshal ¶
func (m *ServerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerAddress) XXX_Merge ¶
func (m *ServerAddress) XXX_Merge(src proto.Message)
func (*ServerAddress) XXX_Size ¶
func (m *ServerAddress) XXX_Size() int
func (*ServerAddress) XXX_Unmarshal ¶
func (m *ServerAddress) XXX_Unmarshal(b []byte) error
type ServersJSON ¶
type ServersJSON struct { // created contains the RFC3339 time when the JSON file was created. Created string `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"` // expires contains the RFC3339 time when the information in this JSON file // expires. Expires string `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"` Servers []*Server `protobuf:"bytes,3,rep,name=servers,proto3" json:"servers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ServersJSON represents a JSON format for distributing information about Roughtime servers.
func (*ServersJSON) Descriptor ¶
func (*ServersJSON) Descriptor() ([]byte, []int)
func (*ServersJSON) GetCreated ¶
func (m *ServersJSON) GetCreated() string
func (*ServersJSON) GetExpires ¶
func (m *ServersJSON) GetExpires() string
func (*ServersJSON) GetServers ¶
func (m *ServersJSON) GetServers() []*Server
func (*ServersJSON) ProtoMessage ¶
func (*ServersJSON) ProtoMessage()
func (*ServersJSON) Reset ¶
func (m *ServersJSON) Reset()
func (*ServersJSON) String ¶
func (m *ServersJSON) String() string
func (*ServersJSON) XXX_DiscardUnknown ¶
func (m *ServersJSON) XXX_DiscardUnknown()
func (*ServersJSON) XXX_Marshal ¶
func (m *ServersJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServersJSON) XXX_Merge ¶
func (m *ServersJSON) XXX_Merge(src proto.Message)
func (*ServersJSON) XXX_Size ¶
func (m *ServersJSON) XXX_Size() int
func (*ServersJSON) XXX_Unmarshal ¶
func (m *ServersJSON) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.