Documentation ¶
Index ¶
- Variables
- type FileResources
- type ProviderConfig
- func (*ProviderConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderConfig) GetDisableModifiedTimeCheck() bool
- func (x *ProviderConfig) GetFilePath() []string
- func (x *ProviderConfig) GetFormat() ProviderConfig_Format
- func (x *ProviderConfig) GetReEvalSec() int32
- func (*ProviderConfig) ProtoMessage()
- func (x *ProviderConfig) ProtoReflect() protoreflect.Message
- func (x *ProviderConfig) Reset()
- func (x *ProviderConfig) String() string
- type ProviderConfig_Format
- func (ProviderConfig_Format) Descriptor() protoreflect.EnumDescriptor
- func (x ProviderConfig_Format) Enum() *ProviderConfig_Format
- func (ProviderConfig_Format) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProviderConfig_Format) Number() protoreflect.EnumNumber
- func (x ProviderConfig_Format) String() string
- func (ProviderConfig_Format) Type() protoreflect.EnumType
- func (x *ProviderConfig_Format) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProviderConfig_Format_name = map[int32]string{ 0: "UNSPECIFIED", 1: "TEXTPB", 2: "JSON", } ProviderConfig_Format_value = map[string]int32{ "UNSPECIFIED": 0, "TEXTPB": 1, "JSON": 2, } )
Enum value maps for ProviderConfig_Format.
View Source
var File_github_com_google_cloudprober_rds_file_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileResources ¶
type FileResources struct { Resource []*proto.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() []*proto.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 ProviderConfig ¶
type ProviderConfig 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,rep,name=file_path,json=filePath" json:"file_path,omitempty"` Format *ProviderConfig_Format `protobuf:"varint,2,opt,name=format,enum=cloudprober.rds.file.ProviderConfig_Format" json:"format,omitempty"` // If specified, file will be re-read at the given interval. ReEvalSec *int32 `protobuf:"varint,3,opt,name=re_eval_sec,json=reEvalSec" json:"re_eval_sec,omitempty"` // Whenever possible, we reload a file only if it has been modified since the // last load. If following option is set, mod time check is disabled. // Note that mod-time check doesn't work for GCS. DisableModifiedTimeCheck *bool `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
File provider config.
func (*ProviderConfig) Descriptor
deprecated
func (*ProviderConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProviderConfig.ProtoReflect.Descriptor instead.
func (*ProviderConfig) GetDisableModifiedTimeCheck ¶
func (x *ProviderConfig) GetDisableModifiedTimeCheck() bool
func (*ProviderConfig) GetFilePath ¶
func (x *ProviderConfig) GetFilePath() []string
func (*ProviderConfig) GetFormat ¶
func (x *ProviderConfig) GetFormat() ProviderConfig_Format
func (*ProviderConfig) GetReEvalSec ¶
func (x *ProviderConfig) GetReEvalSec() int32
func (*ProviderConfig) ProtoMessage ¶
func (*ProviderConfig) ProtoMessage()
func (*ProviderConfig) ProtoReflect ¶
func (x *ProviderConfig) ProtoReflect() protoreflect.Message
func (*ProviderConfig) Reset ¶
func (x *ProviderConfig) Reset()
func (*ProviderConfig) String ¶
func (x *ProviderConfig) String() string
type ProviderConfig_Format ¶
type ProviderConfig_Format int32
const ( ProviderConfig_UNSPECIFIED ProviderConfig_Format = 0 // Determine format using file extension/ ProviderConfig_TEXTPB ProviderConfig_Format = 1 // Text proto format (.textpb). ProviderConfig_JSON ProviderConfig_Format = 2 // JSON proto format (.json). )
func (ProviderConfig_Format) Descriptor ¶
func (ProviderConfig_Format) Descriptor() protoreflect.EnumDescriptor
func (ProviderConfig_Format) Enum ¶
func (x ProviderConfig_Format) Enum() *ProviderConfig_Format
func (ProviderConfig_Format) EnumDescriptor
deprecated
func (ProviderConfig_Format) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProviderConfig_Format.Descriptor instead.
func (ProviderConfig_Format) Number ¶
func (x ProviderConfig_Format) Number() protoreflect.EnumNumber
func (ProviderConfig_Format) String ¶
func (x ProviderConfig_Format) String() string
func (ProviderConfig_Format) Type ¶
func (ProviderConfig_Format) Type() protoreflect.EnumType
func (*ProviderConfig_Format) UnmarshalJSON
deprecated
func (x *ProviderConfig_Format) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.