pbdataplane

package
v0.4.0-rc1.0...-9dd6c97 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataplaneFeatures_name = map[int32]string{
		0: "DATAPLANE_FEATURES_UNSPECIFIED",
		1: "DATAPLANE_FEATURES_WATCH_SERVERS",
		2: "DATAPLANE_FEATURES_EDGE_CERTIFICATE_MANAGEMENT",
		3: "DATAPLANE_FEATURES_ENVOY_BOOTSTRAP_CONFIGURATION",
		4: "DATAPLANE_FEATURES_FIPS",
	}
	DataplaneFeatures_value = map[string]int32{
		"DATAPLANE_FEATURES_UNSPECIFIED":                   0,
		"DATAPLANE_FEATURES_WATCH_SERVERS":                 1,
		"DATAPLANE_FEATURES_EDGE_CERTIFICATE_MANAGEMENT":   2,
		"DATAPLANE_FEATURES_ENVOY_BOOTSTRAP_CONFIGURATION": 3,
		"DATAPLANE_FEATURES_FIPS":                          4,
	}
)

Enum value maps for DataplaneFeatures.

View Source
var (
	ServiceKind_name = map[int32]string{
		0: "SERVICE_KIND_UNSPECIFIED",
		1: "SERVICE_KIND_TYPICAL",
		2: "SERVICE_KIND_CONNECT_PROXY",
		3: "SERVICE_KIND_MESH_GATEWAY",
		4: "SERVICE_KIND_TERMINATING_GATEWAY",
		5: "SERVICE_KIND_INGRESS_GATEWAY",
		6: "SERVICE_KIND_API_GATEWAY",
	}
	ServiceKind_value = map[string]int32{
		"SERVICE_KIND_UNSPECIFIED":         0,
		"SERVICE_KIND_TYPICAL":             1,
		"SERVICE_KIND_CONNECT_PROXY":       2,
		"SERVICE_KIND_MESH_GATEWAY":        3,
		"SERVICE_KIND_TERMINATING_GATEWAY": 4,
		"SERVICE_KIND_INGRESS_GATEWAY":     5,
		"SERVICE_KIND_API_GATEWAY":         6,
	}
)

Enum value maps for ServiceKind.

View Source
var DataplaneService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hashicorp.consul.dataplane.DataplaneService",
	HandlerType: (*DataplaneServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSupportedDataplaneFeatures",
			Handler:    _DataplaneService_GetSupportedDataplaneFeatures_Handler,
		},
		{
			MethodName: "GetEnvoyBootstrapParams",
			Handler:    _DataplaneService_GetEnvoyBootstrapParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pbdataplane/dataplane.proto",
}

DataplaneService_ServiceDesc is the grpc.ServiceDesc for DataplaneService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pbdataplane_dataplane_proto protoreflect.FileDescriptor

Functions

func RegisterDataplaneServiceServer

func RegisterDataplaneServiceServer(s grpc.ServiceRegistrar, srv DataplaneServiceServer)

Types

type DataplaneFeatureSupport

type DataplaneFeatureSupport struct {
	FeatureName DataplaneFeatures `` /* 145-byte string literal not displayed */
	Supported   bool              `protobuf:"varint,2,opt,name=supported,proto3" json:"supported,omitempty"`
	// contains filtered or unexported fields
}

func (*DataplaneFeatureSupport) Descriptor deprecated

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

Deprecated: Use DataplaneFeatureSupport.ProtoReflect.Descriptor instead.

func (*DataplaneFeatureSupport) GetFeatureName

func (x *DataplaneFeatureSupport) GetFeatureName() DataplaneFeatures

func (*DataplaneFeatureSupport) GetSupported

func (x *DataplaneFeatureSupport) GetSupported() bool

func (*DataplaneFeatureSupport) MarshalBinary

func (msg *DataplaneFeatureSupport) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*DataplaneFeatureSupport) ProtoMessage

func (*DataplaneFeatureSupport) ProtoMessage()

func (*DataplaneFeatureSupport) ProtoReflect

func (x *DataplaneFeatureSupport) ProtoReflect() protoreflect.Message

func (*DataplaneFeatureSupport) Reset

func (x *DataplaneFeatureSupport) Reset()

func (*DataplaneFeatureSupport) String

func (x *DataplaneFeatureSupport) String() string

