Documentation ¶
Index ¶
- Constants
- Variables
- 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) GetKeepAlive() bool
- func (x *ProbeConf) GetMethod() ProbeConf_MethodType
- func (x *ProbeConf) GetNumConns() int32
- func (x *ProbeConf) GetOauthConfig() *proto.Config
- 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_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 ¶
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", } ProbeConf_MethodType_value = map[string]int32{ "ECHO": 1, "READ": 2, "WRITE": 3, } )
Enum value maps for ProbeConf_MethodType.
View Source
var File_github_com_google_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"` Method *ProbeConf_MethodType `protobuf:"varint,3,opt,name=method,enum=cloudprober.probes.grpc.ProbeConf_MethodType,def=1" json:"method,omitempty"` BlobSize *int32 `protobuf:"varint,4,opt,name=blob_size,json=blobSize,def=1024" json:"blob_size,omitempty"` 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"` // contains filtered or unexported fields }
func (*ProbeConf) Descriptor
deprecated
func (*ProbeConf) GetAltsConfig ¶
func (x *ProbeConf) GetAltsConfig() *ProbeConf_ALTSConfig
func (*ProbeConf) GetBlobSize ¶
func (*ProbeConf) GetConnectTimeoutMsec ¶
func (*ProbeConf) GetKeepAlive ¶
func (*ProbeConf) GetMethod ¶
func (x *ProbeConf) GetMethod() ProbeConf_MethodType
func (*ProbeConf) GetNumConns ¶
func (*ProbeConf) GetOauthConfig ¶
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
func (*ProbeConf) ProtoReflect ¶ added in v0.10.8
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 ¶ added in v0.10.8
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 )
func (ProbeConf_MethodType) Descriptor ¶ added in v0.10.8
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 ¶ added in v0.10.8
func (x ProbeConf_MethodType) Number() protoreflect.EnumNumber
func (ProbeConf_MethodType) String ¶
func (x ProbeConf_MethodType) String() string
func (ProbeConf_MethodType) Type ¶ added in v0.10.8
func (ProbeConf_MethodType) Type() protoreflect.EnumType
func (*ProbeConf_MethodType) UnmarshalJSON
deprecated
func (x *ProbeConf_MethodType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.