configpb

package
v0.0.0-...-d52c0f3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package configpb holds a config protobuf for the CT personality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBackend

type LogBackend struct {
	// name defines the name of the log backend for use in LogConfig messages and must be unique.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// backend_spec defines the RPC endpoint that clients should use to send requests
	// to this log backend. These should be in the same format as rpcBackendFlag in the
	// CTFE main and must not be an empty string.
	BackendSpec          string   `protobuf:"bytes,2,opt,name=backend_spec,json=backendSpec,proto3" json:"backend_spec,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LogBackend) Descriptor

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

func (*LogBackend) GetBackendSpec

func (m *LogBackend) GetBackendSpec() string

func (*LogBackend) GetName

func (m *LogBackend) GetName() string

func (*LogBackend) ProtoMessage

func (*LogBackend) ProtoMessage()

func (*LogBackend) Reset

func (m *LogBackend) Reset()

func (*LogBackend) String

func (m *LogBackend) String() string

func (*LogBackend) XXX_DiscardUnknown

func (m *LogBackend) XXX_DiscardUnknown()

func (*LogBackend) XXX_Marshal

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

func (*LogBackend) XXX_Merge

func (dst *LogBackend) XXX_Merge(src proto.Message)

func (*LogBackend) XXX_Size

func (m *LogBackend) XXX_Size() int

func (*LogBackend) XXX_Unmarshal

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

type LogBackendSet

type LogBackendSet struct {
	Backend              []*LogBackend `protobuf:"bytes,1,rep,name=backend,proto3" json:"backend,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

LogBackendSet supports a configuration where a single set of frontends handle requests for multiple backends. For example this could be used to run different backends in different geographic regions.

func (*LogBackendSet) Descriptor

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

func (*LogBackendSet) GetBackend

func (m *LogBackendSet) GetBackend() []*LogBackend

func (*LogBackendSet) ProtoMessage

func (*LogBackendSet) ProtoMessage()

func (*LogBackendSet) Reset

func (m *LogBackendSet) Reset()

func (*LogBackendSet) String

func (m *LogBackendSet) String() string

func (*LogBackendSet) XXX_DiscardUnknown

func (m *LogBackendSet) XXX_DiscardUnknown()

func (*LogBackendSet) XXX_Marshal

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

func (*LogBackendSet) XXX_Merge

func (dst *LogBackendSet) XXX_Merge(src proto.Message)

func (*LogBackendSet) XXX_Size

func (m *LogBackendSet) XXX_Size() int

func (*LogBackendSet) XXX_Unmarshal

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

type LogConfig

type LogConfig struct {
	// The ID of a Trillian tree that stores the log data. The tree type must be
	// LOG for regular CT logs. For mirror logs it must be either PREORDERED_LOG
	// or LOG, and can change at runtime. CTFE in mirror mode uses only read API
	// which is common for both types.
	LogId int64 `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
	// TODO(pavelkalinnikov): Comment this.
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// Paths to the files containing root certificates that are acceptable to the
	// log. The certs are served through get-roots endpoint. Optional in mirrors.
	RootsPemFile []string `protobuf:"bytes,3,rep,name=roots_pem_file,json=rootsPemFile,proto3" json:"roots_pem_file,omitempty"`
	// The private key used for signing STHs etc. Not required for mirrors.
	PrivateKey *any.Any `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// The public key matching the above private key (if both are present). It is
	// used only by mirror logs for verifying the source log's signatures, but can
	// be specified for regular logs as well for the convenience of test tools.
	PublicKey *keyspb.PublicKey `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// If reject_expired is true then the certificate validity period will be
	// checked against the current time during the validation of submissions.
	// This will cause expired certificates to be rejected.
	RejectExpired bool `protobuf:"varint,6,opt,name=reject_expired,json=rejectExpired,proto3" json:"reject_expired,omitempty"`
	// If set, ext_key_usages will restrict the set of such usages that the
	// server will accept. By default all are accepted. The values specified
	// must be ones known to the x509 package.
	ExtKeyUsages []string `protobuf:"bytes,7,rep,name=ext_key_usages,json=extKeyUsages,proto3" json:"ext_key_usages,omitempty"`
	// not_after_start defines the start of the range of acceptable NotAfter
	// values, inclusive.
	// Leaving this unset implies no lower bound to the range.
	NotAfterStart *timestamp.Timestamp `protobuf:"bytes,8,opt,name=not_after_start,json=notAfterStart,proto3" json:"not_after_start,omitempty"`
	// not_after_limit defines the end of the range of acceptable NotAfter values,
	// exclusive.
	// Leaving this unset implies no upper bound to the range.
	NotAfterLimit *timestamp.Timestamp `protobuf:"bytes,9,opt,name=not_after_limit,json=notAfterLimit,proto3" json:"not_after_limit,omitempty"`
	// accept_only_ca controls whether or not *only* certificates with the CA bit
	// set will be accepted.
	AcceptOnlyCa bool `protobuf:"varint,10,opt,name=accept_only_ca,json=acceptOnlyCa,proto3" json:"accept_only_ca,omitempty"`
	// backend_name if set indicates which backend serves this log. The name must be
	// one of those defined in the LogBackendSet.
	LogBackendName string `protobuf:"bytes,11,opt,name=log_backend_name,json=logBackendName,proto3" json:"log_backend_name,omitempty"`
	// If set, the log is a mirror, i.e. it serves the data of another (source)
	// log. It doesn't handle write requests (add-chain, etc.), so it's not a
	// fully fledged RFC-6962 log, but the tree read requests like get-entries and
	// get-consistency-proof are compatible. A mirror doesn't have the source
	// log's key and can't sign STHs. Consequently, the log operator must ensure
	// to channel source log's STHs into CTFE.
	IsMirror             bool     `protobuf:"varint,12,opt,name=is_mirror,json=isMirror,proto3" json:"is_mirror,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

LogConfig describes the configuration options for a log instance.

func (*LogConfig) Descriptor

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

func (*LogConfig) GetAcceptOnlyCa

func (m *LogConfig) GetAcceptOnlyCa() bool

func (*LogConfig) GetExtKeyUsages

func (m *LogConfig) GetExtKeyUsages() []string

func (*LogConfig) GetIsMirror

func (m *LogConfig) GetIsMirror() bool

func (*LogConfig) GetLogBackendName

func (m *LogConfig) GetLogBackendName() string

func (*LogConfig) GetLogId

func (m *LogConfig) GetLogId() int64

func (*LogConfig) GetNotAfterLimit

func (m *LogConfig) GetNotAfterLimit() *timestamp.Timestamp

func (*LogConfig) GetNotAfterStart

func (m *LogConfig) GetNotAfterStart() *timestamp.Timestamp

func (*LogConfig) GetPrefix

func (m *LogConfig) GetPrefix() string

func (*LogConfig) GetPrivateKey

func (m *LogConfig) GetPrivateKey() *any.Any

func (*LogConfig) GetPublicKey

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

func (*LogConfig) GetRejectExpired

func (m *LogConfig) GetRejectExpired() bool

func (*LogConfig) GetRootsPemFile

func (m *LogConfig) GetRootsPemFile() []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 (dst *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

type LogConfigSet

type LogConfigSet struct {
	Config               []*LogConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

LogConfigSet is a set of LogConfig messages.

func (*LogConfigSet) Descriptor

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

func (*LogConfigSet) GetConfig

func (m *LogConfigSet) GetConfig() []*LogConfig

func (*LogConfigSet) ProtoMessage

func (*LogConfigSet) ProtoMessage()

func (*LogConfigSet) Reset

func (m *LogConfigSet) Reset()

func (*LogConfigSet) String

func (m *LogConfigSet) String() string

func (*LogConfigSet) XXX_DiscardUnknown

func (m *LogConfigSet) XXX_DiscardUnknown()

func (*LogConfigSet) XXX_Marshal

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

func (*LogConfigSet) XXX_Merge

func (dst *LogConfigSet) XXX_Merge(src proto.Message)

func (*LogConfigSet) XXX_Size

func (m *LogConfigSet) XXX_Size() int

func (*LogConfigSet) XXX_Unmarshal

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

type LogMultiConfig

type LogMultiConfig struct {
	// The set of backends that this configuration will use to send requests to.
	// The names of the backends in the LogBackendSet must all be distinct.
	Backends *LogBackendSet `protobuf:"bytes,1,opt,name=backends,proto3" json:"backends,omitempty"`
	// The set of logs that will use the above backends. All the protos in this
	// LogConfigSet must set a valid log_backend_name for the config to be usable.
	LogConfigs           *LogConfigSet `protobuf:"bytes,2,opt,name=log_configs,json=logConfigs,proto3" json:"log_configs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

LogMultiConfig wraps up a LogBackendSet and corresponding LogConfigSet so that they can easily be parsed as a single proto.

func (*LogMultiConfig) Descriptor

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

func (*LogMultiConfig) GetBackends

func (m *LogMultiConfig) GetBackends() *LogBackendSet

func (*LogMultiConfig) GetLogConfigs

func (m *LogMultiConfig) GetLogConfigs() *LogConfigSet

func (*LogMultiConfig) ProtoMessage

func (*LogMultiConfig) ProtoMessage()

func (*LogMultiConfig) Reset

func (m *LogMultiConfig) Reset()

func (*LogMultiConfig) String

func (m *LogMultiConfig) String() string

func (*LogMultiConfig) XXX_DiscardUnknown

func (m *LogMultiConfig) XXX_DiscardUnknown()

func (*LogMultiConfig) XXX_Marshal

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

func (*LogMultiConfig) XXX_Merge

func (dst *LogMultiConfig) XXX_Merge(src proto.Message)

func (*LogMultiConfig) XXX_Size

func (m *LogMultiConfig) XXX_Size() int

func (*LogMultiConfig) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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