statusv1

package
v1.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 31 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

View Source
const (
	StatusService_GetGroupStatus_FullMethodName = "/aperture.status.v1.StatusService/GetGroupStatus"
)

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

func (*GroupStatus) Validate added in v1.2.0

func (m *GroupStatus) Validate() error

Validate checks the field values on GroupStatus 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 (*GroupStatus) ValidateAll added in v1.2.0

func (m *GroupStatus) ValidateAll() error

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

type GroupStatusMultiError added in v1.2.0

type GroupStatusMultiError []error

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

func (GroupStatusMultiError) AllErrors added in v1.2.0

func (m GroupStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GroupStatusMultiError) Error added in v1.2.0

func (m GroupStatusMultiError) Error() string

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

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

func (*GroupStatusRequest) Validate added in v1.2.0

func (m *GroupStatusRequest) Validate() error

Validate checks the field values on GroupStatusRequest 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 (*GroupStatusRequest) ValidateAll added in v1.2.0

func (m *GroupStatusRequest) ValidateAll() error

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

type GroupStatusRequestMultiError added in v1.2.0

type GroupStatusRequestMultiError []error

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

func (GroupStatusRequestMultiError) AllErrors added in v1.2.0

func (m GroupStatusRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GroupStatusRequestMultiError) Error added in v1.2.0

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

type GroupStatusRequestValidationError added in v1.2.0

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

GroupStatusRequestValidationError is the validation error returned by GroupStatusRequest.Validate if the designated constraints aren't met.

func (GroupStatusRequestValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (GroupStatusRequestValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (GroupStatusRequestValidationError) ErrorName added in v1.2.0

ErrorName returns error name.

func (GroupStatusRequestValidationError) Field added in v1.2.0

Field function returns field value.

func (GroupStatusRequestValidationError) Key added in v1.2.0

Key function returns key value.

func (GroupStatusRequestValidationError) Reason added in v1.2.0

Reason function returns reason value.

type GroupStatusValidationError added in v1.2.0

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

GroupStatusValidationError is the validation error returned by GroupStatus.Validate if the designated constraints aren't met.

func (GroupStatusValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (GroupStatusValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (GroupStatusValidationError) ErrorName added in v1.2.0

func (e GroupStatusValidationError) ErrorName() string

ErrorName returns error name.

func (GroupStatusValidationError) Field added in v1.2.0

Field function returns field value.

func (GroupStatusValidationError) Key added in v1.2.0

Key function returns key value.

func (GroupStatusValidationError) Reason added in v1.2.0

Reason function returns reason value.

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

func (*Status) Validate added in v1.2.0

func (m *Status) Validate() error

Validate checks the field values on Status 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 (*Status) ValidateAll added in v1.2.0

func (m *Status) ValidateAll() error

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

type StatusMultiError added in v1.2.0

type StatusMultiError []error

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

func (StatusMultiError) AllErrors added in v1.2.0

func (m StatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatusMultiError) Error added in v1.2.0

func (m StatusMultiError) Error() string

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

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 StatusValidationError added in v1.2.0

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

StatusValidationError is the validation error returned by Status.Validate if the designated constraints aren't met.

func (StatusValidationError) Cause added in v1.2.0

func (e StatusValidationError) Cause() error

Cause function returns cause value.

func (StatusValidationError) Error added in v1.2.0

func (e StatusValidationError) Error() string

Error satisfies the builtin error interface

func (StatusValidationError) ErrorName added in v1.2.0

func (e StatusValidationError) ErrorName() string

ErrorName returns error name.

func (StatusValidationError) Field added in v1.2.0

func (e StatusValidationError) Field() string

Field function returns field value.

func (StatusValidationError) Key added in v1.2.0

func (e StatusValidationError) Key() bool

Key function returns key value.

func (StatusValidationError) Reason added in v1.2.0

func (e StatusValidationError) Reason() string

Reason function returns reason value.

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

func (*Status_Error) Validate added in v1.2.0

func (m *Status_Error) Validate() error

Validate checks the field values on Status_Error 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 (*Status_Error) ValidateAll added in v1.2.0

func (m *Status_Error) ValidateAll() error

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

type Status_ErrorMultiError added in v1.2.0

type Status_ErrorMultiError []error

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

func (Status_ErrorMultiError) AllErrors added in v1.2.0

func (m Status_ErrorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Status_ErrorMultiError) Error added in v1.2.0

func (m Status_ErrorMultiError) Error() string

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

type Status_ErrorValidationError added in v1.2.0

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

Status_ErrorValidationError is the validation error returned by Status_Error.Validate if the designated constraints aren't met.

func (Status_ErrorValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (Status_ErrorValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (Status_ErrorValidationError) ErrorName added in v1.2.0

func (e Status_ErrorValidationError) ErrorName() string

ErrorName returns error name.

func (Status_ErrorValidationError) Field added in v1.2.0

Field function returns field value.

func (Status_ErrorValidationError) Key added in v1.2.0

Key function returns key value.

func (Status_ErrorValidationError) Reason added in v1.2.0

Reason function returns reason value.

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