proto

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Default_RtcReportOptions_IntervalMsec int32 = 10000

Variables

This section is empty.

Functions

This section is empty.

Types

type RtcReportOptions

type RtcReportOptions struct {
	// RTC configs which cloudprober should report itself to.
	Cfgs []string `protobuf:"bytes,1,rep,name=cfgs" json:"cfgs,omitempty"`
	// RTC rate at which cloudprober should report itself.
	IntervalMsec *int32 `protobuf:"varint,2,opt,name=interval_msec,json=intervalMsec,def=10000" json:"interval_msec,omitempty"`
	// Which system variables should be reported. For more information see
	// cloudprober/util. The sysVars dictionary contains variable names mapped to
	// their values. variables should be a list of the variable names that should
	// be reported (such as public/private ips).
	Variables []string `protobuf:"bytes,3,rep,name=variables" json:"variables,omitempty"`
	// Which groups this instance is a member of. See RtcTargetInfo.group for
	// more info.
	Groups               []string `protobuf:"bytes,4,rep,name=groups" json:"groups,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RtcReportOptions) Descriptor

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

func (*RtcReportOptions) GetCfgs

func (m *RtcReportOptions) GetCfgs() []string

func (*RtcReportOptions) GetGroups

func (m *RtcReportOptions) GetGroups() []string

func (*RtcReportOptions) GetIntervalMsec

func (m *RtcReportOptions) GetIntervalMsec() int32

func (*RtcReportOptions) GetVariables

func (m *RtcReportOptions) GetVariables() []string

func (*RtcReportOptions) ProtoMessage

func (*RtcReportOptions) ProtoMessage()

func (*RtcReportOptions) Reset

func (m *RtcReportOptions) Reset()

func (*RtcReportOptions) String

func (m *RtcReportOptions) String() string

func (*RtcReportOptions) XXX_DiscardUnknown

func (m *RtcReportOptions) XXX_DiscardUnknown()

func (*RtcReportOptions) XXX_Marshal

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

func (*RtcReportOptions) XXX_Merge

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

func (*RtcReportOptions) XXX_Size

func (m *RtcReportOptions) XXX_Size() int

func (*RtcReportOptions) XXX_Unmarshal

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

type RtcTargetInfo

type RtcTargetInfo struct {
	// Name of host. Also used as variable name in the RTC config.
	InstanceName *string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName" json:"instance_name,omitempty"`
	// List of tags this host belongs to, in order to filter out groups of related
	// hosts. For instance, maybe an rtc lister will only include instances that
	// have the group tag "DMZ_1". Instances may belong to multiple groups.
	Groups []string `protobuf:"bytes,2,rep,name=groups" json:"groups,omitempty"`
	// List of all ways this host can be addressed (such as public / private ip).
	Addresses            []*RtcTargetInfo_Address `protobuf:"bytes,3,rep,name=addresses" json:"addresses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

RtcTargetInfo is used by RTC targets. Hosts report all the ways they may be addressed to an RTC configuration, which will later be used as target information. The rtcreporter package is responsible for creating and sending these protobufs, while the rtc targets type of the targets package will receive these protobufs.

func (*RtcTargetInfo) Descriptor

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

func (*RtcTargetInfo) GetAddresses

func (m *RtcTargetInfo) GetAddresses() []*RtcTargetInfo_Address

func (*RtcTargetInfo) GetGroups

func (m *RtcTargetInfo) GetGroups() []string

func (*RtcTargetInfo) GetInstanceName

func (m *RtcTargetInfo) GetInstanceName() string

func (*RtcTargetInfo) ProtoMessage

func (*RtcTargetInfo) ProtoMessage()

func (*RtcTargetInfo) Reset

func (m *RtcTargetInfo) Reset()

func (*RtcTargetInfo) String

func (m *RtcTargetInfo) String() string

func (*RtcTargetInfo) XXX_DiscardUnknown

func (m *RtcTargetInfo) XXX_DiscardUnknown()

func (*RtcTargetInfo) XXX_Marshal

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

func (*RtcTargetInfo) XXX_Merge

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

func (*RtcTargetInfo) XXX_Size

func (m *RtcTargetInfo) XXX_Size() int

func (*RtcTargetInfo) XXX_Unmarshal

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

type RtcTargetInfo_Address

type RtcTargetInfo_Address struct {
	// "Name" of this address. An rtc lister may only include, for instance,
	// public ip addresses. It will filter out all Addresses that do not have
	// "PUBLIC_IP" as their tag.
	Tag *string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
	// Address contents.
	Address              *string  `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RtcTargetInfo_Address) Descriptor

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

func (*RtcTargetInfo_Address) GetAddress

func (m *RtcTargetInfo_Address) GetAddress() string

func (*RtcTargetInfo_Address) GetTag

func (m *RtcTargetInfo_Address) GetTag() string

func (*RtcTargetInfo_Address) ProtoMessage

func (*RtcTargetInfo_Address) ProtoMessage()

func (*RtcTargetInfo_Address) Reset

func (m *RtcTargetInfo_Address) Reset()

func (*RtcTargetInfo_Address) String

func (m *RtcTargetInfo_Address) String() string

func (*RtcTargetInfo_Address) XXX_DiscardUnknown

func (m *RtcTargetInfo_Address) XXX_DiscardUnknown()

func (*RtcTargetInfo_Address) XXX_Marshal

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

func (*RtcTargetInfo_Address) XXX_Merge

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

func (*RtcTargetInfo_Address) XXX_Size

func (m *RtcTargetInfo_Address) XXX_Size() int

func (*RtcTargetInfo_Address) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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