infov1

package
v0.17.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var File_aperture_info_v1_info_proto protoreflect.FileDescriptor
View Source
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

func (in *HostInfo) DeepCopy() *HostInfo

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

func (in *HostInfo) DeepCopyInto(out *HostInfo)

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

func (*HostInfo) Descriptor deprecated

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

Deprecated: Use HostInfo.ProtoReflect.Descriptor instead.

func (*HostInfo) GetHostname

func (x *HostInfo) GetHostname() string

func (*HostInfo) GetLocalIp

func (x *HostInfo) GetLocalIp() string

func (*HostInfo) GetUuid

func (x *HostInfo) GetUuid() string

func (*HostInfo) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*HostInfo) ProtoMessage

func (*HostInfo) ProtoMessage()

func (*HostInfo) ProtoReflect

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

func (*HostInfo) Reset

func (x *HostInfo) Reset()

func (*HostInfo) String

func (x *HostInfo) String() string

func (*HostInfo) UnmarshalJSON

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

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.

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"`
	// 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) 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) Host

func (UnimplementedInfoServiceServer) Process

func (UnimplementedInfoServiceServer) Version

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

Jump to

Keyboard shortcuts

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