func (*DataplaneFeatureSupport) UnmarshalBinary

func (msg *DataplaneFeatureSupport) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type DataplaneFeatures

type DataplaneFeatures int32
const (
	DataplaneFeatures_DATAPLANE_FEATURES_UNSPECIFIED                   DataplaneFeatures = 0
	DataplaneFeatures_DATAPLANE_FEATURES_WATCH_SERVERS                 DataplaneFeatures = 1
	DataplaneFeatures_DATAPLANE_FEATURES_EDGE_CERTIFICATE_MANAGEMENT   DataplaneFeatures = 2
	DataplaneFeatures_DATAPLANE_FEATURES_ENVOY_BOOTSTRAP_CONFIGURATION DataplaneFeatures = 3
	DataplaneFeatures_DATAPLANE_FEATURES_FIPS                          DataplaneFeatures = 4
)

func (DataplaneFeatures) Descriptor

func (DataplaneFeatures) Enum

func (DataplaneFeatures) EnumDescriptor deprecated

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

Deprecated: Use DataplaneFeatures.Descriptor instead.

func (DataplaneFeatures) Number

func (DataplaneFeatures) String

func (x DataplaneFeatures) String() string

func (DataplaneFeatures) Type

type DataplaneServiceClient

type DataplaneServiceClient interface {
	GetSupportedDataplaneFeatures(ctx context.Context, in *GetSupportedDataplaneFeaturesRequest, opts ...grpc.CallOption) (*GetSupportedDataplaneFeaturesResponse, error)
	GetEnvoyBootstrapParams(ctx context.Context, in *GetEnvoyBootstrapParamsRequest, opts ...grpc.CallOption) (*GetEnvoyBootstrapParamsResponse, error)
}

DataplaneServiceClient is the client API for DataplaneService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DataplaneServiceServer

type DataplaneServiceServer interface {
	GetSupportedDataplaneFeatures(context.Context, *GetSupportedDataplaneFeaturesRequest) (*GetSupportedDataplaneFeaturesResponse, error)
	GetEnvoyBootstrapParams(context.Context, *GetEnvoyBootstrapParamsRequest) (*GetEnvoyBootstrapParamsResponse, error)
}

DataplaneServiceServer is the server API for DataplaneService service. All implementations should embed UnimplementedDataplaneServiceServer for forward compatibility

type GetEnvoyBootstrapParamsRequest

type GetEnvoyBootstrapParamsRequest struct {

	// Types that are assignable to NodeSpec:
	//
	//	*GetEnvoyBootstrapParamsRequest_NodeId
	//	*GetEnvoyBootstrapParamsRequest_NodeName
	NodeSpec isGetEnvoyBootstrapParamsRequest_NodeSpec `protobuf_oneof:"node_spec"`
	// The proxy service ID
	ServiceId string `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Partition string `protobuf:"bytes,4,opt,name=partition,proto3" json:"partition,omitempty"`
	Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEnvoyBootstrapParamsRequest) Descriptor deprecated

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

Deprecated: Use GetEnvoyBootstrapParamsRequest.ProtoReflect.Descriptor instead.

func (*GetEnvoyBootstrapParamsRequest) GetNamespace

func (x *GetEnvoyBootstrapParamsRequest) GetNamespace() string

func (*GetEnvoyBootstrapParamsRequest) GetNodeId

func (x *GetEnvoyBootstrapParamsRequest) GetNodeId() string

func (*GetEnvoyBootstrapParamsRequest) GetNodeName

func (x *GetEnvoyBootstrapParamsRequest) GetNodeName() string

func (*GetEnvoyBootstrapParamsRequest) GetNodeSpec

func (m *GetEnvoyBootstrapParamsRequest) GetNodeSpec() isGetEnvoyBootstrapParamsRequest_NodeSpec

func (*GetEnvoyBootstrapParamsRequest) GetPartition

func (x *GetEnvoyBootstrapParamsRequest) GetPartition() string

func (*GetEnvoyBootstrapParamsRequest) GetServiceId

func (x *GetEnvoyBootstrapParamsRequest) GetServiceId() string

func (*GetEnvoyBootstrapParamsRequest) MarshalBinary

func (msg *GetEnvoyBootstrapParamsRequest) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*GetEnvoyBootstrapParamsRequest) ProtoMessage

func (*GetEnvoyBootstrapParamsRequest) ProtoMessage()

func (*GetEnvoyBootstrapParamsRequest) ProtoReflect

func (*GetEnvoyBootstrapParamsRequest) Reset

func (x *GetEnvoyBootstrapParamsRequest) Reset()

func (*GetEnvoyBootstrapParamsRequest) String

func (*GetEnvoyBootstrapParamsRequest) UnmarshalBinary

func (msg *GetEnvoyBootstrapParamsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type GetEnvoyBootstrapParamsRequest_NodeId

type GetEnvoyBootstrapParamsRequest_NodeId struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,oneof"`
}

