proto

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_ClientConf_ReEvalSec = int32(30)
)

Default values for ClientConf fields.

Variables

View Source
var File_github_com_cloudprober_cloudprober_internal_rds_client_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClientConf

type ClientConf struct {
	ServerOptions *ClientConf_ServerOptions   `protobuf:"bytes,1,opt,name=server_options,json=serverOptions" json:"server_options,omitempty"`
	Request       *proto.ListResourcesRequest `protobuf:"bytes,2,req,name=request" json:"request,omitempty"`
	// How often targets should be evaluated. Any number less than or equal to 0
	// will result in no target caching (targets will be reevaluated on demand).
	// Note that individual target types may have their own caches implemented
	// (specifically GCE instances/forwarding rules). This does not impact those
	// caches.
	ReEvalSec *int32 `protobuf:"varint,3,opt,name=re_eval_sec,json=reEvalSec,def=30" json:"re_eval_sec,omitempty"`
	// contains filtered or unexported fields
}

ClientConf represents resource discovery service (RDS) based targets. Next tag: 6

func (*ClientConf) Descriptor deprecated

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

Deprecated: Use ClientConf.ProtoReflect.Descriptor instead.

func (*ClientConf) GetReEvalSec

func (x *ClientConf) GetReEvalSec() int32

func (*ClientConf) GetRequest

func (x *ClientConf) GetRequest() *proto.ListResourcesRequest

func (*ClientConf) GetServerOptions

func (x *ClientConf) GetServerOptions() *ClientConf_ServerOptions

func (*ClientConf) ProtoMessage

func (*ClientConf) ProtoMessage()

func (*ClientConf) ProtoReflect

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

func (*ClientConf) Reset

func (x *ClientConf) Reset()

func (*ClientConf) String

func (x *ClientConf) String() string

type ClientConf_ServerOptions

type ClientConf_ServerOptions struct {
	ServerAddress *string `protobuf:"bytes,1,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"`
	// Optional oauth config for authentication.
	OauthConfig *proto1.Config `protobuf:"bytes,2,opt,name=oauth_config,json=oauthConfig" json:"oauth_config,omitempty"`
	// TLS config, it can be used to:
	//   - Specify a CA cert for server cert verification:
	//     tls_config {
	//     ca_cert_file: "...."
	//     }
	//
	//   - Specify client's TLS cert and key:
	//     tls_config {
	//     tls_cert_file: "..."
	//     tls_key_file: "..."
	//     }
	TlsConfig *proto2.TLSConfig `protobuf:"bytes,3,opt,name=tls_config,json=tlsConfig" json:"tls_config,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientConf_ServerOptions) Descriptor deprecated

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

Deprecated: Use ClientConf_ServerOptions.ProtoReflect.Descriptor instead.

func (*ClientConf_ServerOptions) GetOauthConfig

func (x *ClientConf_ServerOptions) GetOauthConfig() *proto1.Config

func (*ClientConf_ServerOptions) GetServerAddress

func (x *ClientConf_ServerOptions) GetServerAddress() string

func (*ClientConf_ServerOptions) GetTlsConfig

func (x *ClientConf_ServerOptions) GetTlsConfig() *proto2.TLSConfig

func (*ClientConf_ServerOptions) ProtoMessage

func (*ClientConf_ServerOptions) ProtoMessage()

func (*ClientConf_ServerOptions) ProtoReflect

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

func (*ClientConf_ServerOptions) Reset

func (x *ClientConf_ServerOptions) Reset()

func (*ClientConf_ServerOptions) String

func (x *ClientConf_ServerOptions) String() string

Jump to

Keyboard shortcuts

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