proto

package
v0.12.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Default_ProbeConf_Method    = ProbeConf_ECHO
	Default_ProbeConf_BlobSize  = int32(1024)
	Default_ProbeConf_NumConns  = int32(2)
	Default_ProbeConf_KeepAlive = bool(true)
)

Default values for ProbeConf fields.

Variables

View Source
var (
	ProbeConf_MethodType_name = map[int32]string{
		1: "ECHO",
		2: "READ",
		3: "WRITE",
		4: "HEALTH_CHECK",
	}
	ProbeConf_MethodType_value = map[string]int32{
		"ECHO":         1,
		"READ":         2,
		"WRITE":        3,
		"HEALTH_CHECK": 4,
	}
)

Enum value maps for ProbeConf_MethodType.

View Source
var File_github_com_cloudprober_cloudprober_probes_grpc_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ProbeConf

type ProbeConf struct {

	// Optional oauth config. For GOOGLE_DEFAULT_CREDENTIALS, use:
	// oauth_config: { bearer_token { gce_service_account: "default" } }
	OauthConfig *proto.Config `protobuf:"bytes,1,opt,name=oauth_config,json=oauthConfig" json:"oauth_config,omitempty"`
	// If alts_config is provided, gRPC client uses ALTS for authentication and
	// encryption. For default alts configs, use:
	// alts_config: {}
	AltsConfig *ProbeConf_ALTSConfig `protobuf:"bytes,2,opt,name=alts_config,json=altsConfig" json:"alts_config,omitempty"`
	// If TLSConfig is specified, it's used for authentication.
	// Note that only one of ALTSConfig and TLSConfig can be enabled at a time.
	TlsConfig *proto1.TLSConfig     `protobuf:"bytes,9,opt,name=tls_config,json=tlsConfig" json:"tls_config,omitempty"`
	Method    *ProbeConf_MethodType `protobuf:"varint,3,opt,name=method,enum=cloudprober.probes.grpc.ProbeConf_MethodType,def=1" json:"method,omitempty"`
	// Blob size for ECHO, READ, and WRITE methods.
	BlobSize *int32 `protobuf:"varint,4,opt,name=blob_size,json=blobSize,def=1024" json:"blob_size,omitempty"`
	// For HEALTH_CHECK, name of the service to health check.
	HealthCheckService *string `protobuf:"bytes,10,opt,name=health_check_service,json=healthCheckService" json:"health_check_service,omitempty"`
	// For HEALTH_CHECK, ignore status. By default, HEALTH_CHECK test passes
	// only if response-status is SERVING. Setting the following option makes
	// HEALTH_CHECK pass regardless of the response-status.
	HealthCheckIgnoreStatus *bool  `` /* 129-byte string literal not displayed */
	NumConns                *int32 `protobuf:"varint,5,opt,name=num_conns,json=numConns,def=2" json:"num_conns,omitempty"`
	KeepAlive               *bool  `protobuf:"varint,6,opt,name=keep_alive,json=keepAlive,def=1" json:"keep_alive,omitempty"`
	// If connect_timeout is not specified, reuse probe timeout.
	ConnectTimeoutMsec *int32 `protobuf:"varint,7,opt,name=connect_timeout_msec,json=connectTimeoutMsec" json:"connect_timeout_msec,omitempty"`
	// URI scheme allows gRPC to use different resolvers
	// Example URI scheme: "google-c2p:///"
	// See https://github.com/grpc/grpc/blob/master/doc/naming.md for more details
	UriScheme *string `protobuf:"bytes,8,opt,name=uri_scheme,json=uriScheme" json:"uri_scheme,omitempty"`
	// contains filtered or unexported fields
}

Next tag: 12

func (*ProbeConf) Descriptor deprecated

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

Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead.

func (*ProbeConf) GetAltsConfig

func (x *ProbeConf) GetAltsConfig() *ProbeConf_ALTSConfig

func (*ProbeConf) GetBlobSize

func (x *ProbeConf) GetBlobSize() int32

