Documentation
¶
Index ¶
- Constants
- Variables
- type Options
- func (*Options) Descriptor() ([]byte, []int)deprecated
- func (x *Options) GetExpirationSec() int32
- func (x *Options) GetPubsubTopic() string
- func (x *Options) GetRdsServerOptions() *proto1.ClientConf_ServerOptions
- func (x *Options) GetReEvalSec() int32
- func (x *Options) GetRuntimeconfigName() string
- func (x *Options) GetRuntimeconfigProject() string
- func (x *Options) GetUseRds() booldeprecated
- func (*Options) ProtoMessage()
- func (x *Options) ProtoReflect() protoreflect.Message
- func (x *Options) Reset()
- func (x *Options) String() string
Constants ¶
View Source
const ( Default_Options_ReEvalSec = int32(10) Default_Options_RuntimeconfigName = string("lame-duck-targets") Default_Options_ExpirationSec = int32(300) )
Default values for Options fields.
Variables ¶
View Source
var File_github_com_google_cloudprober_targets_lameduck_proto_config_proto protoreflect.FileDescriptor
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.7. // // Deprecated: Do not use. UseRds *bool `protobuf:"varint,5,opt,name=use_rds,json=useRds" json:"use_rds,omitempty"` // RDS server options, for example: // rds_server_options { // server_address: "rds-server.xyz:9314" // oauth_config: { // ... // } RdsServerOptions *proto1.ClientConf_ServerOptions `protobuf:"bytes,6,opt,name=rds_server_options,json=rdsServerOptions" json:"rds_server_options,omitempty"` // contains filtered or unexported fields }
func (*Options) Descriptor
deprecated
func (*Options) GetExpirationSec ¶
func (*Options) GetPubsubTopic ¶ added in v0.10.5
func (*Options) GetRdsServerOptions ¶ added in v0.10.7
func (x *Options) GetRdsServerOptions() *proto1.ClientConf_ServerOptions
func (*Options) GetReEvalSec ¶
func (*Options) GetRuntimeconfigName ¶
func (*Options) GetRuntimeconfigProject ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) ProtoReflect ¶ added in v0.10.8
func (x *Options) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.