proto

package
v0.0.0-...-e1c190b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

github.com/google/cloudprober/targets/proto/targets.proto

It has these top-level messages:

TargetsDef
DummyTargets
GlobalTargetsOptions

Index

Constants

View Source
const Default_TargetsDef_ExcludeLameducks bool = true
View Source
const Default_TargetsDef_ReEvalSec int32 = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyTargets

type DummyTargets struct {
	XXX_unrecognized []byte `json:"-"`
}

DummyTargets represent empty targets, which are useful for external probes that do not have any "proper" targets. Such as ilbprober.

func (*DummyTargets) Descriptor

func (*DummyTargets) Descriptor() ([]byte, []int)

func (*DummyTargets) ProtoMessage

func (*DummyTargets) ProtoMessage()

func (*DummyTargets) Reset

func (m *DummyTargets) Reset()

func (*DummyTargets) String

func (m *DummyTargets) String() string

type GlobalTargetsOptions

type GlobalTargetsOptions struct {
	// GCE targets options.
	GlobalGceTargetsOptions *cloudprober_targets_gce.GlobalOptions `` /* 127-byte string literal not displayed */
	// Lame duck options. If provided, targets module checks for the lame duck
	// targets and removes them from the targets list.
	LameDuckOptions  *cloudprober_targets_lameduck.Options `protobuf:"bytes,2,opt,name=lame_duck_options,json=lameDuckOptions" json:"lame_duck_options,omitempty"`
	XXX_unrecognized []byte                                `json:"-"`
}

Global targets options. These options are independent of the per-probe targets which are defined by the "Targets" type above.

Currently these options are used only for GCE targets to control things like how often to re-evaluate the targets and whether to check for lame ducks or not.

func (*GlobalTargetsOptions) Descriptor

func (*GlobalTargetsOptions) Descriptor() ([]byte, []int)

func (*GlobalTargetsOptions) GetGlobalGceTargetsOptions

func (m *GlobalTargetsOptions) GetGlobalGceTargetsOptions() *cloudprober_targets_gce.GlobalOptions

func (*GlobalTargetsOptions) GetLameDuckOptions

func (*GlobalTargetsOptions) ProtoMessage

func (*GlobalTargetsOptions) ProtoMessage()

func (*GlobalTargetsOptions) Reset

func (m *GlobalTargetsOptions) Reset()

func (*GlobalTargetsOptions) String

func (m *GlobalTargetsOptions) String() string

type TargetsDef

type TargetsDef struct {
	// Types that are valid to be assigned to Type:
	//	*TargetsDef_HostNames
	//	*TargetsDef_GceTargets
	//	*TargetsDef_RtcTargets
	//	*TargetsDef_DummyTargets
	Type isTargetsDef_Type `protobuf_oneof:"type"`
	// Regex to apply on the targets.
	Regex *string `protobuf:"bytes,4,opt,name=regex" json:"regex,omitempty"`
	// Exclude lameducks. Lameduck targets can be set through RTC (realtime
	// configurator) service. This functionality works only if lame_duck_options
	// are specified.
	ExcludeLameducks *bool `protobuf:"varint,5,opt,name=exclude_lameducks,json=excludeLameducks,def=1" json:"exclude_lameducks,omitempty"`
	// How often targets should be evaluated. Any number less than or equal to 0
	// will result in no target caching (targets will be reevaluated on demand).
	// Note that individual target types may have their own caches implemented
	// (specifically GCE instances/forwarding rules). This does not impact those
	// caches.
	ReEvalSec                     *int32 `protobuf:"varint,6,opt,name=re_eval_sec,json=reEvalSec,def=0" json:"re_eval_sec,omitempty"`
	proto1.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized              []byte `json:"-"`
}

func (*TargetsDef) Descriptor

func (*TargetsDef) Descriptor() ([]byte, []int)

func (*TargetsDef) ExtensionRangeArray

func (*TargetsDef) ExtensionRangeArray() []proto1.ExtensionRange

func (*TargetsDef) GetDummyTargets

func (m *TargetsDef) GetDummyTargets() *DummyTargets

func (*TargetsDef) GetExcludeLameducks

func (m *TargetsDef) GetExcludeLameducks() bool

func (*TargetsDef) GetGceTargets

func (m *TargetsDef) GetGceTargets() *cloudprober_targets_gce.TargetsConf

func (*TargetsDef) GetHostNames

func (m *TargetsDef) GetHostNames() string

func (*TargetsDef) GetReEvalSec

func (m *TargetsDef) GetReEvalSec() int32

func (*TargetsDef) GetRegex

func (m *TargetsDef) GetRegex() string

func (*TargetsDef) GetRtcTargets

func (m *TargetsDef) GetRtcTargets() *cloudprober_targets_rtc.TargetsConf

func (*TargetsDef) GetType

func (m *TargetsDef) GetType() isTargetsDef_Type

func (*TargetsDef) ProtoMessage

func (*TargetsDef) ProtoMessage()

func (*TargetsDef) Reset

func (m *TargetsDef) Reset()

func (*TargetsDef) String

func (m *TargetsDef) String() string

func (*TargetsDef) XXX_OneofFuncs

func (*TargetsDef) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type TargetsDef_DummyTargets

type TargetsDef_DummyTargets struct {
	DummyTargets *DummyTargets `protobuf:"bytes,7,opt,name=dummy_targets,json=dummyTargets,oneof"`
}

type TargetsDef_GceTargets

type TargetsDef_GceTargets struct {
	GceTargets *cloudprober_targets_gce.TargetsConf `protobuf:"bytes,2,opt,name=gce_targets,json=gceTargets,oneof"`
}

type TargetsDef_HostNames

type TargetsDef_HostNames struct {
	HostNames string `protobuf:"bytes,1,opt,name=host_names,json=hostNames,oneof"`
}

type TargetsDef_RtcTargets

type TargetsDef_RtcTargets struct {
	RtcTargets *cloudprober_targets_rtc.TargetsConf `protobuf:"bytes,3,opt,name=rtc_targets,json=rtcTargets,oneof"`
}

Jump to

Keyboard shortcuts

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