type GetEnvoyBootstrapParamsRequest_NodeName

type GetEnvoyBootstrapParamsRequest_NodeName struct {
	NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3,oneof"`
}

type GetEnvoyBootstrapParamsResponse

type GetEnvoyBootstrapParamsResponse struct {
	ServiceKind ServiceKind `` /* 139-byte string literal not displayed */
	// service is be used to identify the service (as the local cluster name and
	// in metric tags). If the service is a connect proxy it will be the name of
	// the proxy's destination service, for gateways it will be the gateway
	// service's name.
	Service    string           `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Namespace  string           `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Partition  string           `protobuf:"bytes,4,opt,name=partition,proto3" json:"partition,omitempty"`
	Datacenter string           `protobuf:"bytes,5,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	Config     *structpb.Struct `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
	NodeId     string           `protobuf:"bytes,7,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	NodeName   string           `protobuf:"bytes,8,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	AccessLogs []string         `protobuf:"bytes,9,rep,name=access_logs,json=accessLogs,proto3" json:"access_logs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEnvoyBootstrapParamsResponse) Descriptor deprecated

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

Deprecated: Use GetEnvoyBootstrapParamsResponse.ProtoReflect.Descriptor instead.

func (*GetEnvoyBootstrapParamsResponse) GetAccessLogs

func (x *GetEnvoyBootstrapParamsResponse) GetAccessLogs() []string

func (*GetEnvoyBootstrapParamsResponse) GetConfig

func (*GetEnvoyBootstrapParamsResponse) GetDatacenter

func (x *GetEnvoyBootstrapParamsResponse) GetDatacenter() string

func (*GetEnvoyBootstrapParamsResponse) GetNamespace

func (x *GetEnvoyBootstrapParamsResponse) GetNamespace() string

func (*GetEnvoyBootstrapParamsResponse) GetNodeId

func (x *GetEnvoyBootstrapParamsResponse) GetNodeId() string

func (*GetEnvoyBootstrapParamsResponse) GetNodeName

func (x *GetEnvoyBootstrapParamsResponse) GetNodeName() string

func (*GetEnvoyBootstrapParamsResponse) GetPartition

func (x *GetEnvoyBootstrapParamsResponse) GetPartition() string

func (*GetEnvoyBootstrapParamsResponse) GetService

func (x *GetEnvoyBootstrapParamsResponse) GetService() string

func (*GetEnvoyBootstrapParamsResponse) GetServiceKind

func (x *GetEnvoyBootstrapParamsResponse) GetServiceKind() ServiceKind

func (*GetEnvoyBootstrapParamsResponse) MarshalBinary

func (msg *GetEnvoyBootstrapParamsResponse) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*GetEnvoyBootstrapParamsResponse) ProtoMessage

func (*GetEnvoyBootstrapParamsResponse) ProtoMessage()

func (*GetEnvoyBootstrapParamsResponse) ProtoReflect

func (*GetEnvoyBootstrapParamsResponse) Reset

func (*GetEnvoyBootstrapParamsResponse) String

func (*GetEnvoyBootstrapParamsResponse) UnmarshalBinary

func (msg *GetEnvoyBootstrapParamsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type GetSupportedDataplaneFeaturesRequest

type GetSupportedDataplaneFeaturesRequest struct {
	// contains filtered or unexported fields
}

func (*GetSupportedDataplaneFeaturesRequest) Descriptor deprecated

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

Deprecated: Use GetSupportedDataplaneFeaturesRequest.ProtoReflect.Descriptor instead.

func (*GetSupportedDataplaneFeaturesRequest) MarshalBinary

func (msg *GetSupportedDataplaneFeaturesRequest) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*GetSupportedDataplaneFeaturesRequest) ProtoMessage

