proto

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type_name = map[int32]string{
	0:  "NONE",
	1:  "PROMETHEUS",
	2:  "STACKDRIVER",
	3:  "FILE",
	4:  "POSTGRES",
	99: "USER_DEFINED",
}
View Source
var Type_value = map[string]int32{
	"NONE":         0,
	"PROMETHEUS":   1,
	"STACKDRIVER":  2,
	"FILE":         3,
	"POSTGRES":     4,
	"USER_DEFINED": 99,
}

Functions

This section is empty.

Types

type SurfacerDef

type SurfacerDef struct {
	// This name is used for logging. If not defined, it's derived from the type.
	// Note that this field is required for the USER_DEFINED surfacer type and
	// should match with the name that you used while registering the user defined
	// surfacer.
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Type *Type   `protobuf:"varint,2,opt,name=type,enum=cloudprober.surfacer.Type" json:"type,omitempty"`
	// Matching surfacer specific configuration (one for each type in the above
	// enum)
	//
	// Types that are valid to be assigned to Surfacer:
	//	*SurfacerDef_PrometheusSurfacer
	//	*SurfacerDef_StackdriverSurfacer
	//	*SurfacerDef_FileSurfacer
	//	*SurfacerDef_PostgresSurfacer
	Surfacer             isSurfacerDef_Surfacer `protobuf_oneof:"surfacer"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*SurfacerDef) Descriptor

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

func (*SurfacerDef) GetFileSurfacer

func (m *SurfacerDef) GetFileSurfacer() *proto3.SurfacerConf

func (*SurfacerDef) GetName

func (m *SurfacerDef) GetName() string

func (*SurfacerDef) GetPostgresSurfacer

func (m *SurfacerDef) GetPostgresSurfacer() *proto4.SurfacerConf

func (*SurfacerDef) GetPrometheusSurfacer

func (m *SurfacerDef) GetPrometheusSurfacer() *proto1.SurfacerConf

func (*SurfacerDef) GetStackdriverSurfacer

func (m *SurfacerDef) GetStackdriverSurfacer() *proto2.SurfacerConf

func (*SurfacerDef) GetSurfacer

func (m *SurfacerDef) GetSurfacer() isSurfacerDef_Surfacer

func (*SurfacerDef) GetType

func (m *SurfacerDef) GetType() Type

func (*SurfacerDef) ProtoMessage

func (*SurfacerDef) ProtoMessage()

func (*SurfacerDef) Reset

func (m *SurfacerDef) Reset()

func (*SurfacerDef) String

func (m *SurfacerDef) String() string

func (*SurfacerDef) XXX_DiscardUnknown

func (m *SurfacerDef) XXX_DiscardUnknown()

func (*SurfacerDef) XXX_Marshal

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

func (*SurfacerDef) XXX_Merge

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

func (*SurfacerDef) XXX_OneofFuncs

func (*SurfacerDef) 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 (*SurfacerDef) XXX_Size

func (m *SurfacerDef) XXX_Size() int

func (*SurfacerDef) XXX_Unmarshal

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

type SurfacerDef_FileSurfacer

type SurfacerDef_FileSurfacer struct {
	FileSurfacer *proto3.SurfacerConf `protobuf:"bytes,12,opt,name=file_surfacer,json=fileSurfacer,oneof"`
}

type SurfacerDef_PostgresSurfacer

type SurfacerDef_PostgresSurfacer struct {
	PostgresSurfacer *proto4.SurfacerConf `protobuf:"bytes,13,opt,name=postgres_surfacer,json=postgresSurfacer,oneof"`
}

type SurfacerDef_PrometheusSurfacer

type SurfacerDef_PrometheusSurfacer struct {
	PrometheusSurfacer *proto1.SurfacerConf `protobuf:"bytes,10,opt,name=prometheus_surfacer,json=prometheusSurfacer,oneof"`
}

type SurfacerDef_StackdriverSurfacer

type SurfacerDef_StackdriverSurfacer struct {
	StackdriverSurfacer *proto2.SurfacerConf `protobuf:"bytes,11,opt,name=stackdriver_surfacer,json=stackdriverSurfacer,oneof"`
}

type Type

type Type int32

Enumeration for each type of surfacer we can parse and create

const (
	Type_NONE         Type = 0
	Type_PROMETHEUS   Type = 1
	Type_STACKDRIVER  Type = 2
	Type_FILE         Type = 3
	Type_POSTGRES     Type = 4
	Type_USER_DEFINED Type = 99
)

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor

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

func (Type) String

func (x Type) String() string

func (*Type) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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