configpb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package configpb holds a config protobuf for minimal gossip binaries.

Index

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 added in v1.1.0

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.
	// 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) GetDestHub added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

func (*HubConfig) Descriptor() ([]byte, []int)

func (*HubConfig) GetIsHub added in v1.1.0

func (m *HubConfig) GetIsHub() bool

func (*HubConfig) GetMinReqInterval added in v1.1.0

func (m *HubConfig) GetMinReqInterval() *duration.Duration

func (*HubConfig) GetName added in v1.1.0

func (m *HubConfig) GetName() string

func (*HubConfig) GetPublicKey added in v1.1.0

func (m *HubConfig) GetPublicKey() *keyspb.PublicKey

func (*HubConfig) GetStartIndex added in v1.1.0

func (m *HubConfig) GetStartIndex() int64

func (*HubConfig) GetUrl added in v1.1.0

func (m *HubConfig) GetUrl() string

func (*HubConfig) ProtoMessage added in v1.1.0

func (*HubConfig) ProtoMessage()

func (*HubConfig) Reset added in v1.1.0

func (m *HubConfig) Reset()

func (*HubConfig) String added in v1.1.0

func (m *HubConfig) String() string

func (*HubConfig) XXX_DiscardUnknown added in v1.1.0

func (m *HubConfig) XXX_DiscardUnknown()

func (*HubConfig) XXX_Marshal added in v1.1.0

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

func (*HubConfig) XXX_Merge added in v1.1.0

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

func (*HubConfig) XXX_Size added in v1.1.0

func (m *HubConfig) XXX_Size() int

func (*HubConfig) XXX_Unmarshal added in v1.1.0

func (m *HubConfig) 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 source Log, whose STH values are tracked/monitored.

func (*LogConfig) Descriptor

func (*LogConfig) Descriptor() ([]byte, []int)

func (*LogConfig) GetMinReqInterval

func (m *LogConfig) GetMinReqInterval() *duration.Duration

func (*LogConfig) GetName

func (m *LogConfig) GetName() string

func (*LogConfig) GetPublicKey

func (m *LogConfig) GetPublicKey() *keyspb.PublicKey

func (*LogConfig) GetUrl

func (m *LogConfig) GetUrl() string

func (*LogConfig) ProtoMessage

func (*LogConfig) ProtoMessage()

func (*LogConfig) Reset

func (m *LogConfig) Reset()

func (*LogConfig) String

func (m *LogConfig) String() string

func (*LogConfig) XXX_DiscardUnknown

func (m *LogConfig) XXX_DiscardUnknown()

func (*LogConfig) XXX_Marshal

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

func (*LogConfig) XXX_Merge

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

func (*LogConfig) XXX_Size

func (m *LogConfig) XXX_Size() int

func (*LogConfig) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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