func (*GetSupportedDataplaneFeaturesRequest) ProtoMessage()

func (*GetSupportedDataplaneFeaturesRequest) ProtoReflect

func (*GetSupportedDataplaneFeaturesRequest) Reset

func (*GetSupportedDataplaneFeaturesRequest) String

func (*GetSupportedDataplaneFeaturesRequest) UnmarshalBinary

func (msg *GetSupportedDataplaneFeaturesRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type GetSupportedDataplaneFeaturesResponse

type GetSupportedDataplaneFeaturesResponse struct {
	SupportedDataplaneFeatures []*DataplaneFeatureSupport `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetSupportedDataplaneFeaturesResponse) Descriptor deprecated

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

Deprecated: Use GetSupportedDataplaneFeaturesResponse.ProtoReflect.Descriptor instead.

func (*GetSupportedDataplaneFeaturesResponse) GetSupportedDataplaneFeatures

func (x *GetSupportedDataplaneFeaturesResponse) GetSupportedDataplaneFeatures() []*DataplaneFeatureSupport

func (*GetSupportedDataplaneFeaturesResponse) MarshalBinary

func (msg *GetSupportedDataplaneFeaturesResponse) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*GetSupportedDataplaneFeaturesResponse) ProtoMessage

func (*GetSupportedDataplaneFeaturesResponse) ProtoMessage()

func (*GetSupportedDataplaneFeaturesResponse) ProtoReflect

func (*GetSupportedDataplaneFeaturesResponse) Reset

func (*GetSupportedDataplaneFeaturesResponse) String

func (*GetSupportedDataplaneFeaturesResponse) UnmarshalBinary

func (msg *GetSupportedDataplaneFeaturesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type ServiceKind

type ServiceKind int32
const (
	// ServiceKind UNSPECIFIED is a sentinel value for when a request
	// did not specify a service kind. This will be treated the same
	// as if TYPICAL was explicitly used.
	ServiceKind_SERVICE_KIND_UNSPECIFIED ServiceKind = 0
	// ServiceKind Typical is a typical, classic Consul service. This is
	// represented by the absence of a value. This was chosen for ease of
	// backwards compatibility: existing services in the catalog would
	// default to the typical service.
	ServiceKind_SERVICE_KIND_TYPICAL ServiceKind = 1
	// ServiceKind Connect Proxy is a proxy for the Connect feature. This
	// service proxies another service within Consul and speaks the connect
	// protocol.
	ServiceKind_SERVICE_KIND_CONNECT_PROXY ServiceKind = 2
	// ServiceKind Mesh Gateway is a Mesh Gateway for the Connect feature. This
	// service will proxy connections based off the SNI header set by other
	// connect proxies.
	ServiceKind_SERVICE_KIND_MESH_GATEWAY ServiceKind = 3
	// ServiceKind Terminating Gateway is a Terminating Gateway for the Connect
	// feature. This service will proxy connections to services outside the mesh.
	ServiceKind_SERVICE_KIND_TERMINATING_GATEWAY ServiceKind = 4
	// ServiceKind Ingress Gateway is an Ingress Gateway for the Connect feature.
	// This service will ingress connections into the service mesh.
	ServiceKind_SERVICE_KIND_INGRESS_GATEWAY ServiceKind = 5
	// ServiceKind API Gateway is an API Gateway for the Connect feature.
	// This service will ingress connections in to the service mesh.
	ServiceKind_SERVICE_KIND_API_GATEWAY ServiceKind = 6
)

func (ServiceKind) Descriptor

func (ServiceKind) Enum

func (x ServiceKind) Enum() *ServiceKind

func (ServiceKind) EnumDescriptor deprecated

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

Deprecated: Use ServiceKind.Descriptor instead.

func (ServiceKind) Number

func (x ServiceKind) Number() protoreflect.EnumNumber

func (ServiceKind) String

func (x ServiceKind) String() string

func (ServiceKind) Type

type UnimplementedDataplaneServiceServer

type UnimplementedDataplaneServiceServer struct {
}

UnimplementedDataplaneServiceServer should be embedded to have forward compatible implementations.

type UnsafeDataplaneServiceServer

type UnsafeDataplaneServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDataplaneServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataplaneServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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