proto

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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_cloudprober_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 *proto.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) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetExpirationSec

func (x *Options) GetExpirationSec() int32

func (*Options) GetPubsubTopic added in v0.10.5

func (x *Options) GetPubsubTopic() string

func (*Options) GetRdsServerOptions added in v0.11.4

func (x *Options) GetRdsServerOptions() *proto.ClientConf_ServerOptions

func (*Options) GetReEvalSec

func (x *Options) GetReEvalSec() int32

func (*Options) GetRuntimeconfigName

func (x *Options) GetRuntimeconfigName() string

func (*Options) GetRuntimeconfigProject

func (x *Options) GetRuntimeconfigProject() string

func (*Options) GetUseRds deprecated added in v0.10.2

func (x *Options) GetUseRds() bool

Deprecated: Do not use.

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) ProtoReflect added in v0.11.4

func (x *Options) ProtoReflect() protoreflect.Message

func (*Options) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

Jump to

Keyboard shortcuts

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