Documentation ¶
Overview ¶
Package info is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterInfoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInfoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfoServiceClient) error
- func RegisterInfoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfoServiceServer) error
- func RegisterInfoServiceServer(s *grpc.Server, srv InfoServiceServer)
- type GetInfoRequest
- func (*GetInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *GetInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetInfoRequest) ProtoMessage()
- func (m *GetInfoRequest) Reset()
- func (m *GetInfoRequest) Size() (n int)
- func (m *GetInfoRequest) String() string
- func (m *GetInfoRequest) Unmarshal(dAtA []byte) error
- func (m *GetInfoRequest) XXX_DiscardUnknown()
- func (m *GetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetInfoRequest) XXX_Size() int
- func (m *GetInfoRequest) XXX_Unmarshal(b []byte) error
- type GetUserInfoRequest
- func (*GetUserInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetUserInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *GetUserInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetUserInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetUserInfoRequest) ProtoMessage()
- func (m *GetUserInfoRequest) Reset()
- func (m *GetUserInfoRequest) Size() (n int)
- func (m *GetUserInfoRequest) String() string
- func (m *GetUserInfoRequest) Unmarshal(dAtA []byte) error
- func (m *GetUserInfoRequest) XXX_DiscardUnknown()
- func (m *GetUserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetUserInfoRequest) XXX_Size() int
- func (m *GetUserInfoRequest) XXX_Unmarshal(b []byte) error
- type GetUserInfoResponse
- func (*GetUserInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetUserInfoResponse) GetIssuer() string
- func (m *GetUserInfoResponse) GetSubject() string
- func (m *GetUserInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *GetUserInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetUserInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetUserInfoResponse) ProtoMessage()
- func (m *GetUserInfoResponse) Reset()
- func (m *GetUserInfoResponse) Size() (n int)
- func (m *GetUserInfoResponse) String() string
- func (m *GetUserInfoResponse) Unmarshal(dAtA []byte) error
- func (m *GetUserInfoResponse) XXX_DiscardUnknown()
- func (m *GetUserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetUserInfoResponse) XXX_Size() int
- func (m *GetUserInfoResponse) XXX_Unmarshal(b []byte) error
- type GetVersionRequest
- func (*GetVersionRequest) Descriptor() ([]byte, []int)
- func (m *GetVersionRequest) Marshal() (dAtA []byte, err error)
- func (m *GetVersionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetVersionRequest) ProtoMessage()
- func (m *GetVersionRequest) Reset()
- func (m *GetVersionRequest) Size() (n int)
- func (m *GetVersionRequest) String() string
- func (m *GetVersionRequest) Unmarshal(dAtA []byte) error
- func (m *GetVersionRequest) XXX_DiscardUnknown()
- func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetVersionRequest) XXX_Merge(src proto.Message)
- func (m *GetVersionRequest) XXX_Size() int
- func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error
- type InfoResponse
- func (*InfoResponse) Descriptor() ([]byte, []int)
- func (m *InfoResponse) GetLinks() []*v1alpha1.Link
- func (m *InfoResponse) GetManagedNamespace() string
- func (m *InfoResponse) Marshal() (dAtA []byte, err error)
- func (m *InfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InfoResponse) ProtoMessage()
- func (m *InfoResponse) Reset()
- func (m *InfoResponse) Size() (n int)
- func (m *InfoResponse) String() string
- func (m *InfoResponse) Unmarshal(dAtA []byte) error
- func (m *InfoResponse) XXX_DiscardUnknown()
- func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfoResponse) XXX_Merge(src proto.Message)
- func (m *InfoResponse) XXX_Size() int
- func (m *InfoResponse) XXX_Unmarshal(b []byte) error
- type InfoServiceClient
- type InfoServiceServer
- type UnimplementedInfoServiceServer
- func (*UnimplementedInfoServiceServer) GetInfo(ctx context.Context, req *GetInfoRequest) (*InfoResponse, error)
- func (*UnimplementedInfoServiceServer) GetUserInfo(ctx context.Context, req *GetUserInfoRequest) (*GetUserInfoResponse, error)
- func (*UnimplementedInfoServiceServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*v1alpha1.Version, error)
Constants ¶
This section is empty.
Variables ¶
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.
func RegisterInfoServiceServer ¶
func RegisterInfoServiceServer(s *grpc.Server, srv InfoServiceServer)
Types ¶
type GetInfoRequest ¶
type GetInfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetInfoRequest) Descriptor ¶
func (*GetInfoRequest) Descriptor() ([]byte, []int)
func (*GetInfoRequest) Marshal ¶
func (m *GetInfoRequest) Marshal() (dAtA []byte, err error)
func (*GetInfoRequest) MarshalToSizedBuffer ¶
func (m *GetInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetInfoRequest) ProtoMessage ¶
func (*GetInfoRequest) ProtoMessage()
func (*GetInfoRequest) Reset ¶
func (m *GetInfoRequest) Reset()
func (*GetInfoRequest) Size ¶
func (m *GetInfoRequest) Size() (n int)
func (*GetInfoRequest) String ¶
func (m *GetInfoRequest) String() string
func (*GetInfoRequest) Unmarshal ¶
func (m *GetInfoRequest) Unmarshal(dAtA []byte) error
func (*GetInfoRequest) XXX_DiscardUnknown ¶
func (m *GetInfoRequest) XXX_DiscardUnknown()
func (*GetInfoRequest) XXX_Marshal ¶
func (m *GetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetInfoRequest) XXX_Merge ¶
func (m *GetInfoRequest) XXX_Merge(src proto.Message)
func (*GetInfoRequest) XXX_Size ¶
func (m *GetInfoRequest) XXX_Size() int
func (*GetInfoRequest) XXX_Unmarshal ¶
func (m *GetInfoRequest) XXX_Unmarshal(b []byte) error
type GetUserInfoRequest ¶
type GetUserInfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserInfoRequest) Descriptor ¶
func (*GetUserInfoRequest) Descriptor() ([]byte, []int)
func (*GetUserInfoRequest) Marshal ¶
func (m *GetUserInfoRequest) Marshal() (dAtA []byte, err error)
func (*GetUserInfoRequest) MarshalTo ¶
func (m *GetUserInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetUserInfoRequest) MarshalToSizedBuffer ¶
func (m *GetUserInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetUserInfoRequest) ProtoMessage ¶
func (*GetUserInfoRequest) ProtoMessage()
func (*GetUserInfoRequest) Reset ¶
func (m *GetUserInfoRequest) Reset()
func (*GetUserInfoRequest) Size ¶
func (m *GetUserInfoRequest) Size() (n int)
func (*GetUserInfoRequest) String ¶
func (m *GetUserInfoRequest) String() string
func (*GetUserInfoRequest) Unmarshal ¶
func (m *GetUserInfoRequest) Unmarshal(dAtA []byte) error
func (*GetUserInfoRequest) XXX_DiscardUnknown ¶
func (m *GetUserInfoRequest) XXX_DiscardUnknown()
func (*GetUserInfoRequest) XXX_Marshal ¶
func (m *GetUserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserInfoRequest) XXX_Merge ¶
func (m *GetUserInfoRequest) XXX_Merge(src proto.Message)
func (*GetUserInfoRequest) XXX_Size ¶
func (m *GetUserInfoRequest) XXX_Size() int
func (*GetUserInfoRequest) XXX_Unmarshal ¶
func (m *GetUserInfoRequest) XXX_Unmarshal(b []byte) error
type GetUserInfoResponse ¶
type GetUserInfoResponse struct { Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserInfoResponse) Descriptor ¶
func (*GetUserInfoResponse) Descriptor() ([]byte, []int)
func (*GetUserInfoResponse) GetIssuer ¶
func (m *GetUserInfoResponse) GetIssuer() string
func (*GetUserInfoResponse) GetSubject ¶
func (m *GetUserInfoResponse) GetSubject() string
func (*GetUserInfoResponse) Marshal ¶
func (m *GetUserInfoResponse) Marshal() (dAtA []byte, err error)
func (*GetUserInfoResponse) MarshalTo ¶
func (m *GetUserInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetUserInfoResponse) MarshalToSizedBuffer ¶
func (m *GetUserInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetUserInfoResponse) ProtoMessage ¶
func (*GetUserInfoResponse) ProtoMessage()
func (*GetUserInfoResponse) Reset ¶
func (m *GetUserInfoResponse) Reset()
func (*GetUserInfoResponse) Size ¶
func (m *GetUserInfoResponse) Size() (n int)
func (*GetUserInfoResponse) String ¶
func (m *GetUserInfoResponse) String() string
func (*GetUserInfoResponse) Unmarshal ¶
func (m *GetUserInfoResponse) Unmarshal(dAtA []byte) error
func (*GetUserInfoResponse) XXX_DiscardUnknown ¶
func (m *GetUserInfoResponse) XXX_DiscardUnknown()
func (*GetUserInfoResponse) XXX_Marshal ¶
func (m *GetUserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserInfoResponse) XXX_Merge ¶
func (m *GetUserInfoResponse) XXX_Merge(src proto.Message)
func (*GetUserInfoResponse) XXX_Size ¶
func (m *GetUserInfoResponse) XXX_Size() int
func (*GetUserInfoResponse) XXX_Unmarshal ¶
func (m *GetUserInfoResponse) XXX_Unmarshal(b []byte) error
type GetVersionRequest ¶
type GetVersionRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetVersionRequest) Descriptor ¶
func (*GetVersionRequest) Descriptor() ([]byte, []int)
func (*GetVersionRequest) Marshal ¶
func (m *GetVersionRequest) Marshal() (dAtA []byte, err error)
func (*GetVersionRequest) MarshalTo ¶
func (m *GetVersionRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetVersionRequest) MarshalToSizedBuffer ¶
func (m *GetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetVersionRequest) ProtoMessage ¶
func (*GetVersionRequest) ProtoMessage()
func (*GetVersionRequest) Reset ¶
func (m *GetVersionRequest) Reset()
func (*GetVersionRequest) Size ¶
func (m *GetVersionRequest) Size() (n int)
func (*GetVersionRequest) String ¶
func (m *GetVersionRequest) String() string
func (*GetVersionRequest) Unmarshal ¶
func (m *GetVersionRequest) Unmarshal(dAtA []byte) error
func (*GetVersionRequest) XXX_DiscardUnknown ¶
func (m *GetVersionRequest) XXX_DiscardUnknown()
func (*GetVersionRequest) XXX_Marshal ¶
func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetVersionRequest) XXX_Merge ¶
func (m *GetVersionRequest) XXX_Merge(src proto.Message)
func (*GetVersionRequest) XXX_Size ¶
func (m *GetVersionRequest) XXX_Size() int
func (*GetVersionRequest) XXX_Unmarshal ¶
func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error
type InfoResponse ¶
type InfoResponse struct { ManagedNamespace string `protobuf:"bytes,1,opt,name=managedNamespace,proto3" json:"managedNamespace,omitempty"` Links []*v1alpha1.Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InfoResponse) Descriptor ¶
func (*InfoResponse) Descriptor() ([]byte, []int)
func (*InfoResponse) GetLinks ¶
func (m *InfoResponse) GetLinks() []*v1alpha1.Link
func (*InfoResponse) GetManagedNamespace ¶
func (m *InfoResponse) GetManagedNamespace() string
func (*InfoResponse) Marshal ¶
func (m *InfoResponse) Marshal() (dAtA []byte, err error)
func (*InfoResponse) MarshalToSizedBuffer ¶
func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) Reset ¶
func (m *InfoResponse) Reset()
func (*InfoResponse) Size ¶
func (m *InfoResponse) Size() (n int)
func (*InfoResponse) String ¶
func (m *InfoResponse) String() string
func (*InfoResponse) Unmarshal ¶
func (m *InfoResponse) Unmarshal(dAtA []byte) error
func (*InfoResponse) XXX_DiscardUnknown ¶
func (m *InfoResponse) XXX_DiscardUnknown()
func (*InfoResponse) XXX_Marshal ¶
func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfoResponse) XXX_Merge ¶
func (m *InfoResponse) XXX_Merge(src proto.Message)
func (*InfoResponse) XXX_Size ¶
func (m *InfoResponse) XXX_Size() int
func (*InfoResponse) XXX_Unmarshal ¶
func (m *InfoResponse) XXX_Unmarshal(b []byte) error
type InfoServiceClient ¶
type InfoServiceClient interface { GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*v1alpha1.Version, error) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) }
InfoServiceClient is the client API for InfoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInfoServiceClient ¶
func NewInfoServiceClient(cc *grpc.ClientConn) InfoServiceClient
type InfoServiceServer ¶
type InfoServiceServer interface { GetInfo(context.Context, *GetInfoRequest) (*InfoResponse, error) GetVersion(context.Context, *GetVersionRequest) (*v1alpha1.Version, error) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) }
InfoServiceServer is the server API for InfoService service.
type UnimplementedInfoServiceServer ¶
type UnimplementedInfoServiceServer struct { }
UnimplementedInfoServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedInfoServiceServer) GetInfo ¶
func (*UnimplementedInfoServiceServer) GetInfo(ctx context.Context, req *GetInfoRequest) (*InfoResponse, error)
func (*UnimplementedInfoServiceServer) GetUserInfo ¶
func (*UnimplementedInfoServiceServer) GetUserInfo(ctx context.Context, req *GetUserInfoRequest) (*GetUserInfoResponse, error)
func (*UnimplementedInfoServiceServer) GetVersion ¶
func (*UnimplementedInfoServiceServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*v1alpha1.Version, error)