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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Default_IPConfig_IpVersion int32 = 4
View Source
const Default_IPConfig_NicIndex int32 = 0

Variables

View Source
var IPConfig_IPType_name = map[int32]string{
	0: "DEFAULT",
	1: "PUBLIC",
	2: "ALIAS",
}
View Source
var IPConfig_IPType_value = map[string]int32{
	"DEFAULT": 0,
	"PUBLIC":  1,
	"ALIAS":   2,
}

Functions

func RegisterResourceDiscoveryServer

func RegisterResourceDiscoveryServer(s *grpc.Server, srv ResourceDiscoveryServer)

Types

type Filter

type Filter struct {
	Key                  *string  `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	Value                *string  `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Filter) Descriptor

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

func (*Filter) GetKey

func (m *Filter) GetKey() string

func (*Filter) GetValue

func (m *Filter) GetValue() string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) Reset

func (m *Filter) Reset()

func (*Filter) String

func (m *Filter) String() string

func (*Filter) XXX_DiscardUnknown

func (m *Filter) XXX_DiscardUnknown()

func (*Filter) XXX_Marshal

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

func (*Filter) XXX_Merge

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

func (*Filter) XXX_Size

func (m *Filter) XXX_Size() int

func (*Filter) XXX_Unmarshal

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

type IPConfig

