Documentation ¶
Index ¶
- Constants
- Variables
- type ForwardingRules
- type GlobalOptions
- func (*GlobalOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GlobalOptions) GetApiVersion() string
- func (x *GlobalOptions) GetReEvalSec() int32
- func (*GlobalOptions) ProtoMessage()
- func (x *GlobalOptions) ProtoReflect() protoreflect.Message
- func (x *GlobalOptions) Reset()
- func (x *GlobalOptions) String() string
- type Instances
- func (*Instances) Descriptor() ([]byte, []int)deprecated
- func (x *Instances) GetLabel() []string
- func (x *Instances) GetNetworkInterface() *Instances_NetworkInterface
- func (x *Instances) GetUseDnsToResolve() bool
- func (*Instances) ProtoMessage()
- func (x *Instances) ProtoReflect() protoreflect.Message
- func (x *Instances) Reset()
- func (x *Instances) String() string
- type Instances_NetworkInterface
- func (*Instances_NetworkInterface) Descriptor() ([]byte, []int)deprecated
- func (x *Instances_NetworkInterface) GetIndex() int32
- func (x *Instances_NetworkInterface) GetIpType() Instances_NetworkInterface_IPType
- func (*Instances_NetworkInterface) ProtoMessage()
- func (x *Instances_NetworkInterface) ProtoReflect() protoreflect.Message
- func (x *Instances_NetworkInterface) Reset()
- func (x *Instances_NetworkInterface) String() string
- type Instances_NetworkInterface_IPType
- func (Instances_NetworkInterface_IPType) Descriptor() protoreflect.EnumDescriptor
- func (x Instances_NetworkInterface_IPType) Enum() *Instances_NetworkInterface_IPType
- func (Instances_NetworkInterface_IPType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Instances_NetworkInterface_IPType) Number() protoreflect.EnumNumber
- func (x Instances_NetworkInterface_IPType) String() string
- func (Instances_NetworkInterface_IPType) Type() protoreflect.EnumType
- func (x *Instances_NetworkInterface_IPType) UnmarshalJSON(b []byte) errordeprecated
- type TargetsConf
- func (*TargetsConf) Descriptor() ([]byte, []int)deprecated
- func (x *TargetsConf) GetForwardingRules() *ForwardingRules
- func (x *TargetsConf) GetInstances() *Instances
- func (x *TargetsConf) GetProject() []string
- func (m *TargetsConf) GetType() isTargetsConf_Type
- func (*TargetsConf) ProtoMessage()
- func (x *TargetsConf) ProtoReflect() protoreflect.Message
- func (x *TargetsConf) Reset()
- func (x *TargetsConf) String() string
- type TargetsConf_ForwardingRules
- type TargetsConf_Instances
Constants ¶
const ( Default_GlobalOptions_ReEvalSec = int32(900) Default_GlobalOptions_ApiVersion = string("v1") )
Default values for GlobalOptions fields.
const ( Default_Instances_NetworkInterface_Index = int32(0) Default_Instances_NetworkInterface_IpType = Instances_NetworkInterface_PRIVATE )
Default values for Instances_NetworkInterface fields.
const (
Default_Instances_UseDnsToResolve = bool(false)
)
Default values for Instances fields.
Variables ¶
var ( Instances_NetworkInterface_IPType_name = map[int32]string{ 0: "PRIVATE", 1: "PUBLIC", 2: "ALIAS", } Instances_NetworkInterface_IPType_value = map[string]int32{ "PRIVATE": 0, "PUBLIC": 1, "ALIAS": 2, } )
Enum value maps for Instances_NetworkInterface_IPType.
var File_github_com_google_cloudprober_targets_gce_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ForwardingRules ¶
type ForwardingRules struct { // Important: if multiple probes use forwarding_rules targets, only the // settings in the definition will take effect. // TODO(manugarg): Fix this behavior. // // For regional forwarding rules, regions to return forwarding rules for. // Default is to return forwarding rules from the region that the VM is // running in. To return forwarding rules from all regions, specify region as // "all". Region []string `protobuf:"bytes,1,rep,name=region" json:"region,omitempty"` // contains filtered or unexported fields }
Represents GCE forwarding rules. Does not support multiple projects
func (*ForwardingRules) Descriptor
deprecated
func (*ForwardingRules) Descriptor() ([]byte, []int)
Deprecated: Use ForwardingRules.ProtoReflect.Descriptor instead.
func (*ForwardingRules) GetRegion ¶ added in v0.10.1
func (x *ForwardingRules) GetRegion() []string
func (*ForwardingRules) ProtoMessage ¶
func (*ForwardingRules) ProtoMessage()
func (*ForwardingRules) ProtoReflect ¶ added in v0.10.8
func (x *ForwardingRules) ProtoReflect() protoreflect.Message
func (*ForwardingRules) Reset ¶
func (x *ForwardingRules) Reset()
func (*ForwardingRules) String ¶
func (x *ForwardingRules) String() string
type GlobalOptions ¶
type GlobalOptions struct { // How often targets should be evaluated/expanded ReEvalSec *int32 `protobuf:"varint,1,opt,name=re_eval_sec,json=reEvalSec,def=900" json:"re_eval_sec,omitempty"` // default 15 min // Compute API version. ApiVersion *string `protobuf:"bytes,2,opt,name=api_version,json=apiVersion,def=v1" json:"api_version,omitempty"` // contains filtered or unexported fields }
Global GCE targets options. These options are independent of the per-probe targets which are defined by the "GCETargets" type above.
func (*GlobalOptions) Descriptor
deprecated
func (*GlobalOptions) Descriptor() ([]byte, []int)
Deprecated: Use GlobalOptions.ProtoReflect.Descriptor instead.
func (*GlobalOptions) GetApiVersion ¶
func (x *GlobalOptions) GetApiVersion() string
func (*GlobalOptions) GetReEvalSec ¶
func (x *GlobalOptions) GetReEvalSec() int32
func (*GlobalOptions) ProtoMessage ¶
func (*GlobalOptions) ProtoMessage()
func (*GlobalOptions) ProtoReflect ¶ added in v0.10.8
func (x *GlobalOptions) ProtoReflect() protoreflect.Message
func (*GlobalOptions) Reset ¶
func (x *GlobalOptions) Reset()
func (*GlobalOptions) String ¶
func (x *GlobalOptions) String() string
type Instances ¶
type Instances struct { // Use DNS to resolve target names (instances). If set to false (default), // IP addresses specified in the compute.Instance resource is used. If set // to true all the other resolving options are ignored. UseDnsToResolve *bool `protobuf:"varint,1,opt,name=use_dns_to_resolve,json=useDnsToResolve,def=0" json:"use_dns_to_resolve,omitempty"` NetworkInterface *Instances_NetworkInterface `protobuf:"bytes,2,opt,name=network_interface,json=networkInterface" json:"network_interface,omitempty"` // Labels to filter instances by ("key:value-regex" format). Label []string `protobuf:"bytes,3,rep,name=label" json:"label,omitempty"` // contains filtered or unexported fields }
Represents GCE instances
func (*Instances) Descriptor
deprecated
func (*Instances) GetNetworkInterface ¶
func (x *Instances) GetNetworkInterface() *Instances_NetworkInterface
func (*Instances) GetUseDnsToResolve ¶
func (*Instances) ProtoMessage ¶
func (*Instances) ProtoMessage()
func (*Instances) ProtoReflect ¶ added in v0.10.8
func (x *Instances) ProtoReflect() protoreflect.Message
type Instances_NetworkInterface ¶
type Instances_NetworkInterface struct { Index *int32 `protobuf:"varint,1,opt,name=index,def=0" json:"index,omitempty"` IpType *Instances_NetworkInterface_IPType `` /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
Get the IP address from Network Interface
func (*Instances_NetworkInterface) Descriptor
deprecated
func (*Instances_NetworkInterface) Descriptor() ([]byte, []int)
Deprecated: Use Instances_NetworkInterface.ProtoReflect.Descriptor instead.
func (*Instances_NetworkInterface) GetIndex ¶
func (x *Instances_NetworkInterface) GetIndex() int32
func (*Instances_NetworkInterface) GetIpType ¶
func (x *Instances_NetworkInterface) GetIpType() Instances_NetworkInterface_IPType
func (*Instances_NetworkInterface) ProtoMessage ¶
func (*Instances_NetworkInterface) ProtoMessage()
func (*Instances_NetworkInterface) ProtoReflect ¶ added in v0.10.8
func (x *Instances_NetworkInterface) ProtoReflect() protoreflect.Message
func (*Instances_NetworkInterface) Reset ¶
func (x *Instances_NetworkInterface) Reset()
func (*Instances_NetworkInterface) String ¶
func (x *Instances_NetworkInterface) String() string
type Instances_NetworkInterface_IPType ¶
type Instances_NetworkInterface_IPType int32
const ( // Private IP address. Instances_NetworkInterface_PRIVATE Instances_NetworkInterface_IPType = 0 // IP address of the first access config. Instances_NetworkInterface_PUBLIC Instances_NetworkInterface_IPType = 1 // First IP address from the first Alias IP range. For example, for // alias IP range "192.168.12.0/24", 192.168.12.0 will be returned. Instances_NetworkInterface_ALIAS Instances_NetworkInterface_IPType = 2 )
func (Instances_NetworkInterface_IPType) Descriptor ¶ added in v0.10.8
func (Instances_NetworkInterface_IPType) Descriptor() protoreflect.EnumDescriptor
func (Instances_NetworkInterface_IPType) Enum ¶
func (x Instances_NetworkInterface_IPType) Enum() *Instances_NetworkInterface_IPType
func (Instances_NetworkInterface_IPType) EnumDescriptor
deprecated
func (Instances_NetworkInterface_IPType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Instances_NetworkInterface_IPType.Descriptor instead.
func (Instances_NetworkInterface_IPType) Number ¶ added in v0.10.8
func (x Instances_NetworkInterface_IPType) Number() protoreflect.EnumNumber
func (Instances_NetworkInterface_IPType) String ¶
func (x Instances_NetworkInterface_IPType) String() string
func (Instances_NetworkInterface_IPType) Type ¶ added in v0.10.8
func (Instances_NetworkInterface_IPType) Type() protoreflect.EnumType
func (*Instances_NetworkInterface_IPType) UnmarshalJSON
deprecated
func (x *Instances_NetworkInterface_IPType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type TargetsConf ¶
type TargetsConf struct { // If running on GCE, this defaults to the local project. // Note: Multiple projects support in targets is experimental and may go away // with future iterations. Project []string `protobuf:"bytes,1,rep,name=project" json:"project,omitempty"` // Types that are assignable to Type: // *TargetsConf_Instances // *TargetsConf_ForwardingRules Type isTargetsConf_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
TargetsConf represents GCE targets, e.g. instances, forwarding rules etc.
func (*TargetsConf) Descriptor
deprecated
func (*TargetsConf) Descriptor() ([]byte, []int)
Deprecated: Use TargetsConf.ProtoReflect.Descriptor instead.
func (*TargetsConf) GetForwardingRules ¶
func (x *TargetsConf) GetForwardingRules() *ForwardingRules
func (*TargetsConf) GetInstances ¶
func (x *TargetsConf) GetInstances() *Instances
func (*TargetsConf) GetProject ¶
func (x *TargetsConf) GetProject() []string
func (*TargetsConf) GetType ¶
func (m *TargetsConf) GetType() isTargetsConf_Type
func (*TargetsConf) ProtoMessage ¶
func (*TargetsConf) ProtoMessage()
func (*TargetsConf) ProtoReflect ¶ added in v0.10.8
func (x *TargetsConf) ProtoReflect() protoreflect.Message
func (*TargetsConf) Reset ¶
func (x *TargetsConf) Reset()
func (*TargetsConf) String ¶
func (x *TargetsConf) String() string
type TargetsConf_ForwardingRules ¶
type TargetsConf_ForwardingRules struct {
ForwardingRules *ForwardingRules `protobuf:"bytes,3,opt,name=forwarding_rules,json=forwardingRules,oneof"`
}
type TargetsConf_Instances ¶
type TargetsConf_Instances struct {
Instances *Instances `protobuf:"bytes,2,opt,name=instances,oneof"`
}