proto

package
v0.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_google_cloudprober_targets_file_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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   []*proto.Filter               `protobuf:"bytes,2,rep,name=filter" json:"filter,omitempty"`
	Format   *proto1.ProviderConfig_Format `protobuf:"varint,3,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,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() []*proto.Filter

func (*TargetsConf) GetFormat

func (x *TargetsConf) GetFormat() proto1.ProviderConfig_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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL