Documentation ¶
Index ¶
- Constants
- Variables
- type GenericRequest
- func (*GenericRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenericRequest) GetBody() string
- func (x *GenericRequest) GetCallServiceMethod() string
- func (x *GenericRequest) GetDescribeServiceMethod() string
- func (x *GenericRequest) GetListServiceMethods() string
- func (x *GenericRequest) GetListServices() bool
- func (x *GenericRequest) GetProtosetFile() string
- func (m *GenericRequest) GetRequestType() isGenericRequest_RequestType
- func (*GenericRequest) ProtoMessage()
- func (x *GenericRequest) ProtoReflect() protoreflect.Message
- func (x *GenericRequest) Reset()
- func (x *GenericRequest) String() string
- type GenericRequest_CallServiceMethod
- type GenericRequest_DescribeServiceMethod
- type GenericRequest_ListServiceMethods
- type GenericRequest_ListServices
- type ProbeConf
- func (*ProbeConf) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeConf) GetAltsConfig() *ProbeConf_ALTSConfig
- func (x *ProbeConf) GetBlobSize() int32
- func (x *ProbeConf) GetConnectTimeoutMsec() int32
- func (x *ProbeConf) GetHeaders() []*ProbeConf_Header
- func (x *ProbeConf) GetHealthCheckIgnoreStatus() bool
- func (x *ProbeConf) GetHealthCheckService() string
- func (x *ProbeConf) GetInsecureTransport() bool
- func (x *ProbeConf) GetKeepAlive() bool
- func (x *ProbeConf) GetMethod() ProbeConf_MethodType
- func (x *ProbeConf) GetNumConns() int32
- func (x *ProbeConf) GetOauthConfig() *proto.Config
- func (x *ProbeConf) GetRequest() *GenericRequest
- func (x *ProbeConf) GetTlsConfig() *proto1.TLSConfig
- func (x *ProbeConf) GetUriScheme() string
- func (*ProbeConf) ProtoMessage()
- func (x *ProbeConf) ProtoReflect() protoreflect.Message
- func (x *ProbeConf) Reset()
- func (x *ProbeConf) String() string
- type ProbeConf_ALTSConfig
- func (*ProbeConf_ALTSConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeConf_ALTSConfig) GetHandshakerServiceAddress() string
- func (x *ProbeConf_ALTSConfig) GetTargetServiceAccount() []string
- func (*ProbeConf_ALTSConfig) ProtoMessage()
- func (x *ProbeConf_ALTSConfig) ProtoReflect() protoreflect.Message
- func (x *ProbeConf_ALTSConfig) Reset()
- func (x *ProbeConf_ALTSConfig) String() string
- type ProbeConf_Header
- func (*ProbeConf_Header) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeConf_Header) GetName() string
- func (x *ProbeConf_Header) GetValue() string
- func (*ProbeConf_Header) ProtoMessage()
- func (x *ProbeConf_Header) ProtoReflect() protoreflect.Message
- func (x *ProbeConf_Header) Reset()
- func (x *ProbeConf_Header) String() string
- type ProbeConf_MethodType
- func (ProbeConf_MethodType) Descriptor() protoreflect.EnumDescriptor
- func (x ProbeConf_MethodType) Enum() *ProbeConf_MethodType
- func (ProbeConf_MethodType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProbeConf_MethodType) Number() protoreflect.EnumNumber
- func (x ProbeConf_MethodType) String() string
- func (ProbeConf_MethodType) Type() protoreflect.EnumType
- func (x *ProbeConf_MethodType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_ProbeConf_Method = ProbeConf_ECHO Default_ProbeConf_BlobSize = int32(1024) Default_ProbeConf_KeepAlive = bool(true) )
Default values for ProbeConf fields.
Variables ¶
var ( ProbeConf_MethodType_name = map[int32]string{ 1: "ECHO", 2: "READ", 3: "WRITE", 4: "HEALTH_CHECK", 5: "GENERIC", } ProbeConf_MethodType_value = map[string]int32{ "ECHO": 1, "READ": 2, "WRITE": 3, "HEALTH_CHECK": 4, "GENERIC": 5, } )
Enum value maps for ProbeConf_MethodType.
var File_github_com_cloudprober_cloudprober_probes_grpc_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GenericRequest ¶ added in v0.12.9
type GenericRequest struct { // Protoset contains descriptor source protos generated from the *.proto // files. You can use protoc to generate protoset files: // // protoc --proto_path=. --descriptor_set_out=myservice.protoset \ // --include_imports my/custom/server/service.proto ProtosetFile *string `protobuf:"bytes,1,opt,name=protoset_file,json=protosetFile" json:"protoset_file,omitempty"` // Note first 3 methods are valid only if descriptor source is not set. // // Types that are assignable to RequestType: // // *GenericRequest_ListServices // *GenericRequest_ListServiceMethods // *GenericRequest_DescribeServiceMethod // *GenericRequest_CallServiceMethod RequestType isGenericRequest_RequestType `protobuf_oneof:"request_type"` // Request data (in JSON format) for the call_service_method request. Body *string `protobuf:"bytes,6,opt,name=body" json:"body,omitempty"` // contains filtered or unexported fields }
func (*GenericRequest) Descriptor
deprecated
added in
v0.12.9
func (*GenericRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenericRequest.ProtoReflect.Descriptor instead.
func (*GenericRequest) GetBody ¶ added in v0.12.9
func (x *GenericRequest) GetBody() string
func (*GenericRequest) GetCallServiceMethod ¶ added in v0.12.9
func (x *GenericRequest) GetCallServiceMethod() string
func (*GenericRequest) GetDescribeServiceMethod ¶ added in v0.12.9
func (x *GenericRequest) GetDescribeServiceMethod() string
func (*GenericRequest) GetListServiceMethods ¶ added in v0.12.9
func (x *GenericRequest) GetListServiceMethods() string
func (*GenericRequest) GetListServices ¶ added in v0.12.9
func (x *GenericRequest) GetListServices() bool
func (*GenericRequest) GetProtosetFile ¶ added in v0.12.9
func (x *GenericRequest) GetProtosetFile() string
func (*GenericRequest) GetRequestType ¶ added in v0.12.9
func (m *GenericRequest) GetRequestType() isGenericRequest_RequestType
func (*GenericRequest) ProtoMessage ¶ added in v0.12.9
func (*GenericRequest) ProtoMessage()
func (*GenericRequest) ProtoReflect ¶ added in v0.12.9
func (x *GenericRequest) ProtoReflect() protoreflect.Message
func (*GenericRequest) Reset ¶ added in v0.12.9
func (x *GenericRequest) Reset()
func (*GenericRequest) String ¶ added in v0.12.9
func (x *GenericRequest) String() string
type GenericRequest_CallServiceMethod ¶ added in v0.12.9
type GenericRequest_CallServiceMethod struct { // Call service method. For this to succeed, you should either provide the // protoset file or the server should support gRPC reflection. // https://github.com/grpc/grpc/blob/master/doc/server-reflection.md CallServiceMethod string `protobuf:"bytes,5,opt,name=call_service_method,json=callServiceMethod,oneof"` }
type GenericRequest_DescribeServiceMethod ¶ added in v0.12.9
type GenericRequest_DescribeServiceMethod struct { // Describe service method using reflection. DescribeServiceMethod string `protobuf:"bytes,4,opt,name=describe_service_method,json=describeServiceMethod,oneof"` }
type GenericRequest_ListServiceMethods ¶ added in v0.12.9
type GenericRequest_ListServiceMethods struct { // List service methods using reflection. ListServiceMethods string `protobuf:"bytes,3,opt,name=list_service_methods,json=listServiceMethods,oneof"` }
type GenericRequest_ListServices ¶ added in v0.12.9
type GenericRequest_ListServices struct { // List services using reflection ListServices bool `protobuf:"varint,2,opt,name=list_services,json=listServices,oneof"` }
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"` // if insecure_transport is set to true, TLS will not be used. InsecureTransport *bool `protobuf:"varint,12,opt,name=insecure_transport,json=insecureTransport" json:"insecure_transport,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 */ // Request definition for the GENERIC method. Request *GenericRequest `protobuf:"bytes,14,opt,name=request" json:"request,omitempty"` // Number of connections to use. Default is 2 for ECHO, READ and WRITE // methods for backward compatibility. For HEALTH_CHECK and GENERIC, default // is 1. NumConns *int32 `protobuf:"varint,5,opt,name=num_conns,json=numConns" 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"` Headers []*ProbeConf_Header `protobuf:"bytes,13,rep,name=headers" json:"headers,omitempty"` // contains filtered or unexported fields }
Next tag: 14
func (*ProbeConf) Descriptor
deprecated
func (*ProbeConf) GetAltsConfig ¶
func (x *ProbeConf) GetAltsConfig() *ProbeConf_ALTSConfig
func (*ProbeConf) GetBlobSize ¶
func (*ProbeConf) GetConnectTimeoutMsec ¶
func (*ProbeConf) GetHeaders ¶ added in v0.12.4
func (x *ProbeConf) GetHeaders() []*ProbeConf_Header
func (*ProbeConf) GetHealthCheckIgnoreStatus ¶ added in v0.11.7
func (*ProbeConf) GetHealthCheckService ¶ added in v0.11.7
func (*ProbeConf) GetInsecureTransport ¶ added in v0.12.4
func (*ProbeConf) GetKeepAlive ¶
func (*ProbeConf) GetMethod ¶
func (x *ProbeConf) GetMethod() ProbeConf_MethodType
func (*ProbeConf) GetNumConns ¶
func (*ProbeConf) GetOauthConfig ¶
func (*ProbeConf) GetRequest ¶ added in v0.12.9
func (x *ProbeConf) GetRequest() *GenericRequest
func (*ProbeConf) GetTlsConfig ¶ added in v0.11.7
func (*ProbeConf) GetUriScheme ¶
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
func (*ProbeConf) ProtoReflect ¶
func (x *ProbeConf) ProtoReflect() protoreflect.Message
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_Header ¶ added in v0.12.4
type ProbeConf_Header struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ProbeConf_Header) Descriptor
deprecated
added in
v0.12.4
func (*ProbeConf_Header) Descriptor() ([]byte, []int)
Deprecated: Use ProbeConf_Header.ProtoReflect.Descriptor instead.
func (*ProbeConf_Header) GetName ¶ added in v0.12.4
func (x *ProbeConf_Header) GetName() string
func (*ProbeConf_Header) GetValue ¶ added in v0.12.4
func (x *ProbeConf_Header) GetValue() string
func (*ProbeConf_Header) ProtoMessage ¶ added in v0.12.4
func (*ProbeConf_Header) ProtoMessage()
func (*ProbeConf_Header) ProtoReflect ¶ added in v0.12.4
func (x *ProbeConf_Header) ProtoReflect() protoreflect.Message
func (*ProbeConf_Header) Reset ¶ added in v0.12.4
func (x *ProbeConf_Header) Reset()
func (*ProbeConf_Header) String ¶ added in v0.12.4
func (x *ProbeConf_Header) 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. ProbeConf_GENERIC ProbeConf_MethodType = 5 // Generic gRPC request. )
func (ProbeConf_MethodType) Descriptor ¶
func (ProbeConf_MethodType) Descriptor() protoreflect.EnumDescriptor
func (ProbeConf_MethodType) Enum ¶
func (x ProbeConf_MethodType) Enum() *ProbeConf_MethodType
func (ProbeConf_MethodType) EnumDescriptor
deprecated
func (ProbeConf_MethodType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProbeConf_MethodType.Descriptor instead.
func (ProbeConf_MethodType) Number ¶
func (x ProbeConf_MethodType) Number() protoreflect.EnumNumber
func (ProbeConf_MethodType) String ¶
func (x ProbeConf_MethodType) String() string
func (ProbeConf_MethodType) Type ¶
func (ProbeConf_MethodType) Type() protoreflect.EnumType
func (*ProbeConf_MethodType) UnmarshalJSON
deprecated
func (x *ProbeConf_MethodType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.