roughtime_config

package
v0.0.0-...-aaa8282 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)
func (m *Chain) GetLinks() []*Link

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) Reset

func (m *Chain) Reset()

func (*Chain) String

func (m *Chain) String() string

func (*Chain) XXX_DiscardUnknown

func (m *Chain) XXX_DiscardUnknown()

func (*Chain) XXX_Marshal

func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Chain) XXX_Merge

func (m *Chain) XXX_Merge(src proto.Message)

func (*Chain) XXX_Size

func (m *Chain) XXX_Size() int

func (*Chain) XXX_Unmarshal

func (m *Chain) XXX_Unmarshal(b []byte) error
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) Descriptor() ([]byte, []int)

func (*Link) GetNonceOrBlind

func (m *Link) GetNonceOrBlind() []byte

func (*Link) GetPublicKeyType

func (m *Link) GetPublicKeyType() string

func (*Link) GetReply

func (m *Link) GetReply() []byte

func (*Link) GetServerPublicKey

func (m *Link) GetServerPublicKey() []byte

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) Reset

func (m *Link) Reset()

func (*Link) String

func (m *Link) String() string

func (*Link) XXX_DiscardUnknown

func (m *Link) XXX_DiscardUnknown()

func (*Link) XXX_Marshal

func (m *Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Link) XXX_Merge

func (m *Link) XXX_Merge(src proto.Message)

func (*Link) XXX_Size

func (m *Link) XXX_Size() int

func (*Link) XXX_Unmarshal

func (m *Link) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Server) GetAddresses

func (m *Server) GetAddresses() []*ServerAddress

func (*Server) GetName

func (m *Server) GetName() string

func (*Server) GetPublicKey

func (m *Server) GetPublicKey() []byte

func (*Server) GetPublicKeyType

func (m *Server) GetPublicKeyType() string

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) String

func (m *Server) String() string

func (*Server) XXX_DiscardUnknown

func (m *Server) XXX_DiscardUnknown()

func (*Server) XXX_Marshal

func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Server) XXX_Merge

func (m *Server) XXX_Merge(src proto.Message)

func (*Server) XXX_Size

func (m *Server) XXX_Size() int

func (*Server) XXX_Unmarshal

func (m *Server) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

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