version

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

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")
)

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

RegisterVersionServiceHandler 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 RegisterVersionServiceServer

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

Types

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"`
	KsonnetVersion       string   `protobuf:"bytes,9,opt,name=KsonnetVersion,proto3" json:"KsonnetVersion,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) GetKsonnetVersion

func (m *VersionMessage) GetKsonnetVersion() 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) 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 (dst *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 *empty.Empty, opts ...grpc.CallOption) (*VersionMessage, error)
}

func NewVersionServiceClient

func NewVersionServiceClient(cc *grpc.ClientConn) VersionServiceClient

type VersionServiceServer

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

Jump to

Keyboard shortcuts

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