func (*ProbeConf) GetConnectTimeoutMsec

func (x *ProbeConf) GetConnectTimeoutMsec() int32

func (*ProbeConf) GetHealthCheckIgnoreStatus added in v0.11.7

func (x *ProbeConf) GetHealthCheckIgnoreStatus() bool

func (*ProbeConf) GetHealthCheckService added in v0.11.7

func (x *ProbeConf) GetHealthCheckService() string

func (*ProbeConf) GetKeepAlive

func (x *ProbeConf) GetKeepAlive() bool

func (*ProbeConf) GetMethod

func (x *ProbeConf) GetMethod() ProbeConf_MethodType

func (*ProbeConf) GetNumConns

func (x *ProbeConf) GetNumConns() int32

func (*ProbeConf) GetOauthConfig

func (x *ProbeConf) GetOauthConfig() *proto.Config

func (*ProbeConf) GetTlsConfig added in v0.11.7

func (x *ProbeConf) GetTlsConfig() *proto1.TLSConfig

func (*ProbeConf) GetUriScheme

func (x *ProbeConf) GetUriScheme() string

func (*ProbeConf) ProtoMessage

func (*ProbeConf) ProtoMessage()

func (*ProbeConf) ProtoReflect

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

func (*ProbeConf) Reset

func (x *ProbeConf) Reset()

func (*ProbeConf) String

func (x *ProbeConf) String() string

type ProbeConf_ALTSConfig

type ProbeConf_ALTSConfig struct {

	// If provided, ALTS verifies that peer is using one of the given service
	// accounts.
	TargetServiceAccount []string `protobuf:"bytes,1,rep,name=target_service_account,json=targetServiceAccount" json:"target_service_account,omitempty"`
	// Handshaker service address. Default is to use the local metadata server.
	// For most of the ALTS use cases, default address should be okay.
	HandshakerServiceAddress *string `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

ALTS is a gRPC security method supported by some Google services. If enabled, peers, with the help of a handshaker service (e.g. metadata server of GCE instances), use credentials attached to the service accounts to authenticate each other. See https://cloud.google.com/security/encryption-in-transit/#service_integrity_encryption for more details.

func (*ProbeConf_ALTSConfig) Descriptor deprecated

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

Deprecated: Use ProbeConf_ALTSConfig.ProtoReflect.Descriptor instead.

func (*ProbeConf_ALTSConfig) GetHandshakerServiceAddress

func (x *ProbeConf_ALTSConfig) GetHandshakerServiceAddress() string

func (*ProbeConf_ALTSConfig) GetTargetServiceAccount

func (x *ProbeConf_ALTSConfig) GetTargetServiceAccount() []string

func (*ProbeConf_ALTSConfig) ProtoMessage

func (*ProbeConf_ALTSConfig) ProtoMessage()

func (*ProbeConf_ALTSConfig) ProtoReflect

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

func (*ProbeConf_ALTSConfig) Reset

func (x *ProbeConf_ALTSConfig) Reset()

func (*ProbeConf_ALTSConfig) String

func (x *ProbeConf_ALTSConfig) String() string

type ProbeConf_MethodType

type ProbeConf_MethodType int32
const (
	ProbeConf_ECHO         ProbeConf_MethodType = 1
	ProbeConf_READ         ProbeConf_MethodType = 2
	ProbeConf_WRITE        ProbeConf_MethodType = 3
	ProbeConf_HEALTH_CHECK ProbeConf_MethodType = 4 // gRPC healthcheck service.
)

func (ProbeConf_MethodType) Descriptor

func (ProbeConf_MethodType) Enum

func (ProbeConf_MethodType) EnumDescriptor deprecated

func (ProbeConf_MethodType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProbeConf_MethodType.Descriptor instead.

func (ProbeConf_MethodType) Number

func (ProbeConf_MethodType) String

func (x ProbeConf_MethodType) String() string

func (ProbeConf_MethodType) Type

func (*ProbeConf_MethodType) UnmarshalJSON deprecated

func (x *ProbeConf_MethodType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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