proto

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Default_GlobalOptions_ApiVersion string = "v1"
View Source
const Default_GlobalOptions_ReEvalSec int32 = 900
View Source
const Default_Instances_NetworkInterface_Index int32 = 0
View Source
const Default_Instances_UseDnsToResolve bool = false

Variables

View Source
var Instances_NetworkInterface_IPType_name = map[int32]string{
	0: "PRIVATE",
	1: "PUBLIC",
	2: "ALIAS",
}
View Source
var Instances_NetworkInterface_IPType_value = map[string]int32{
	"PRIVATE": 0,
	"PUBLIC":  1,
	"ALIAS":   2,
}

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents GCE forwarding rules. Does not support multiple projects

func (*ForwardingRules) Descriptor

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

func (*ForwardingRules) GetRegion added in v0.10.1

func (m *ForwardingRules) GetRegion() []string

func (*ForwardingRules) ProtoMessage

func (*ForwardingRules) ProtoMessage()

func (*ForwardingRules) Reset

func (m *ForwardingRules) Reset()

func (*ForwardingRules) String

func (m *ForwardingRules) String() string

func (*ForwardingRules) XXX_DiscardUnknown

func (m *ForwardingRules) XXX_DiscardUnknown()

func (*ForwardingRules) XXX_Marshal

func (m *ForwardingRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ForwardingRules) XXX_Merge

func (dst *ForwardingRules) XXX_Merge(src proto.Message)

func (*ForwardingRules) XXX_Size

func (m *ForwardingRules) XXX_Size() int

func (*ForwardingRules) XXX_Unmarshal

func (m *ForwardingRules) XXX_Unmarshal(b []byte) error

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"`
	// Compute API version.
	ApiVersion           *string  `protobuf:"bytes,2,opt,name=api_version,json=apiVersion,def=v1" json:"api_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*GlobalOptions) Descriptor

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

func (*GlobalOptions) GetApiVersion

func (m *GlobalOptions) GetApiVersion() string

func (*GlobalOptions) GetReEvalSec

func (m *GlobalOptions) GetReEvalSec() int32

func (*GlobalOptions) ProtoMessage

func (*GlobalOptions) ProtoMessage()

func (*GlobalOptions) Reset

func (m *GlobalOptions) Reset()

func (*GlobalOptions) String

func (m *GlobalOptions) String() string

func (*GlobalOptions) XXX_DiscardUnknown

func (m *GlobalOptions) XXX_DiscardUnknown()

func (*GlobalOptions) XXX_Marshal

func (m *GlobalOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GlobalOptions) XXX_Merge

func (dst *GlobalOptions) XXX_Merge(src proto.Message)

func (*GlobalOptions) XXX_Size

func (m *GlobalOptions) XXX_Size() int

func (*GlobalOptions) XXX_Unmarshal

func (m *GlobalOptions) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

Represents GCE instances

func (*Instances) Descriptor

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

func (*Instances) GetNetworkInterface

func (m *Instances) GetNetworkInterface() *Instances_NetworkInterface

func (*Instances) GetUseDnsToResolve

func (m *Instances) GetUseDnsToResolve() bool

func (*Instances) ProtoMessage

func (*Instances) ProtoMessage()

func (*Instances) Reset

func (m *Instances) Reset()

func (*Instances) String

func (m *Instances) String() string

func (*Instances) XXX_DiscardUnknown

func (m *Instances) XXX_DiscardUnknown()

func (*Instances) XXX_Marshal

func (m *Instances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Instances) XXX_Merge

func (dst *Instances) XXX_Merge(src proto.Message)

func (*Instances) XXX_Size

func (m *Instances) XXX_Size() int

func (*Instances) XXX_Unmarshal

func (m *Instances) XXX_Unmarshal(b []byte) error

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 */
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

Get the IP address from Network Interface

func (*Instances_NetworkInterface) Descriptor

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

func (*Instances_NetworkInterface) GetIndex

func (m *Instances_NetworkInterface) GetIndex() int32

func (*Instances_NetworkInterface) GetIpType

func (*Instances_NetworkInterface) ProtoMessage

func (*Instances_NetworkInterface) ProtoMessage()

func (*Instances_NetworkInterface) Reset

func (m *Instances_NetworkInterface) Reset()

func (*Instances_NetworkInterface) String

func (m *Instances_NetworkInterface) String() string

func (*Instances_NetworkInterface) XXX_DiscardUnknown

func (m *Instances_NetworkInterface) XXX_DiscardUnknown()

func (*Instances_NetworkInterface) XXX_Marshal

func (m *Instances_NetworkInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Instances_NetworkInterface) XXX_Merge

func (dst *Instances_NetworkInterface) XXX_Merge(src proto.Message)

func (*Instances_NetworkInterface) XXX_Size

func (m *Instances_NetworkInterface) XXX_Size() int

func (*Instances_NetworkInterface) XXX_Unmarshal

func (m *Instances_NetworkInterface) XXX_Unmarshal(b []byte) error

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
)
const Default_Instances_NetworkInterface_IpType Instances_NetworkInterface_IPType = Instances_NetworkInterface_PRIVATE

func (Instances_NetworkInterface_IPType) Enum

func (Instances_NetworkInterface_IPType) EnumDescriptor

func (Instances_NetworkInterface_IPType) EnumDescriptor() ([]byte, []int)

func (Instances_NetworkInterface_IPType) String

func (*Instances_NetworkInterface_IPType) UnmarshalJSON

func (x *Instances_NetworkInterface_IPType) UnmarshalJSON(data []byte) error

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 valid to be assigned to Type:
	//	*TargetsConf_Instances
	//	*TargetsConf_ForwardingRules
	Type                 isTargetsConf_Type `protobuf_oneof:"type"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

TargetsConf represents GCE targets, e.g. instances, forwarding rules etc.

func (*TargetsConf) Descriptor

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

func (*TargetsConf) GetForwardingRules

func (m *TargetsConf) GetForwardingRules() *ForwardingRules

func (*TargetsConf) GetInstances

func (m *TargetsConf) GetInstances() *Instances

func (*TargetsConf) GetProject

func (m *TargetsConf) GetProject() []string

func (*TargetsConf) GetType

func (m *TargetsConf) GetType() isTargetsConf_Type

func (*TargetsConf) ProtoMessage

func (*TargetsConf) ProtoMessage()

func (*TargetsConf) Reset

func (m *TargetsConf) Reset()

func (*TargetsConf) String

func (m *TargetsConf) String() string

func (*TargetsConf) XXX_DiscardUnknown

func (m *TargetsConf) XXX_DiscardUnknown()

func (*TargetsConf) XXX_Marshal

func (m *TargetsConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TargetsConf) XXX_Merge

func (dst *TargetsConf) XXX_Merge(src proto.Message)

func (*TargetsConf) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

func (*TargetsConf) XXX_Size

func (m *TargetsConf) XXX_Size() int

func (*TargetsConf) XXX_Unmarshal

func (m *TargetsConf) XXX_Unmarshal(b []byte) error

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"`
}

Jump to

Keyboard shortcuts

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