version

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 15 Imported by: 41

Documentation

Overview

Package version is a generated protocol buffer package.

Version Service

Version Service API returns the version of the API server.

It is generated from these files:

server/version/version.proto

It has these top-level messages:

VersionMessage

Package version is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

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 Server

type Server struct{}

func (*Server) AuthFuncOverride added in v0.3.0

func (s *Server) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)

AuthFuncOverride allows the version to be returned without auth

func (*Server) Version

func (s *Server) Version(context.Context, *empty.Empty) (*VersionMessage, error)

Version returns the version of the API server

type VersionMessage

type VersionMessage struct {
	Version      string `protobuf:"bytes,1,opt,name=Version" json:"Version,omitempty"`
	BuildDate    string `protobuf:"bytes,2,opt,name=BuildDate" json:"BuildDate,omitempty"`
	GitCommit    string `protobuf:"bytes,3,opt,name=GitCommit" json:"GitCommit,omitempty"`
	GitTag       string `protobuf:"bytes,4,opt,name=GitTag" json:"GitTag,omitempty"`
	GitTreeState string `protobuf:"bytes,5,opt,name=GitTreeState" json:"GitTreeState,omitempty"`
	GoVersion    string `protobuf:"bytes,6,opt,name=GoVersion" json:"GoVersion,omitempty"`
	Compiler     string `protobuf:"bytes,7,opt,name=Compiler" json:"Compiler,omitempty"`
	Platform     string `protobuf:"bytes,8,opt,name=Platform" json:"Platform,omitempty"`
}

VersionMessage represents version of the ArgoCD 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) GetPlatform

func (m *VersionMessage) GetPlatform() string

func (*VersionMessage) GetVersion

func (m *VersionMessage) GetVersion() string

func (*VersionMessage) ProtoMessage

func (*VersionMessage) ProtoMessage()

func (*VersionMessage) Reset

func (m *VersionMessage) Reset()

func (*VersionMessage) String

func (m *VersionMessage) String() string

type VersionServiceClient

type VersionServiceClient interface {
	// Version returns version information of the API server
	Version(ctx context.Context, in *google_protobuf1.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, *google_protobuf1.Empty) (*VersionMessage, error)
}

Jump to

Keyboard shortcuts

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