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) GetDestLog() *LogConfig
- 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 (dst *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) GetDestLog() []*LogConfig
- 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 (dst *GossipConfig) XXX_Merge(src proto.Message)
- func (m *GossipConfig) XXX_Size() int
- func (m *GossipConfig) 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 (dst *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 log which will be scanned for minimal-gossip certificates.
DestLog *LogConfig `protobuf:"bytes,2,opt,name=dest_log,json=destLog,proto3" json:"dest_log,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) GetDestLog ¶
func (m *GoshawkConfig) GetDestLog() *LogConfig
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 (dst *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 logs to which the minimal-gossip certificates will
// be submitted. These destination logs need to be configured to accept
// root_cert as an acceptable root.
DestLog []*LogConfig `protobuf:"bytes,2,rep,name=dest_log,json=destLog,proto3" json:"dest_log,omitempty"`
// The root certificate used for submissions, in PEM format; this should
// include the public key corresponding to private_key below.
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.
// TODO(drysdale): investigate sensible ranges for this.
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) GetDestLog ¶
func (m *GossipConfig) GetDestLog() []*LogConfig
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 (dst *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 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 Log.
func (*LogConfig) XXX_Marshal ¶
Source Files
¶
- config.pb.go
- gen.go
Click to show internal directories.
Click to hide internal directories.