configpb

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Package configpb is a generated protocol buffer package.

It is generated from these files:

config.proto

It has these top-level messages:

LogBackend
LogBackendSet
LogConfigSet
LogConfig
LogMultiConfig

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBackend added in v1.0.4

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" 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" json:"backend_spec,omitempty"`
}

func (*LogBackend) Descriptor added in v1.0.4

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

func (*LogBackend) GetBackendSpec added in v1.0.4

func (m *LogBackend) GetBackendSpec() string

func (*LogBackend) GetName added in v1.0.4

func (m *LogBackend) GetName() string

func (*LogBackend) ProtoMessage added in v1.0.4

func (*LogBackend) ProtoMessage()

func (*LogBackend) Reset added in v1.0.4

func (m *LogBackend) Reset()

func (*LogBackend) String added in v1.0.4

func (m *LogBackend) String() string

type LogBackendSet added in v1.0.4

type LogBackendSet struct {
	Backend []*LogBackend `protobuf:"bytes,1,rep,name=backend" json:"backend,omitempty"`
}

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

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

func (*LogBackendSet) GetBackend added in v1.0.4

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

func (*LogBackendSet) ProtoMessage added in v1.0.4

func (*LogBackendSet) ProtoMessage()

func (*LogBackendSet) Reset added in v1.0.4

func (m *LogBackendSet) Reset()

func (*LogBackendSet) String added in v1.0.4

func (m *LogBackendSet) String() string

type LogConfig

type LogConfig struct {
	LogId        int64                `protobuf:"varint,1,opt,name=log_id,json=logId" json:"log_id,omitempty"`
	Prefix       string               `protobuf:"bytes,2,opt,name=prefix" json:"prefix,omitempty"`
	RootsPemFile []string             `protobuf:"bytes,3,rep,name=roots_pem_file,json=rootsPemFile" json:"roots_pem_file,omitempty"`
	PrivateKey   *google_protobuf.Any `protobuf:"bytes,4,opt,name=private_key,json=privateKey" json:"private_key,omitempty"`
	// The public key is included for the convenience of test tools (and obviously
	// should match the private key above); it is not used by the CT personality.
	PublicKey     *keyspb.PublicKey `protobuf:"bytes,5,opt,name=public_key,json=publicKey" json:"public_key,omitempty"`
	RejectExpired bool              `protobuf:"varint,6,opt,name=reject_expired,json=rejectExpired" json:"reject_expired,omitempty"`
	ExtKeyUsages  []string          `protobuf:"bytes,7,rep,name=ext_key_usages,json=extKeyUsages" 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 *google_protobuf1.Timestamp `protobuf:"bytes,8,opt,name=not_after_start,json=notAfterStart" 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 *google_protobuf1.Timestamp `protobuf:"bytes,9,opt,name=not_after_limit,json=notAfterLimit" 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" 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" json:"log_backend_name,omitempty"`
}

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) GetLogBackendName added in v1.0.4

func (m *LogConfig) GetLogBackendName() string

func (*LogConfig) GetLogId

func (m *LogConfig) GetLogId() int64

func (*LogConfig) GetNotAfterLimit

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

func (*LogConfig) GetNotAfterStart

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

func (*LogConfig) GetPrefix

func (m *LogConfig) GetPrefix() string

func (*LogConfig) GetPrivateKey

func (m *LogConfig) GetPrivateKey() *google_protobuf.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

type LogConfigSet

type LogConfigSet struct {
	Config []*LogConfig `protobuf:"bytes,1,rep,name=config" json:"config,omitempty"`
}

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

type LogMultiConfig added in v1.0.4

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" 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" json:"log_configs,omitempty"`
}

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

func (*LogMultiConfig) Descriptor added in v1.0.4

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

func (*LogMultiConfig) GetBackends added in v1.0.4

func (m *LogMultiConfig) GetBackends() *LogBackendSet

func (*LogMultiConfig) GetLogConfigs added in v1.0.4

func (m *LogMultiConfig) GetLogConfigs() *LogConfigSet

func (*LogMultiConfig) ProtoMessage added in v1.0.4

func (*LogMultiConfig) ProtoMessage()

func (*LogMultiConfig) Reset added in v1.0.4

func (m *LogMultiConfig) Reset()

func (*LogMultiConfig) String added in v1.0.4

func (m *LogMultiConfig) String() string

Jump to

Keyboard shortcuts

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