type IPConfig struct {
	// NIC index
	NicIndex             *int32           `protobuf:"varint,1,opt,name=nic_index,json=nicIndex,def=0" json:"nic_index,omitempty"`
	IpType               *IPConfig_IPType `protobuf:"varint,3,opt,name=ip_type,json=ipType,enum=cloudprober.targets.rds.IPConfig_IPType" json:"ip_type,omitempty"`
	IpVersion            *int32           `protobuf:"varint,4,opt,name=ip_version,json=ipVersion,def=4" json:"ip_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*IPConfig) Descriptor

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

func (*IPConfig) GetIpType

func (m *IPConfig) GetIpType() IPConfig_IPType

func (*IPConfig) GetIpVersion

func (m *IPConfig) GetIpVersion() int32

func (*IPConfig) GetNicIndex

func (m *IPConfig) GetNicIndex() int32

func (*IPConfig) ProtoMessage

func (*IPConfig) ProtoMessage()

func (*IPConfig) Reset

func (m *IPConfig) Reset()

func (*IPConfig) String

func (m *IPConfig) String() string

func (*IPConfig) XXX_DiscardUnknown

func (m *IPConfig) XXX_DiscardUnknown()

func (*IPConfig) XXX_Marshal

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

func (*IPConfig) XXX_Merge

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

func (*IPConfig) XXX_Size

func (m *IPConfig) XXX_Size() int

func (*IPConfig) XXX_Unmarshal

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

type IPConfig_IPType

type IPConfig_IPType int32
const (
	// Default IP of the resource.
	//  - Private IP for instance resource
	//  - Forwarding rule IP for forwarding rule.
	IPConfig_DEFAULT IPConfig_IPType = 0
	// Instance's external IP.
	IPConfig_PUBLIC IPConfig_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.
	// Supported only on GCE.
	IPConfig_ALIAS IPConfig_IPType = 2
)

func (IPConfig_IPType) Enum

func (x IPConfig_IPType) Enum() *IPConfig_IPType

func (IPConfig_IPType) EnumDescriptor

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

func (IPConfig_IPType) String

func (x IPConfig_IPType) String() string

func (*IPConfig_IPType) UnmarshalJSON

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

type ListResourcesRequest

type ListResourcesRequest struct {
	// Provider is the resource list provider, for example: "gcp", "aws", etc.
	Provider *string `protobuf:"bytes,1,req,name=provider" json:"provider,omitempty"`
	// Provider specific resource path. For example: for GCP, it could be
	// "gce_instances/<project>", "regional_forwarding_rules/<project>", etc.
	ResourcePath *string `protobuf:"bytes,2,opt,name=resource_path,json=resourcePath" json:"resource_path,omitempty"`
	// Filters for the resources list. Filters are ANDed: all filters should
	// succeed for an item to included in the result list.
	Filter []*Filter `protobuf:"bytes,3,rep,name=filter" json:"filter,omitempty"`
	// Optional. If resource has an IP (and a NIC) address, following
	// fields determine which IP address will be included in the results.
	IpConfig             *IPConfig `protobuf:"bytes,4,opt,name=ip_config,json=ipConfig" json:"ip_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ListResourcesRequest) Descriptor

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

func (*ListResourcesRequest) GetFilter

func (m *ListResourcesRequest) GetFilter() []*Filter

func (*ListResourcesRequest) GetIpConfig

func (m *ListResourcesRequest) GetIpConfig() *IPConfig

func (*ListResourcesRequest) GetProvider

func (m *ListResourcesRequest) GetProvider() string

func (*ListResourcesRequest) GetResourcePath

func (m *ListResourcesRequest) GetResourcePath() string

func (*ListResourcesRequest) ProtoMessage

func (*ListResourcesRequest) ProtoMessage()

func (*ListResourcesRequest) Reset

func (m *ListResourcesRequest) Reset()

func (*ListResourcesRequest) String

func (m *ListResourcesRequest) String() string

func (*ListResourcesRequest) XXX_DiscardUnknown

func (m *ListResourcesRequest) XXX_DiscardUnknown()

func (*ListResourcesRequest) XXX_Marshal

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

func (*ListResourcesRequest) XXX_Merge

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

func (*ListResourcesRequest) XXX_Size

func (m *ListResourcesRequest) XXX_Size() int

func (*ListResourcesRequest) XXX_Unmarshal

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

type ListResourcesResponse

type ListResourcesResponse struct {
	Resources            []*Resource `protobuf:"bytes,1,rep,name=resources" json:"resources,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ListResourcesResponse) Descriptor

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

func (*ListResourcesResponse) GetResources

func (m *ListResourcesResponse) GetResources() []*Resource

func (*ListResourcesResponse) ProtoMessage

func (*ListResourcesResponse) ProtoMessage()

func (*ListResourcesResponse) Reset

func (m *ListResourcesResponse) Reset()

func (*ListResourcesResponse) String

func (m *ListResourcesResponse) String() string

func (*ListResourcesResponse) XXX_DiscardUnknown

func (m *ListResourcesResponse) XXX_DiscardUnknown()

func (*ListResourcesResponse) XXX_Marshal

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

func (*ListResourcesResponse) XXX_Merge

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

func (*ListResourcesResponse) XXX_Size

func (m *ListResourcesResponse) XXX_Size() int

func (*ListResourcesResponse) XXX_Unmarshal

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

type Resource

type Resource struct {
	// Resource name.
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// Resource's IP address, selected based on the request's ip_config.
	Ip *string `protobuf:"bytes,2,opt,name=ip" json:"ip,omitempty"`
	// Id associated with the resource, if any.
	Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
	// Optional info associated with the resource. Some resource type may make use
	// of it.
	Info                 []byte   `protobuf:"bytes,4,opt,name=info" json:"info,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Resource) Descriptor

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

func (*Resource) GetId

func (m *Resource) GetId() string

func (*Resource) GetInfo

func (m *Resource) GetInfo() []byte

func (*Resource) GetIp

func (m *Resource) GetIp() string

func (*Resource) GetName

func (m *Resource) GetName() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) String

func (m *Resource) String() string

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

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

func (*Resource) XXX_Merge

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

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

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

type ResourceDiscoveryClient

type ResourceDiscoveryClient interface {
	// ListResources returns the list of resources matching the URI provided in
	// the request.
	ListResources(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error)
}

ResourceDiscoveryClient is the client API for ResourceDiscovery service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewResourceDiscoveryClient

func NewResourceDiscoveryClient(cc *grpc.ClientConn) ResourceDiscoveryClient

type ResourceDiscoveryServer

type ResourceDiscoveryServer interface {
	// ListResources returns the list of resources matching the URI provided in
	// the request.
	ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error)
}

ResourceDiscoveryServer is the server API for ResourceDiscovery service.

Jump to

Keyboard shortcuts

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