Documentation ¶
Overview ¶
Package infov1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Index ¶
- Variables
- func RegisterInfoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInfoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfoServiceClient) error
- func RegisterInfoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfoServiceServer) error
- func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)
- type HostInfo
- func (in *HostInfo) DeepCopy() *HostInfo
- func (in *HostInfo) DeepCopyInterface() interface{}
- func (in *HostInfo) DeepCopyInto(out *HostInfo)
- func (*HostInfo) Descriptor() ([]byte, []int)deprecated
- func (x *HostInfo) GetHostname() string
- func (x *HostInfo) GetLocalIp() string
- func (x *HostInfo) GetUuid() string
- func (msg *HostInfo) MarshalJSON() ([]byte, error)
- func (*HostInfo) ProtoMessage()
- func (x *HostInfo) ProtoReflect() protoreflect.Message
- func (x *HostInfo) Reset()
- func (x *HostInfo) String() string
- func (msg *HostInfo) UnmarshalJSON(b []byte) error
- type InfoServiceClient
- type InfoServiceServer
- type ProcessInfo
- func (in *ProcessInfo) DeepCopy() *ProcessInfo
- func (in *ProcessInfo) DeepCopyInterface() interface{}
- func (in *ProcessInfo) DeepCopyInto(out *ProcessInfo)
- func (*ProcessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessInfo) GetExtensions() []string
- func (x *ProcessInfo) GetStartTime() *timestamppb.Timestamp
- func (x *ProcessInfo) GetUptime() *durationpb.Duration
- func (msg *ProcessInfo) MarshalJSON() ([]byte, error)
- func (*ProcessInfo) ProtoMessage()
- func (x *ProcessInfo) ProtoReflect() protoreflect.Message
- func (x *ProcessInfo) Reset()
- func (x *ProcessInfo) String() string
- func (msg *ProcessInfo) UnmarshalJSON(b []byte) error
- type UnimplementedInfoServiceServer
- type UnsafeInfoServiceServer
- type VersionInfo
- func (in *VersionInfo) DeepCopy() *VersionInfo
- func (in *VersionInfo) DeepCopyInterface() interface{}
- func (in *VersionInfo) DeepCopyInto(out *VersionInfo)
- func (*VersionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VersionInfo) GetBuildHost() string
- func (x *VersionInfo) GetBuildOs() string
- func (x *VersionInfo) GetBuildTime() string
- func (x *VersionInfo) GetGitBranch() string
- func (x *VersionInfo) GetGitCommitHash() string
- func (x *VersionInfo) GetService() string
- func (x *VersionInfo) GetVersion() string
- func (msg *VersionInfo) MarshalJSON() ([]byte, error)
- func (*VersionInfo) ProtoMessage()
- func (x *VersionInfo) ProtoReflect() protoreflect.Message
- func (x *VersionInfo) Reset()
- func (x *VersionInfo) String() string
- func (msg *VersionInfo) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var File_aperture_info_v1_info_proto protoreflect.FileDescriptor
var InfoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aperture.info.v1.InfoService", HandlerType: (*InfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Version", Handler: _InfoService_Version_Handler, }, { MethodName: "Process", Handler: _InfoService_Process_Handler, }, { MethodName: "Host", Handler: _InfoService_Host_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aperture/info/v1/info.proto", }
InfoService_ServiceDesc is the grpc.ServiceDesc for InfoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInfoServiceHandler ¶
func RegisterInfoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInfoServiceHandler registers the http handlers for service InfoService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInfoServiceHandlerClient ¶
func RegisterInfoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfoServiceClient) error
RegisterInfoServiceHandlerClient registers the http handlers for service InfoService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InfoServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InfoServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InfoServiceClient" to call the correct interceptors.
func RegisterInfoServiceHandlerFromEndpoint ¶
func RegisterInfoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInfoServiceHandlerFromEndpoint is same as RegisterInfoServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInfoServiceHandlerServer ¶
func RegisterInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfoServiceServer) error
RegisterInfoServiceHandlerServer registers the http handlers for service InfoService to "mux". UnaryRPC :call InfoServiceServer 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 RegisterInfoServiceHandlerFromEndpoint instead.
func RegisterInfoServiceServer ¶
func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)
Types ¶
type HostInfo ¶
type HostInfo struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` LocalIp string `protobuf:"bytes,3,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` // contains filtered or unexported fields }
func (*HostInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostInfo. Required by controller-gen.
func (*HostInfo) DeepCopyInterface ¶
func (in *HostInfo) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HostInfo. Required by controller-gen.
func (*HostInfo) DeepCopyInto ¶
DeepCopyInto supports using HostInfo within kubernetes types, where deepcopy-gen is used.
func (*HostInfo) Descriptor
deprecated
func (*HostInfo) GetHostname ¶
func (*HostInfo) GetLocalIp ¶
func (*HostInfo) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*HostInfo) ProtoMessage ¶
func (*HostInfo) ProtoMessage()
func (*HostInfo) ProtoReflect ¶
func (x *HostInfo) ProtoReflect() protoreflect.Message
func (*HostInfo) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type InfoServiceClient ¶
type InfoServiceClient interface { Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionInfo, error) Process(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProcessInfo, error) Host(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HostInfo, error) }
InfoServiceClient is the client API for InfoService 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.
func NewInfoServiceClient ¶
func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient
type InfoServiceServer ¶
type InfoServiceServer interface { Version(context.Context, *emptypb.Empty) (*VersionInfo, error) Process(context.Context, *emptypb.Empty) (*ProcessInfo, error) Host(context.Context, *emptypb.Empty) (*HostInfo, error) }
InfoServiceServer is the server API for InfoService service. All implementations should embed UnimplementedInfoServiceServer for forward compatibility
type ProcessInfo ¶
type ProcessInfo struct { StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` Uptime *durationpb.Duration `protobuf:"bytes,2,opt,name=uptime,proto3" json:"uptime,omitempty"` Extensions []string `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"` // contains filtered or unexported fields }
func (*ProcessInfo) DeepCopy ¶
func (in *ProcessInfo) DeepCopy() *ProcessInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProcessInfo. Required by controller-gen.
func (*ProcessInfo) DeepCopyInterface ¶
func (in *ProcessInfo) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ProcessInfo. Required by controller-gen.
func (*ProcessInfo) DeepCopyInto ¶
func (in *ProcessInfo) DeepCopyInto(out *ProcessInfo)
DeepCopyInto supports using ProcessInfo within kubernetes types, where deepcopy-gen is used.
func (*ProcessInfo) Descriptor
deprecated
func (*ProcessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProcessInfo.ProtoReflect.Descriptor instead.
func (*ProcessInfo) GetExtensions ¶ added in v1.0.0
func (x *ProcessInfo) GetExtensions() []string
func (*ProcessInfo) GetStartTime ¶
func (x *ProcessInfo) GetStartTime() *timestamppb.Timestamp
func (*ProcessInfo) GetUptime ¶
func (x *ProcessInfo) GetUptime() *durationpb.Duration
func (*ProcessInfo) MarshalJSON ¶
func (msg *ProcessInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ProcessInfo) ProtoMessage ¶
func (*ProcessInfo) ProtoMessage()
func (*ProcessInfo) ProtoReflect ¶
func (x *ProcessInfo) ProtoReflect() protoreflect.Message
func (*ProcessInfo) Reset ¶
func (x *ProcessInfo) Reset()
func (*ProcessInfo) String ¶
func (x *ProcessInfo) String() string
func (*ProcessInfo) UnmarshalJSON ¶
func (msg *ProcessInfo) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type UnimplementedInfoServiceServer ¶
type UnimplementedInfoServiceServer struct { }
UnimplementedInfoServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedInfoServiceServer) Process ¶
func (UnimplementedInfoServiceServer) Process(context.Context, *emptypb.Empty) (*ProcessInfo, error)
func (UnimplementedInfoServiceServer) Version ¶
func (UnimplementedInfoServiceServer) Version(context.Context, *emptypb.Empty) (*VersionInfo, error)
type UnsafeInfoServiceServer ¶
type UnsafeInfoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInfoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InfoServiceServer will result in compilation errors.
type VersionInfo ¶
type VersionInfo struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` BuildHost string `protobuf:"bytes,3,opt,name=build_host,json=buildHost,proto3" json:"build_host,omitempty"` BuildOs string `protobuf:"bytes,4,opt,name=build_os,json=buildOs,proto3" json:"build_os,omitempty"` BuildTime string `protobuf:"bytes,5,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"` GitBranch string `protobuf:"bytes,6,opt,name=git_branch,json=gitBranch,proto3" json:"git_branch,omitempty"` GitCommitHash string `protobuf:"bytes,7,opt,name=git_commit_hash,json=gitCommitHash,proto3" json:"git_commit_hash,omitempty"` // contains filtered or unexported fields }
func (*VersionInfo) DeepCopy ¶
func (in *VersionInfo) DeepCopy() *VersionInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionInfo. Required by controller-gen.
func (*VersionInfo) DeepCopyInterface ¶
func (in *VersionInfo) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new VersionInfo. Required by controller-gen.
func (*VersionInfo) DeepCopyInto ¶
func (in *VersionInfo) DeepCopyInto(out *VersionInfo)
DeepCopyInto supports using VersionInfo within kubernetes types, where deepcopy-gen is used.
func (*VersionInfo) Descriptor
deprecated
func (*VersionInfo) Descriptor() ([]byte, []int)
Deprecated: Use VersionInfo.ProtoReflect.Descriptor instead.
func (*VersionInfo) GetBuildHost ¶
func (x *VersionInfo) GetBuildHost() string
func (*VersionInfo) GetBuildOs ¶
func (x *VersionInfo) GetBuildOs() string
func (*VersionInfo) GetBuildTime ¶
func (x *VersionInfo) GetBuildTime() string
func (*VersionInfo) GetGitBranch ¶
func (x *VersionInfo) GetGitBranch() string
func (*VersionInfo) GetGitCommitHash ¶
func (x *VersionInfo) GetGitCommitHash() string
func (*VersionInfo) GetService ¶
func (x *VersionInfo) GetService() string
func (*VersionInfo) GetVersion ¶
func (x *VersionInfo) GetVersion() string
func (*VersionInfo) MarshalJSON ¶
func (msg *VersionInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) ProtoReflect ¶
func (x *VersionInfo) ProtoReflect() protoreflect.Message
func (*VersionInfo) Reset ¶
func (x *VersionInfo) Reset()
func (*VersionInfo) String ¶
func (x *VersionInfo) String() string
func (*VersionInfo) UnmarshalJSON ¶
func (msg *VersionInfo) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler