Documentation
¶
Index ¶
- Variables
- type SurfacerDef
- func (*SurfacerDef) Descriptor() ([]byte, []int)deprecated
- func (x *SurfacerDef) GetFileSurfacer() *proto3.SurfacerConf
- func (x *SurfacerDef) GetName() string
- func (x *SurfacerDef) GetPostgresSurfacer() *proto4.SurfacerConf
- func (x *SurfacerDef) GetPrometheusSurfacer() *proto1.SurfacerConf
- func (x *SurfacerDef) GetPubsubSurfacer() *proto5.SurfacerConf
- func (x *SurfacerDef) GetStackdriverSurfacer() *proto2.SurfacerConf
- func (m *SurfacerDef) GetSurfacer() isSurfacerDef_Surfacer
- func (x *SurfacerDef) GetType() Type
- func (*SurfacerDef) ProtoMessage()
- func (x *SurfacerDef) ProtoReflect() protoreflect.Message
- func (x *SurfacerDef) Reset()
- func (x *SurfacerDef) String() string
- type SurfacerDef_FileSurfacer
- type SurfacerDef_PostgresSurfacer
- type SurfacerDef_PrometheusSurfacer
- type SurfacerDef_PubsubSurfacer
- type SurfacerDef_StackdriverSurfacer
- type Type
- func (Type) Descriptor() protoreflect.EnumDescriptor
- func (x Type) Enum() *Type
- func (Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Type) Number() protoreflect.EnumNumber
- func (x Type) String() string
- func (Type) Type() protoreflect.EnumType
- func (x *Type) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "NONE", 1: "PROMETHEUS", 2: "STACKDRIVER", 3: "FILE", 4: "POSTGRES", 5: "PUBSUB", 99: "USER_DEFINED", } Type_value = map[string]int32{ "NONE": 0, "PROMETHEUS": 1, "STACKDRIVER": 2, "FILE": 3, "POSTGRES": 4, "PUBSUB": 5, "USER_DEFINED": 99, } )
Enum value maps for Type.
View Source
var File_github_com_google_cloudprober_surfacers_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SurfacerDef ¶
type SurfacerDef struct { // This name is used for logging. If not defined, it's derived from the type. // Note that this field is required for the USER_DEFINED surfacer type and // should match with the name that you used while registering the user defined // surfacer. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Type *Type `protobuf:"varint,2,opt,name=type,enum=cloudprober.surfacer.Type" json:"type,omitempty"` // Matching surfacer specific configuration (one for each type in the above // enum) // // Types that are assignable to Surfacer: // *SurfacerDef_PrometheusSurfacer // *SurfacerDef_StackdriverSurfacer // *SurfacerDef_FileSurfacer // *SurfacerDef_PostgresSurfacer // *SurfacerDef_PubsubSurfacer Surfacer isSurfacerDef_Surfacer `protobuf_oneof:"surfacer"` // contains filtered or unexported fields }
func (*SurfacerDef) Descriptor
deprecated
func (*SurfacerDef) Descriptor() ([]byte, []int)
Deprecated: Use SurfacerDef.ProtoReflect.Descriptor instead.
func (*SurfacerDef) GetFileSurfacer ¶
func (x *SurfacerDef) GetFileSurfacer() *proto3.SurfacerConf
func (*SurfacerDef) GetName ¶
func (x *SurfacerDef) GetName() string
func (*SurfacerDef) GetPostgresSurfacer ¶
func (x *SurfacerDef) GetPostgresSurfacer() *proto4.SurfacerConf
func (*SurfacerDef) GetPrometheusSurfacer ¶
func (x *SurfacerDef) GetPrometheusSurfacer() *proto1.SurfacerConf
func (*SurfacerDef) GetPubsubSurfacer ¶ added in v0.11.0
func (x *SurfacerDef) GetPubsubSurfacer() *proto5.SurfacerConf
func (*SurfacerDef) GetStackdriverSurfacer ¶
func (x *SurfacerDef) GetStackdriverSurfacer() *proto2.SurfacerConf
func (*SurfacerDef) GetSurfacer ¶
func (m *SurfacerDef) GetSurfacer() isSurfacerDef_Surfacer
func (*SurfacerDef) GetType ¶
func (x *SurfacerDef) GetType() Type
func (*SurfacerDef) ProtoMessage ¶
func (*SurfacerDef) ProtoMessage()
func (*SurfacerDef) ProtoReflect ¶ added in v0.10.8
func (x *SurfacerDef) ProtoReflect() protoreflect.Message
func (*SurfacerDef) Reset ¶
func (x *SurfacerDef) Reset()
func (*SurfacerDef) String ¶
func (x *SurfacerDef) String() string
type SurfacerDef_FileSurfacer ¶
type SurfacerDef_FileSurfacer struct {
FileSurfacer *proto3.SurfacerConf `protobuf:"bytes,12,opt,name=file_surfacer,json=fileSurfacer,oneof"`
}
type SurfacerDef_PostgresSurfacer ¶
type SurfacerDef_PostgresSurfacer struct {
PostgresSurfacer *proto4.SurfacerConf `protobuf:"bytes,13,opt,name=postgres_surfacer,json=postgresSurfacer,oneof"`
}
type SurfacerDef_PrometheusSurfacer ¶
type SurfacerDef_PrometheusSurfacer struct {
PrometheusSurfacer *proto1.SurfacerConf `protobuf:"bytes,10,opt,name=prometheus_surfacer,json=prometheusSurfacer,oneof"`
}
type SurfacerDef_PubsubSurfacer ¶ added in v0.11.0
type SurfacerDef_PubsubSurfacer struct {
PubsubSurfacer *proto5.SurfacerConf `protobuf:"bytes,14,opt,name=pubsub_surfacer,json=pubsubSurfacer,oneof"`
}
type SurfacerDef_StackdriverSurfacer ¶
type SurfacerDef_StackdriverSurfacer struct {
StackdriverSurfacer *proto2.SurfacerConf `protobuf:"bytes,11,opt,name=stackdriver_surfacer,json=stackdriverSurfacer,oneof"`
}
type Type ¶
type Type int32
Enumeration for each type of surfacer we can parse and create
func (Type) Descriptor ¶ added in v0.10.8
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶ added in v0.10.8
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶ added in v0.10.8
func (Type) Type() protoreflect.EnumType
func (*Type) UnmarshalJSON
deprecated
Click to show internal directories.
Click to hide internal directories.