version

package
v2.6.13 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 18 Imported by: 9

Documentation

Overview

Package version is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthVersion        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVersion          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVersion = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterVersionServiceHandler

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

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

func RegisterVersionServiceHandlerClient

func RegisterVersionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VersionServiceClient) error

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

func RegisterVersionServiceHandlerFromEndpoint

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

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

func RegisterVersionServiceHandlerServer

func RegisterVersionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VersionServiceServer) error

RegisterVersionServiceHandlerServer registers the http handlers for service VersionService to "mux". UnaryRPC :call VersionServiceServer 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 RegisterVersionServiceHandlerFromEndpoint instead.

func RegisterVersionServiceServer

func RegisterVersionServiceServer(s *grpc.Server, srv VersionServiceServer)

Types

type UnimplementedVersionServiceServer

type UnimplementedVersionServiceServer struct {
}

UnimplementedVersionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedVersionServiceServer) Version

type VersionMessage

type VersionMessage struct {
	Version              string   `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"`
	BuildDate            string   `protobuf:"bytes,2,opt,name=BuildDate,proto3" json:"BuildDate,omitempty"`
	GitCommit            string   `protobuf:"bytes,3,opt,name=GitCommit,proto3" json:"GitCommit,omitempty"`
	GitTag               string   `protobuf:"bytes,4,opt,name=GitTag,proto3" json:"GitTag,omitempty"`
	GitTreeState         string   `protobuf:"bytes,5,opt,name=GitTreeState,proto3" json:"GitTreeState,omitempty"`
	GoVersion            string   `protobuf:"bytes,6,opt,name=GoVersion,proto3" json:"GoVersion,omitempty"`
	Compiler             string   `protobuf:"bytes,7,opt,name=Compiler,proto3" json:"Compiler,omitempty"`
	Platform             string   `protobuf:"bytes,8,opt,name=Platform,proto3" json:"Platform,omitempty"`
	KustomizeVersion     string   `protobuf:"bytes,10,opt,name=KustomizeVersion,proto3" json:"KustomizeVersion,omitempty"`
	HelmVersion          string   `protobuf:"bytes,11,opt,name=HelmVersion,proto3" json:"HelmVersion,omitempty"`
	KubectlVersion       string   `protobuf:"bytes,12,opt,name=KubectlVersion,proto3" json:"KubectlVersion,omitempty"`
	JsonnetVersion       string   `protobuf:"bytes,13,opt,name=JsonnetVersion,proto3" json:"JsonnetVersion,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

VersionMessage represents version of the Argo CD API server

func (*VersionMessage) Descriptor

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

func (*VersionMessage) GetBuildDate

func (m *VersionMessage) GetBuildDate() string

func (*VersionMessage) GetCompiler

func (m *VersionMessage) GetCompiler() string

func (*VersionMessage) GetGitCommit

func (m *VersionMessage) GetGitCommit() string

func (*VersionMessage) GetGitTag

func (m *VersionMessage) GetGitTag() string

func (*VersionMessage) GetGitTreeState

func (m *VersionMessage) GetGitTreeState() string

func (*VersionMessage) GetGoVersion

func (m *VersionMessage) GetGoVersion() string

func (*VersionMessage) GetHelmVersion

func (m *VersionMessage) GetHelmVersion() string

func (*VersionMessage) GetJsonnetVersion

func (m *VersionMessage) GetJsonnetVersion() string

func (*VersionMessage) GetKubectlVersion

func (m *VersionMessage) GetKubectlVersion() string

func (*VersionMessage) GetKustomizeVersion

func (m *VersionMessage) GetKustomizeVersion() string

func (*VersionMessage) GetPlatform

func (m *VersionMessage) GetPlatform() string

func (*VersionMessage) GetVersion

func (m *VersionMessage) GetVersion() string

func (*VersionMessage) Marshal

func (m *VersionMessage) Marshal() (dAtA []byte, err error)

func (*VersionMessage) MarshalTo

func (m *VersionMessage) MarshalTo(dAtA []byte) (int, error)

func (*VersionMessage) MarshalToSizedBuffer

func (m *VersionMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VersionMessage) ProtoMessage

func (*VersionMessage) ProtoMessage()

func (*VersionMessage) Reset

func (m *VersionMessage) Reset()

func (*VersionMessage) Size

func (m *VersionMessage) Size() (n int)

func (*VersionMessage) String

func (m *VersionMessage) String() string

func (*VersionMessage) Unmarshal

func (m *VersionMessage) Unmarshal(dAtA []byte) error

func (*VersionMessage) XXX_DiscardUnknown

func (m *VersionMessage) XXX_DiscardUnknown()

func (*VersionMessage) XXX_Marshal

func (m *VersionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionMessage) XXX_Merge

func (m *VersionMessage) XXX_Merge(src proto.Message)

func (*VersionMessage) XXX_Size

func (m *VersionMessage) XXX_Size() int

func (*VersionMessage) XXX_Unmarshal

func (m *VersionMessage) XXX_Unmarshal(b []byte) error

type VersionServiceClient

type VersionServiceClient interface {
	// Version returns version information of the API server
	Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionMessage, error)
}

VersionServiceClient is the client API for VersionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewVersionServiceClient

func NewVersionServiceClient(cc *grpc.ClientConn) VersionServiceClient

type VersionServiceServer

type VersionServiceServer interface {
	// Version returns version information of the API server
	Version(context.Context, *emptypb.Empty) (*VersionMessage, error)
}

VersionServiceServer is the server API for VersionService service.

Jump to

Keyboard shortcuts

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