Documentation
¶
Overview ¶
Package configpb holds a config protobuf for minimal gossip binaries.
Index ¶
- type GoshawkConfig
- func (*GoshawkConfig) Descriptor() ([]byte, []int)
- func (m *GoshawkConfig) GetBufferSize() int32
- func (m *GoshawkConfig) GetDestHub() []*HubConfig
- func (m *GoshawkConfig) GetSourceLog() []*LogConfig
- func (*GoshawkConfig) ProtoMessage()
- func (m *GoshawkConfig) Reset()
- func (m *GoshawkConfig) String() string
- func (m *GoshawkConfig) XXX_DiscardUnknown()
- func (m *GoshawkConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GoshawkConfig) XXX_Merge(src proto.Message)
- func (m *GoshawkConfig) XXX_Size() int
- func (m *GoshawkConfig) XXX_Unmarshal(b []byte) error
- type GossipConfig
- func (*GossipConfig) Descriptor() ([]byte, []int)
- func (m *GossipConfig) GetBufferSize() int32
- func (m *GossipConfig) GetDestHub() []*HubConfig
- func (m *GossipConfig) GetPrivateKey() *any.Any
- func (m *GossipConfig) GetRootCert() string
- func (m *GossipConfig) GetSourceLog() []*LogConfig
- func (*GossipConfig) ProtoMessage()
- func (m *GossipConfig) Reset()
- func (m *GossipConfig) String() string
- func (m *GossipConfig) XXX_DiscardUnknown()
- func (m *GossipConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GossipConfig) XXX_Merge(src proto.Message)
- func (m *GossipConfig) XXX_Size() int
- func (m *GossipConfig) XXX_Unmarshal(b []byte) error
- type HubConfig
- func (*HubConfig) Descriptor() ([]byte, []int)
- func (m *HubConfig) GetIsHub() bool
- func (m *HubConfig) GetMinReqInterval() *duration.Duration
- func (m *HubConfig) GetName() string
- func (m *HubConfig) GetPublicKey() *keyspb.PublicKey
- func (m *HubConfig) GetStartIndex() int64
- func (m *HubConfig) GetUrl() string
- func (*HubConfig) ProtoMessage()
- func (m *HubConfig) Reset()
- func (m *HubConfig) String() string
- func (m *HubConfig) XXX_DiscardUnknown()
- func (m *HubConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HubConfig) XXX_Merge(src proto.Message)
- func (m *HubConfig) XXX_Size() int
- func (m *HubConfig) XXX_Unmarshal(b []byte) error
- type LogConfig
- func (*LogConfig) Descriptor() ([]byte, []int)
- func (m *LogConfig) GetMinReqInterval() *duration.Duration
- func (m *LogConfig) GetName() string
- func (m *LogConfig) GetPublicKey() *keyspb.PublicKey
- func (m *LogConfig) GetUrl() string
- func (*LogConfig) ProtoMessage()
- func (m *LogConfig) Reset()
- func (m *LogConfig) String() string
- func (m *LogConfig) XXX_DiscardUnknown()
- func (m *LogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogConfig) XXX_Merge(src proto.Message)
- func (m *LogConfig) XXX_Size() int
- func (m *LogConfig) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoshawkConfig ¶
type GoshawkConfig struct { // The source logs whose STHs will be checked. SourceLog []*LogConfig `protobuf:"bytes,1,rep,name=source_log,json=sourceLog,proto3" json:"source_log,omitempty"` // The destination hubs which will be scanned for minimal-gossip certificates. DestHub []*HubConfig `protobuf:"bytes,2,rep,name=dest_hub,json=destHub,proto3" json:"dest_hub,omitempty"` // Number of STHs pending verification that can be buffered up for each source log. BufferSize int32 `protobuf:"varint,5,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GoshawkConfig describes the configuration of a gossiper.
func (*GoshawkConfig) Descriptor ¶
func (*GoshawkConfig) Descriptor() ([]byte, []int)
func (*GoshawkConfig) GetBufferSize ¶
func (m *GoshawkConfig) GetBufferSize() int32
func (*GoshawkConfig) GetDestHub ¶
func (m *GoshawkConfig) GetDestHub() []*HubConfig
func (*GoshawkConfig) GetSourceLog ¶
func (m *GoshawkConfig) GetSourceLog() []*LogConfig
func (*GoshawkConfig) ProtoMessage ¶
func (*GoshawkConfig) ProtoMessage()
func (*GoshawkConfig) Reset ¶
func (m *GoshawkConfig) Reset()
func (*GoshawkConfig) String ¶
func (m *GoshawkConfig) String() string
func (*GoshawkConfig) XXX_DiscardUnknown ¶
func (m *GoshawkConfig) XXX_DiscardUnknown()
func (*GoshawkConfig) XXX_Marshal ¶
func (m *GoshawkConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GoshawkConfig) XXX_Merge ¶
func (m *GoshawkConfig) XXX_Merge(src proto.Message)
func (*GoshawkConfig) XXX_Size ¶
func (m *GoshawkConfig) XXX_Size() int
func (*GoshawkConfig) XXX_Unmarshal ¶
func (m *GoshawkConfig) XXX_Unmarshal(b []byte) error
type GossipConfig ¶
type GossipConfig struct { // The source logs whose STHs will be logged. SourceLog []*LogConfig `protobuf:"bytes,1,rep,name=source_log,json=sourceLog,proto3" json:"source_log,omitempty"` // The destination hubs to which the minimal-gossip certificates will // be submitted. These destination hubs need to be configured to accept // submissions. DestHub []*HubConfig `protobuf:"bytes,2,rep,name=dest_hub,json=destHub,proto3" json:"dest_hub,omitempty"` // The root certificate used for submissions to any CT logs, in PEM format; // this should include the public key corresponding to private_key below. // This field is unused if all destination hubs are true Gossip Hubs (rather // than CT logs that accept synthetic certificates). RootCert string `protobuf:"bytes,3,opt,name=root_cert,json=rootCert,proto3" json:"root_cert,omitempty"` // The private key that will be used to sign synthetic leaf certificates // that chain to the root_cert. PrivateKey *any.Any `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // Number of buffered STHs allowed. Must not be negative. BufferSize int32 `protobuf:"varint,5,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GossipConfig describes the configuration of a gossiper.
func (*GossipConfig) Descriptor ¶
func (*GossipConfig) Descriptor() ([]byte, []int)
func (*GossipConfig) GetBufferSize ¶
func (m *GossipConfig) GetBufferSize() int32
func (*GossipConfig) GetDestHub ¶
func (m *GossipConfig) GetDestHub() []*HubConfig
func (*GossipConfig) GetPrivateKey ¶
func (m *GossipConfig) GetPrivateKey() *any.Any
func (*GossipConfig) GetRootCert ¶
func (m *GossipConfig) GetRootCert() string
func (*GossipConfig) GetSourceLog ¶
func (m *GossipConfig) GetSourceLog() []*LogConfig
func (*GossipConfig) ProtoMessage ¶
func (*GossipConfig) ProtoMessage()
func (*GossipConfig) Reset ¶
func (m *GossipConfig) Reset()
func (*GossipConfig) String ¶
func (m *GossipConfig) String() string
func (*GossipConfig) XXX_DiscardUnknown ¶
func (m *GossipConfig) XXX_DiscardUnknown()
func (*GossipConfig) XXX_Marshal ¶
func (m *GossipConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GossipConfig) XXX_Merge ¶
func (m *GossipConfig) XXX_Merge(src proto.Message)
func (*GossipConfig) XXX_Size ¶
func (m *GossipConfig) XXX_Size() int
func (*GossipConfig) XXX_Unmarshal ¶
func (m *GossipConfig) XXX_Unmarshal(b []byte) error
type HubConfig ¶
type HubConfig struct { // Human-readable name for the hub, must be unique. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Base URL for the hub. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Hub's public key. This is optional, but if omitted signatures from // the log will not be checked. PublicKey *keyspb.PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Minimum interval between requests to the hub, for rate limiting. MinReqInterval *duration.Duration `protobuf:"bytes,4,opt,name=min_req_interval,json=minReqInterval,proto3" json:"min_req_interval,omitempty"` // Whether the hub is a true Gossip Hub. IsHub bool `protobuf:"varint,5,opt,name=is_hub,json=isHub,proto3" json:"is_hub,omitempty"` // Start point in a Hub beyond which entries of interest are found. // For example, for a Hub that is a regular CT Log this might be // a known point where the earliest encoded STH is to be found. // Specific to goshawk; not used by gosmin. StartIndex int64 `protobuf:"varint,6,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
HubConfig describes the configuration options for a destination Gossip repository, which may be either a Gossip Hub or a regular CT log.
func (*HubConfig) Descriptor ¶
func (*HubConfig) GetMinReqInterval ¶
func (*HubConfig) GetPublicKey ¶
func (*HubConfig) GetStartIndex ¶
func (*HubConfig) ProtoMessage ¶
func (*HubConfig) ProtoMessage()
func (*HubConfig) XXX_DiscardUnknown ¶
func (m *HubConfig) XXX_DiscardUnknown()
func (*HubConfig) XXX_Marshal ¶
func (*HubConfig) XXX_Unmarshal ¶
type LogConfig ¶
type LogConfig struct { // Human-readable name for the log; must be unique Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Base URL for the log. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Log's public key. This is optional, but if omitted signatures from // the log will not be checked. PublicKey *keyspb.PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Minimum interval between requests to the log, for rate limiting. MinReqInterval *duration.Duration `protobuf:"bytes,4,opt,name=min_req_interval,json=minReqInterval,proto3" json:"min_req_interval,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LogConfig describes the configuration options for a source Log, whose STH values are tracked/monitored.
func (*LogConfig) Descriptor ¶
func (*LogConfig) GetMinReqInterval ¶
func (*LogConfig) GetPublicKey ¶
func (*LogConfig) ProtoMessage ¶
func (*LogConfig) ProtoMessage()
func (*LogConfig) XXX_DiscardUnknown ¶
func (m *LogConfig) XXX_DiscardUnknown()
func (*LogConfig) XXX_Marshal ¶
func (*LogConfig) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.