clusterv3

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 24 Imported by: 122

Documentation

Index

Constants

View Source
const (
	ClusterDiscoveryService_StreamClusters_FullMethodName = "/envoy.service.cluster.v3.ClusterDiscoveryService/StreamClusters"
	ClusterDiscoveryService_DeltaClusters_FullMethodName  = "/envoy.service.cluster.v3.ClusterDiscoveryService/DeltaClusters"
	ClusterDiscoveryService_FetchClusters_FullMethodName  = "/envoy.service.cluster.v3.ClusterDiscoveryService/FetchClusters"
)

Variables

View Source
var ClusterDiscoveryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "envoy.service.cluster.v3.ClusterDiscoveryService",
	HandlerType: (*ClusterDiscoveryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FetchClusters",
			Handler:    _ClusterDiscoveryService_FetchClusters_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamClusters",
			Handler:       _ClusterDiscoveryService_StreamClusters_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "DeltaClusters",
			Handler:       _ClusterDiscoveryService_DeltaClusters_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "envoy/service/cluster/v3/cds.proto",
}

ClusterDiscoveryService_ServiceDesc is the grpc.ServiceDesc for ClusterDiscoveryService 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_envoy_service_cluster_v3_cds_proto protoreflect.FileDescriptor

Functions

func RegisterClusterDiscoveryServiceServer

func RegisterClusterDiscoveryServiceServer(s grpc.ServiceRegistrar, srv ClusterDiscoveryServiceServer)

Types

type CdsDummy

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

[#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.

func (*CdsDummy) Descriptor deprecated

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

Deprecated: Use CdsDummy.ProtoReflect.Descriptor instead.

func (*CdsDummy) ProtoMessage

func (*CdsDummy) ProtoMessage()

func (*CdsDummy) ProtoReflect added in v0.9.6

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

func (*CdsDummy) Reset

func (x *CdsDummy) Reset()

func (*CdsDummy) String

func (x *CdsDummy) String() string

func (*CdsDummy) Validate

func (m *CdsDummy) Validate() error

Validate checks the field values on CdsDummy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CdsDummy) ValidateAll added in v0.10.0

func (m *CdsDummy) ValidateAll() error

ValidateAll checks the field values on CdsDummy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CdsDummyMultiError, or nil if none found.

type CdsDummyMultiError added in v0.10.0

type CdsDummyMultiError []error

CdsDummyMultiError is an error wrapping multiple validation errors returned by CdsDummy.ValidateAll() if the designated constraints aren't met.

func (CdsDummyMultiError) AllErrors added in v0.10.0

func (m CdsDummyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CdsDummyMultiError) Error added in v0.10.0

func (m CdsDummyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CdsDummyValidationError

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

CdsDummyValidationError is the validation error returned by CdsDummy.Validate if the designated constraints aren't met.

func (CdsDummyValidationError) Cause

func (e CdsDummyValidationError) Cause() error

Cause function returns cause value.

func (CdsDummyValidationError) Error

func (e CdsDummyValidationError) Error() string

Error satisfies the builtin error interface

func (CdsDummyValidationError) ErrorName

func (e CdsDummyValidationError) ErrorName() string

ErrorName returns error name.

func (CdsDummyValidationError) Field

func (e CdsDummyValidationError) Field() string

Field function returns field value.

func (CdsDummyValidationError) Key

func (e CdsDummyValidationError) Key() bool

Key function returns key value.

func (CdsDummyValidationError) Reason

func (e CdsDummyValidationError) Reason() string

Reason function returns reason value.

type ClusterDiscoveryServiceClient

type ClusterDiscoveryServiceClient interface {
	StreamClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_StreamClustersClient, error)
	DeltaClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_DeltaClustersClient, error)
	FetchClusters(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error)
}

ClusterDiscoveryServiceClient is the client API for ClusterDiscoveryService 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 ClusterDiscoveryServiceServer

type ClusterDiscoveryServiceServer interface {
	StreamClusters(ClusterDiscoveryService_StreamClustersServer) error
	DeltaClusters(ClusterDiscoveryService_DeltaClustersServer) error
	FetchClusters(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error)
}

ClusterDiscoveryServiceServer is the server API for ClusterDiscoveryService service. All implementations should embed UnimplementedClusterDiscoveryServiceServer for forward compatibility

type ClusterDiscoveryService_DeltaClustersClient

type ClusterDiscoveryService_DeltaClustersClient interface {
	Send(*v3.DeltaDiscoveryRequest) error
	Recv() (*v3.DeltaDiscoveryResponse, error)
	grpc.ClientStream
}

type ClusterDiscoveryService_DeltaClustersServer

type ClusterDiscoveryService_DeltaClustersServer interface {
	Send(*v3.DeltaDiscoveryResponse) error
	Recv() (*v3.DeltaDiscoveryRequest, error)
	grpc.ServerStream
}

type ClusterDiscoveryService_StreamClustersClient

type ClusterDiscoveryService_StreamClustersClient interface {
	Send(*v3.DiscoveryRequest) error
	Recv() (*v3.DiscoveryResponse, error)
	grpc.ClientStream
}

type ClusterDiscoveryService_StreamClustersServer

type ClusterDiscoveryService_StreamClustersServer interface {
	Send(*v3.DiscoveryResponse) error
	Recv() (*v3.DiscoveryRequest, error)
	grpc.ServerStream
}

type UnimplementedClusterDiscoveryServiceServer

type UnimplementedClusterDiscoveryServiceServer struct {
}

UnimplementedClusterDiscoveryServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedClusterDiscoveryServiceServer) DeltaClusters

func (UnimplementedClusterDiscoveryServiceServer) FetchClusters

func (UnimplementedClusterDiscoveryServiceServer) StreamClusters

type UnsafeClusterDiscoveryServiceServer added in v0.13.0

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

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

Jump to

Keyboard shortcuts

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