controlpointsv1

package
v2.0.0-...-d8f0e26 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 32 Imported by: 3

Documentation

Overview

Package controlpointsv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AutoScaleKubernetesControlPointsService_GetControlPoints_FullMethodName = "/aperture.autoscale.kubernetes.controlpoints.v1.AutoScaleKubernetesControlPointsService/GetControlPoints"
)

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AutoScaleKubernetesControlPointsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aperture.autoscale.kubernetes.controlpoints.v1.AutoScaleKubernetesControlPointsService",
	HandlerType: (*AutoScaleKubernetesControlPointsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetControlPoints",
			Handler:    _AutoScaleKubernetesControlPointsService_GetControlPoints_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aperture/autoscale/kubernetes/controlpoints/v1/controlpoints.proto",
}

AutoScaleKubernetesControlPointsService_ServiceDesc is the grpc.ServiceDesc for AutoScaleKubernetesControlPointsService 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_aperture_autoscale_kubernetes_controlpoints_v1_controlpoints_proto protoreflect.FileDescriptor

Functions

func RegisterAutoScaleKubernetesControlPointsServiceHandler

func RegisterAutoScaleKubernetesControlPointsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAutoScaleKubernetesControlPointsServiceHandler registers the http handlers for service AutoScaleKubernetesControlPointsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAutoScaleKubernetesControlPointsServiceHandlerClient

func RegisterAutoScaleKubernetesControlPointsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AutoScaleKubernetesControlPointsServiceClient) error

RegisterAutoScaleKubernetesControlPointsServiceHandlerClient registers the http handlers for service AutoScaleKubernetesControlPointsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AutoScaleKubernetesControlPointsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AutoScaleKubernetesControlPointsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AutoScaleKubernetesControlPointsServiceClient" to call the correct interceptors.

func RegisterAutoScaleKubernetesControlPointsServiceHandlerFromEndpoint

func RegisterAutoScaleKubernetesControlPointsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAutoScaleKubernetesControlPointsServiceHandlerFromEndpoint is same as RegisterAutoScaleKubernetesControlPointsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAutoScaleKubernetesControlPointsServiceHandlerServer

func RegisterAutoScaleKubernetesControlPointsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AutoScaleKubernetesControlPointsServiceServer) error

RegisterAutoScaleKubernetesControlPointsServiceHandlerServer registers the http handlers for service AutoScaleKubernetesControlPointsService to "mux". UnaryRPC :call AutoScaleKubernetesControlPointsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAutoScaleKubernetesControlPointsServiceHandlerFromEndpoint instead.

Types

type AutoScaleKubernetesControlPoint

type AutoScaleKubernetesControlPoint struct {
	ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	Kind       string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Namespace  string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name       string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*AutoScaleKubernetesControlPoint) Descriptor deprecated

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

Deprecated: Use AutoScaleKubernetesControlPoint.ProtoReflect.Descriptor instead.

func (*AutoScaleKubernetesControlPoint) GetApiVersion

func (x *AutoScaleKubernetesControlPoint) GetApiVersion() string

func (*AutoScaleKubernetesControlPoint) GetKind

func (*AutoScaleKubernetesControlPoint) GetName

func (*AutoScaleKubernetesControlPoint) GetNamespace

func (x *AutoScaleKubernetesControlPoint) GetNamespace() string

func (*AutoScaleKubernetesControlPoint) MarshalJSON

func (msg *AutoScaleKubernetesControlPoint) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*AutoScaleKubernetesControlPoint) MarshalToSizedBufferVT

func (m *AutoScaleKubernetesControlPoint) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AutoScaleKubernetesControlPoint) MarshalToVT

func (m *AutoScaleKubernetesControlPoint) MarshalToVT(dAtA []byte) (int, error)

func (*AutoScaleKubernetesControlPoint) MarshalVT

func (m *AutoScaleKubernetesControlPoint) MarshalVT() (dAtA []byte, err error)

func (*AutoScaleKubernetesControlPoint) ProtoMessage

func (*AutoScaleKubernetesControlPoint) ProtoMessage()

func (*AutoScaleKubernetesControlPoint) ProtoReflect

func (*AutoScaleKubernetesControlPoint) Reset

func (*AutoScaleKubernetesControlPoint) SizeVT

func (m *AutoScaleKubernetesControlPoint) SizeVT() (n int)

func (*AutoScaleKubernetesControlPoint) String

func (*AutoScaleKubernetesControlPoint) UnmarshalJSON

func (msg *AutoScaleKubernetesControlPoint) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*AutoScaleKubernetesControlPoint) UnmarshalVT

func (m *AutoScaleKubernetesControlPoint) UnmarshalVT(dAtA []byte) error

func (*AutoScaleKubernetesControlPoint) Validate

func (m *AutoScaleKubernetesControlPoint) Validate() error

Validate checks the field values on AutoScaleKubernetesControlPoint 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 (*AutoScaleKubernetesControlPoint) ValidateAll

func (m *AutoScaleKubernetesControlPoint) ValidateAll() error

ValidateAll checks the field values on AutoScaleKubernetesControlPoint 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 AutoScaleKubernetesControlPointMultiError, or nil if none found.

type AutoScaleKubernetesControlPointMultiError

type AutoScaleKubernetesControlPointMultiError []error

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

func (AutoScaleKubernetesControlPointMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AutoScaleKubernetesControlPointMultiError) Error

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

