Documentation ¶
Index ¶
- Variables
- type FileResources
- type TargetsConf
- func (*TargetsConf) Descriptor() ([]byte, []int)deprecated
- func (x *TargetsConf) GetFilePath() string
- func (x *TargetsConf) GetFilter() []*proto1.Filter
- func (x *TargetsConf) GetFormat() TargetsConf_Format
- func (x *TargetsConf) GetReEvalSec() int32
- func (*TargetsConf) ProtoMessage()
- func (x *TargetsConf) ProtoReflect() protoreflect.Message
- func (x *TargetsConf) Reset()
- func (x *TargetsConf) String() string
- type TargetsConf_Format
- func (TargetsConf_Format) Descriptor() protoreflect.EnumDescriptor
- func (x TargetsConf_Format) Enum() *TargetsConf_Format
- func (TargetsConf_Format) EnumDescriptor() ([]byte, []int)deprecated
- func (x TargetsConf_Format) Number() protoreflect.EnumNumber
- func (x TargetsConf_Format) String() string
- func (TargetsConf_Format) Type() protoreflect.EnumType
- func (x *TargetsConf_Format) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TargetsConf_Format_name = map[int32]string{ 0: "UNSPECIFIED", 1: "TEXTPB", 2: "JSON", } TargetsConf_Format_value = map[string]int32{ "UNSPECIFIED": 0, "TEXTPB": 1, "JSON": 2, } )
Enum value maps for TargetsConf_Format.
View Source
var File_github_com_google_cloudprober_targets_file_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileResources ¶
type FileResources struct { Resource []*proto1.Resource `protobuf:"bytes,1,rep,name=resource" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*FileResources) Descriptor
deprecated
func (*FileResources) Descriptor() ([]byte, []int)
Deprecated: Use FileResources.ProtoReflect.Descriptor instead.
func (*FileResources) GetResource ¶
func (x *FileResources) GetResource() []*proto1.Resource
func (*FileResources) ProtoMessage ¶
func (*FileResources) ProtoMessage()
func (*FileResources) ProtoReflect ¶
func (x *FileResources) ProtoReflect() protoreflect.Message
func (*FileResources) Reset ¶
func (x *FileResources) Reset()
func (*FileResources) String ¶
func (x *FileResources) String() string
type TargetsConf ¶
type TargetsConf struct { // File that contains resources in either textproto or json format. // Example in textproto format: // // resource { // name: "switch-xx-01" // ip: "10.11.112.3" // port: 8080 // labels { // key: "device_type" // value: "switch" // } // } // resource { // name: "switch-yy-01" // ip: "10.16.110.12" // port: 8080 // } FilePath *string `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"` Filter []*proto1.Filter `protobuf:"bytes,2,rep,name=filter" json:"filter,omitempty"` Format *TargetsConf_Format `protobuf:"varint,3,opt,name=format,enum=cloudprober.targets.file.TargetsConf_Format" json:"format,omitempty"` // If specified, file will be re-read at the given interval. ReEvalSec *int32 `protobuf:"varint,4,opt,name=re_eval_sec,json=reEvalSec" json:"re_eval_sec,omitempty"` // contains filtered or unexported fields }
func (*TargetsConf) Descriptor
deprecated
func (*TargetsConf) Descriptor() ([]byte, []int)
Deprecated: Use TargetsConf.ProtoReflect.Descriptor instead.
func (*TargetsConf) GetFilePath ¶
func (x *TargetsConf) GetFilePath() string
func (*TargetsConf) GetFilter ¶
func (x *TargetsConf) GetFilter() []*proto1.Filter
func (*TargetsConf) GetFormat ¶
func (x *TargetsConf) GetFormat() TargetsConf_Format
func (*TargetsConf) GetReEvalSec ¶
func (x *TargetsConf) GetReEvalSec() int32
func (*TargetsConf) ProtoMessage ¶
func (*TargetsConf) ProtoMessage()
func (*TargetsConf) ProtoReflect ¶
func (x *TargetsConf) ProtoReflect() protoreflect.Message
func (*TargetsConf) Reset ¶
func (x *TargetsConf) Reset()
func (*TargetsConf) String ¶
func (x *TargetsConf) String() string
type TargetsConf_Format ¶
type TargetsConf_Format int32
const ( TargetsConf_UNSPECIFIED TargetsConf_Format = 0 // Determine format using file extension/ TargetsConf_TEXTPB TargetsConf_Format = 1 // Text proto format (.textpb). TargetsConf_JSON TargetsConf_Format = 2 // JSON proto format (.json). )
func (TargetsConf_Format) Descriptor ¶
func (TargetsConf_Format) Descriptor() protoreflect.EnumDescriptor
func (TargetsConf_Format) Enum ¶
func (x TargetsConf_Format) Enum() *TargetsConf_Format
func (TargetsConf_Format) EnumDescriptor
deprecated
func (TargetsConf_Format) EnumDescriptor() ([]byte, []int)
Deprecated: Use TargetsConf_Format.Descriptor instead.
func (TargetsConf_Format) Number ¶
func (x TargetsConf_Format) Number() protoreflect.EnumNumber
func (TargetsConf_Format) String ¶
func (x TargetsConf_Format) String() string
func (TargetsConf_Format) Type ¶
func (TargetsConf_Format) Type() protoreflect.EnumType
func (*TargetsConf_Format) UnmarshalJSON
deprecated
func (x *TargetsConf_Format) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.