Documentation ¶
Index ¶
- Constants
- type Options
- func (*Options) Descriptor() ([]byte, []int)
- func (m *Options) GetExpirationSec() int32
- func (m *Options) GetPubsubTopic() string
- func (m *Options) GetRdsServerAddress() string
- func (m *Options) GetReEvalSec() int32
- func (m *Options) GetRuntimeconfigName() string
- func (m *Options) GetRuntimeconfigProject() string
- func (m *Options) GetUseRds() bool
- func (*Options) ProtoMessage()
- func (m *Options) Reset()
- func (m *Options) String() string
- func (m *Options) XXX_DiscardUnknown()
- func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Options) XXX_Merge(src proto.Message)
- func (m *Options) XXX_Size() int
- func (m *Options) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const Default_Options_ExpirationSec int32 = 300
View Source
const Default_Options_ReEvalSec int32 = 10
View Source
const Default_Options_RuntimeconfigName string = "lame-duck-targets"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // How often to check for lame-ducked targets ReEvalSec *int32 `protobuf:"varint,1,opt,name=re_eval_sec,json=reEvalSec,def=10" json:"re_eval_sec,omitempty"` // Runtime config project. If running on GCE, this defaults to the project // containing the VM. RuntimeconfigProject *string `protobuf:"bytes,2,opt,name=runtimeconfig_project,json=runtimeconfigProject" json:"runtimeconfig_project,omitempty"` // Lame duck targets runtime config name. An operator will create a variable // here to mark a target as lame-ducked. RuntimeconfigName *string `` /* 127-byte string literal not displayed */ // Lame duck targets pubsub topic name. An operator will create a message // here to mark a target as lame-ducked. PubsubTopic *string `protobuf:"bytes,7,opt,name=pubsub_topic,json=pubsubTopic" json:"pubsub_topic,omitempty"` // Lame duck expiration time. We ignore variables (targets) that have been // updated more than these many seconds ago. This is a safety mechanism for // failing to cleanup. Also, the idea is that if a target has actually // disappeared, automatic targets expansion will take care of that some time // during this expiration period. ExpirationSec *int32 `protobuf:"varint,4,opt,name=expiration_sec,json=expirationSec,def=300" json:"expiration_sec,omitempty"` // Use an RDS client to get lame-duck-targets. // This option is always true now and will be removed after v0.10.5. UseRds *bool `protobuf:"varint,5,opt,name=use_rds,json=useRds" json:"use_rds,omitempty"` // RDS server address. If not specified, RDS server address from the global // options is used, which in turn defaults to localhost:9314. RdsServerAddress *string `protobuf:"bytes,6,opt,name=rds_server_address,json=rdsServerAddress" json:"rds_server_address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Options) Descriptor ¶
func (*Options) GetExpirationSec ¶
func (*Options) GetPubsubTopic ¶ added in v0.10.5
func (*Options) GetRdsServerAddress ¶ added in v0.10.5
func (*Options) GetReEvalSec ¶
func (*Options) GetRuntimeconfigName ¶
func (*Options) GetRuntimeconfigProject ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) XXX_DiscardUnknown ¶
func (m *Options) XXX_DiscardUnknown()
func (*Options) XXX_Marshal ¶
func (*Options) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.