type AutoScaleKubernetesControlPointValidationError

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

AutoScaleKubernetesControlPointValidationError is the validation error returned by AutoScaleKubernetesControlPoint.Validate if the designated constraints aren't met.

func (AutoScaleKubernetesControlPointValidationError) Cause

Cause function returns cause value.

func (AutoScaleKubernetesControlPointValidationError) Error

Error satisfies the builtin error interface

func (AutoScaleKubernetesControlPointValidationError) ErrorName

ErrorName returns error name.

func (AutoScaleKubernetesControlPointValidationError) Field

Field function returns field value.

func (AutoScaleKubernetesControlPointValidationError) Key

Key function returns key value.

func (AutoScaleKubernetesControlPointValidationError) Reason

Reason function returns reason value.

type AutoScaleKubernetesControlPoints

type AutoScaleKubernetesControlPoints struct {
	AutoScaleKubernetesControlPoints []*AutoScaleKubernetesControlPoint `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AutoScaleKubernetesControlPoints) Descriptor deprecated

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

Deprecated: Use AutoScaleKubernetesControlPoints.ProtoReflect.Descriptor instead.

func (*AutoScaleKubernetesControlPoints) GetAutoScaleKubernetesControlPoints

func (x *AutoScaleKubernetesControlPoints) GetAutoScaleKubernetesControlPoints() []*AutoScaleKubernetesControlPoint

func (*AutoScaleKubernetesControlPoints) MarshalJSON

func (msg *AutoScaleKubernetesControlPoints) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*AutoScaleKubernetesControlPoints) MarshalToSizedBufferVT

func (m *AutoScaleKubernetesControlPoints) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AutoScaleKubernetesControlPoints) MarshalToVT

func (m *AutoScaleKubernetesControlPoints) MarshalToVT(dAtA []byte) (int, error)

func (*AutoScaleKubernetesControlPoints) MarshalVT

func (m *AutoScaleKubernetesControlPoints) MarshalVT() (dAtA []byte, err error)

func (*AutoScaleKubernetesControlPoints) ProtoMessage

func (*AutoScaleKubernetesControlPoints) ProtoMessage()

func (*AutoScaleKubernetesControlPoints) ProtoReflect

func (*AutoScaleKubernetesControlPoints) Reset

func (*AutoScaleKubernetesControlPoints) SizeVT

func (m *AutoScaleKubernetesControlPoints) SizeVT() (n int)

func (*AutoScaleKubernetesControlPoints) String

func (*AutoScaleKubernetesControlPoints) UnmarshalJSON

func (msg *AutoScaleKubernetesControlPoints) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*AutoScaleKubernetesControlPoints) UnmarshalVT

func (m *AutoScaleKubernetesControlPoints) UnmarshalVT(dAtA []byte) error

func (*AutoScaleKubernetesControlPoints) Validate

Validate checks the field values on AutoScaleKubernetesControlPoints 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 (*AutoScaleKubernetesControlPoints) ValidateAll

func (m *AutoScaleKubernetesControlPoints) ValidateAll() error

ValidateAll checks the field values on AutoScaleKubernetesControlPoints 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 AutoScaleKubernetesControlPointsMultiError, or nil if none found.

type AutoScaleKubernetesControlPointsMultiError

type AutoScaleKubernetesControlPointsMultiError []error

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

func (AutoScaleKubernetesControlPointsMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AutoScaleKubernetesControlPointsMultiError) Error

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

type AutoScaleKubernetesControlPointsServiceClient

type AutoScaleKubernetesControlPointsServiceClient interface {
	GetControlPoints(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AutoScaleKubernetesControlPoints, error)
}

AutoScaleKubernetesControlPointsServiceClient is the client API for AutoScaleKubernetesControlPointsService 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 AutoScaleKubernetesControlPointsServiceServer

type AutoScaleKubernetesControlPointsServiceServer interface {
	GetControlPoints(context.Context, *emptypb.Empty) (*AutoScaleKubernetesControlPoints, error)
}

AutoScaleKubernetesControlPointsServiceServer is the server API for AutoScaleKubernetesControlPointsService service. All implementations should embed UnimplementedAutoScaleKubernetesControlPointsServiceServer for forward compatibility

type AutoScaleKubernetesControlPointsValidationError

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

AutoScaleKubernetesControlPointsValidationError is the validation error returned by AutoScaleKubernetesControlPoints.Validate if the designated constraints aren't met.

func (AutoScaleKubernetesControlPointsValidationError) Cause

Cause function returns cause value.

func (AutoScaleKubernetesControlPointsValidationError) Error

Error satisfies the builtin error interface

func (AutoScaleKubernetesControlPointsValidationError) ErrorName

ErrorName returns error name.

func (AutoScaleKubernetesControlPointsValidationError) Field

Field function returns field value.

func (AutoScaleKubernetesControlPointsValidationError) Key

Key function returns key value.

func (AutoScaleKubernetesControlPointsValidationError) Reason

Reason function returns reason value.

type UnimplementedAutoScaleKubernetesControlPointsServiceServer

type UnimplementedAutoScaleKubernetesControlPointsServiceServer struct {
}

UnimplementedAutoScaleKubernetesControlPointsServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAutoScaleKubernetesControlPointsServiceServer) GetControlPoints

type UnsafeAutoScaleKubernetesControlPointsServiceServer

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

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

Jump to

Keyboard shortcuts

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