statusv1

package
v0.24.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package statusv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_aperture_status_v1_status_proto protoreflect.FileDescriptor
View Source
var StatusService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aperture.status.v1.StatusService",
	HandlerType: (*StatusServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetGroupStatus",
			Handler:    _StatusService_GetGroupStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aperture/status/v1/status.proto",
}

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

Functions

func RegisterStatusServiceHandler

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

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

func RegisterStatusServiceHandlerClient

func RegisterStatusServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StatusServiceClient) error

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

func RegisterStatusServiceHandlerFromEndpoint

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

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

func RegisterStatusServiceHandlerServer

func RegisterStatusServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StatusServiceServer) error

RegisterStatusServiceHandlerServer registers the http handlers for service StatusService to "mux". UnaryRPC :call StatusServiceServer 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 RegisterStatusServiceHandlerFromEndpoint instead.

func RegisterStatusServiceServer

func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer)

Types

type GroupStatus

type GroupStatus struct {
	Status *Status                 `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Groups map[string]*GroupStatus `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Groups is nested structure that holds status information about the node and a pointer to the next node.

func (*GroupStatus) DeepCopy

func (in *GroupStatus) DeepCopy() *GroupStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupStatus. Required by controller-gen.

func (*GroupStatus) DeepCopyInterface

func (in *GroupStatus) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GroupStatus. Required by controller-gen.

func (*GroupStatus) DeepCopyInto

func (in *GroupStatus) DeepCopyInto(out *GroupStatus)

DeepCopyInto supports using GroupStatus within kubernetes types, where deepcopy-gen is used.

func (*GroupStatus) Descriptor deprecated

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

Deprecated: Use GroupStatus.ProtoReflect.Descriptor instead.

func (*GroupStatus) GetGroups

func (x *GroupStatus) GetGroups() map[string]*GroupStatus

func (*GroupStatus) GetStatus

func (x *GroupStatus) GetStatus() *Status

func (*GroupStatus) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*GroupStatus) ProtoMessage

func (*GroupStatus) ProtoMessage()

func (*GroupStatus) ProtoReflect

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

func (*GroupStatus) Reset

func (x *GroupStatus) Reset()

func (*GroupStatus) String

func (x *GroupStatus) String() string

func (*GroupStatus) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type GroupStatusRequest

type GroupStatusRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupStatusRequest) DeepCopy

func (in *GroupStatusRequest) DeepCopy() *GroupStatusRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupStatusRequest. Required by controller-gen.

func (*GroupStatusRequest) DeepCopyInterface

func (in *GroupStatusRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GroupStatusRequest. Required by controller-gen.

func (*GroupStatusRequest) DeepCopyInto

func (in *GroupStatusRequest) DeepCopyInto(out *GroupStatusRequest)

DeepCopyInto supports using GroupStatusRequest within kubernetes types, where deepcopy-gen is used.

func (*GroupStatusRequest) Descriptor deprecated

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

Deprecated: Use GroupStatusRequest.ProtoReflect.Descriptor instead.

func (*GroupStatusRequest) GetPath

func (x *GroupStatusRequest) GetPath() string

func (*GroupStatusRequest) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*GroupStatusRequest) ProtoMessage

func (*GroupStatusRequest) ProtoMessage()

func (*GroupStatusRequest) ProtoReflect

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

func (*GroupStatusRequest) Reset

func (x *GroupStatusRequest) Reset()

func (*GroupStatusRequest) String

func (x *GroupStatusRequest) String() string

func (*GroupStatusRequest) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type Status

type Status struct {
	Message   *anypb.Any             `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Error     *Status_Error          `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Status holds details about a status that can be reported to the registry.

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status. Required by controller-gen.

func (*Status) DeepCopyInterface

func (in *Status) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Status. Required by controller-gen.

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto supports using Status within kubernetes types, where deepcopy-gen is used.

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetError

func (x *Status) GetError() *Status_Error

func (*Status) GetMessage

func (x *Status) GetMessage() *anypb.Any

func (*Status) GetTimestamp

func (x *Status) GetTimestamp() *timestamppb.Timestamp

func (*Status) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

func (*Status) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type StatusServiceClient

type StatusServiceClient interface {
	GetGroupStatus(ctx context.Context, in *GroupStatusRequest, opts ...grpc.CallOption) (*GroupStatus, error)
}

StatusServiceClient is the client API for StatusService 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 StatusServiceServer

type StatusServiceServer interface {
	GetGroupStatus(context.Context, *GroupStatusRequest) (*GroupStatus, error)
}

StatusServiceServer is the server API for StatusService service. All implementations should embed UnimplementedStatusServiceServer for forward compatibility

type Status_Error

type Status_Error struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Error holds raw error message and its cause in a nested field.

func (*Status_Error) DeepCopy added in v0.15.0

func (in *Status_Error) DeepCopy() *Status_Error

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status_Error. Required by controller-gen.

func (*Status_Error) DeepCopyInterface added in v0.15.0

func (in *Status_Error) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Status_Error. Required by controller-gen.

func (*Status_Error) DeepCopyInto added in v0.15.0

func (in *Status_Error) DeepCopyInto(out *Status_Error)

DeepCopyInto supports using Status_Error within kubernetes types, where deepcopy-gen is used.

func (*Status_Error) Descriptor deprecated added in v0.15.0

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

Deprecated: Use Status_Error.ProtoReflect.Descriptor instead.

func (*Status_Error) GetMessage added in v0.15.0

func (x *Status_Error) GetMessage() string

func (*Status_Error) MarshalJSON added in v0.15.0

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

MarshalJSON implements json.Marshaler

func (*Status_Error) ProtoMessage added in v0.15.0

func (*Status_Error) ProtoMessage()

func (*Status_Error) ProtoReflect added in v0.15.0

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

func (*Status_Error) Reset added in v0.15.0

func (x *Status_Error) Reset()

func (*Status_Error) String added in v0.15.0

func (x *Status_Error) String() string

func (*Status_Error) UnmarshalJSON added in v0.15.0

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

UnmarshalJSON implements json.Unmarshaler

type UnimplementedStatusServiceServer

type UnimplementedStatusServiceServer struct {
}

UnimplementedStatusServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedStatusServiceServer) GetGroupStatus

type UnsafeStatusServiceServer

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

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

Jump to

Keyboard shortcuts

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