Documentation ¶
Overview ¶
Package version is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterVersionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterVersionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VersionServiceClient) error
- func RegisterVersionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterVersionServiceServer(s *grpc.Server, srv VersionServiceServer)
- type VersionMessage
- func (*VersionMessage) Descriptor() ([]byte, []int)
- func (m *VersionMessage) GetBuildDate() string
- func (m *VersionMessage) GetCompiler() string
- func (m *VersionMessage) GetGitCommit() string
- func (m *VersionMessage) GetGitTag() string
- func (m *VersionMessage) GetGitTreeState() string
- func (m *VersionMessage) GetGoVersion() string
- func (m *VersionMessage) GetHelmVersion() string
- func (m *VersionMessage) GetKsonnetVersion() string
- func (m *VersionMessage) GetKubectlVersion() string
- func (m *VersionMessage) GetKustomizeVersion() string
- func (m *VersionMessage) GetPlatform() string
- func (m *VersionMessage) GetVersion() string
- func (m *VersionMessage) Marshal() (dAtA []byte, err error)
- func (m *VersionMessage) MarshalTo(dAtA []byte) (int, error)
- func (*VersionMessage) ProtoMessage()
- func (m *VersionMessage) Reset()
- func (m *VersionMessage) Size() (n int)
- func (m *VersionMessage) String() string
- func (m *VersionMessage) Unmarshal(dAtA []byte) error
- func (m *VersionMessage) XXX_DiscardUnknown()
- func (m *VersionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VersionMessage) XXX_Merge(src proto.Message)
- func (m *VersionMessage) XXX_Size() int
- func (m *VersionMessage) XXX_Unmarshal(b []byte) error
- type VersionServiceClient
- type VersionServiceServer
Constants ¶
This section is empty.
Variables ¶
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"` 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"` 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 ¶ added in v1.3.0
func (m *VersionMessage) GetHelmVersion() string
func (*VersionMessage) GetKsonnetVersion ¶
func (m *VersionMessage) GetKsonnetVersion() string
func (*VersionMessage) GetKubectlVersion ¶ added in v1.3.0
func (m *VersionMessage) GetKubectlVersion() string
func (*VersionMessage) GetKustomizeVersion ¶ added in v1.3.0
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) 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