info

package
v3.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 18 Imported by: 10

Documentation

Overview

Package info is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthInfo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInfo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupInfo = fmt.Errorf("proto: unexpected end of group")
)

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. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInfoServiceHandlerFromEndpoint instead.

func RegisterInfoServiceServer

func RegisterInfoServiceServer(s *grpc.Server, srv InfoServiceServer)

Types

type CollectEventRequest added in v3.4.0

type CollectEventRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CollectEventRequest) Descriptor added in v3.4.0

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

func (*CollectEventRequest) GetName added in v3.4.0

func (m *CollectEventRequest) GetName() string

func (*CollectEventRequest) Marshal added in v3.4.0

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

func (*CollectEventRequest) MarshalTo added in v3.4.0

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

func (*CollectEventRequest) MarshalToSizedBuffer added in v3.4.0

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

func (*CollectEventRequest) ProtoMessage added in v3.4.0

func (*CollectEventRequest) ProtoMessage()

func (*CollectEventRequest) Reset added in v3.4.0

func (m *CollectEventRequest) Reset()

func (*CollectEventRequest) Size added in v3.4.0

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

func (*CollectEventRequest) String added in v3.4.0

func (m *CollectEventRequest) String() string

func (*CollectEventRequest) Unmarshal added in v3.4.0

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

func (*CollectEventRequest) XXX_DiscardUnknown added in v3.4.0

func (m *CollectEventRequest) XXX_DiscardUnknown()

func (*CollectEventRequest) XXX_Marshal added in v3.4.0

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

func (*CollectEventRequest) XXX_Merge added in v3.4.0

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

func (*CollectEventRequest) XXX_Size added in v3.4.0

func (m *CollectEventRequest) XXX_Size() int

func (*CollectEventRequest) XXX_Unmarshal added in v3.4.0

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

type CollectEventResponse added in v3.4.0

type CollectEventResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CollectEventResponse) Descriptor added in v3.4.0

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

func (*CollectEventResponse) Marshal added in v3.4.0

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

func (*CollectEventResponse) MarshalTo added in v3.4.0

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

func (*CollectEventResponse) MarshalToSizedBuffer added in v3.4.0

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

func (*CollectEventResponse) ProtoMessage added in v3.4.0

func (*CollectEventResponse) ProtoMessage()

func (*CollectEventResponse) Reset added in v3.4.0

func (m *CollectEventResponse) Reset()

func (*CollectEventResponse) Size added in v3.4.0

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

func (*CollectEventResponse) String added in v3.4.0

func (m *CollectEventResponse) String() string

func (*CollectEventResponse) Unmarshal added in v3.4.0

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

func (*CollectEventResponse) XXX_DiscardUnknown added in v3.4.0

func (m *CollectEventResponse) XXX_DiscardUnknown()

func (*CollectEventResponse) XXX_Marshal added in v3.4.0

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

func (*CollectEventResponse) XXX_Merge added in v3.4.0

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

func (*CollectEventResponse) XXX_Size added in v3.4.0

func (m *CollectEventResponse) XXX_Size() int

func (*CollectEventResponse) XXX_Unmarshal added in v3.4.0

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

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

func (m *GetInfoRequest) MarshalTo(dAtA []byte) (int, 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"`
	Groups                  []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
	Email                   string   `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	EmailVerified           bool     `protobuf:"varint,5,opt,name=emailVerified,proto3" json:"emailVerified,omitempty"`
	ServiceAccountName      string   `protobuf:"bytes,6,opt,name=serviceAccountName,proto3" json:"serviceAccountName,omitempty"`
	ServiceAccountNamespace string   `protobuf:"bytes,7,opt,name=serviceAccountNamespace,proto3" json:"serviceAccountNamespace,omitempty"`
	Name                    string   `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

func (*GetUserInfoResponse) Descriptor

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

func (*GetUserInfoResponse) GetEmail

func (m *GetUserInfoResponse) GetEmail() string

func (*GetUserInfoResponse) GetEmailVerified

func (m *GetUserInfoResponse) GetEmailVerified() bool

func (*GetUserInfoResponse) GetGroups

func (m *GetUserInfoResponse) GetGroups() []string

func (*GetUserInfoResponse) GetIssuer

func (m *GetUserInfoResponse) GetIssuer() string

func (*GetUserInfoResponse) GetName added in v3.5.0

func (m *GetUserInfoResponse) GetName() string

func (*GetUserInfoResponse) GetServiceAccountName

func (m *GetUserInfoResponse) GetServiceAccountName() string

func (*GetUserInfoResponse) GetServiceAccountNamespace added in v3.4.0

func (m *GetUserInfoResponse) GetServiceAccountNamespace() 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"`
	// which modals to show
	Modals               map[string]bool    `` /* 154-byte string literal not displayed */
	NavColor             string             `protobuf:"bytes,4,opt,name=navColor,proto3" json:"navColor,omitempty"`
	Columns              []*v1alpha1.Column `protobuf:"bytes,5,rep,name=columns,proto3" json:"columns,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*InfoResponse) Descriptor

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

func (*InfoResponse) GetColumns added in v3.4.7

func (m *InfoResponse) GetColumns() []*v1alpha1.Column
func (m *InfoResponse) GetLinks() []*v1alpha1.Link

func (*InfoResponse) GetManagedNamespace

func (m *InfoResponse) GetManagedNamespace() string

func (*InfoResponse) GetModals added in v3.3.0

func (m *InfoResponse) GetModals() map[string]bool

func (*InfoResponse) GetNavColor added in v3.3.0

func (m *InfoResponse) GetNavColor() string

func (*InfoResponse) Marshal

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

func (*InfoResponse) MarshalTo

func (m *InfoResponse) MarshalTo(dAtA []byte) (int, 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)
	CollectEvent(ctx context.Context, in *CollectEventRequest, opts ...grpc.CallOption) (*CollectEventResponse, 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

InfoServiceServer is the server API for InfoService service.

type UnimplementedInfoServiceServer

type UnimplementedInfoServiceServer struct {
}

UnimplementedInfoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedInfoServiceServer) CollectEvent added in v3.4.0

func (*UnimplementedInfoServiceServer) GetInfo

func (*UnimplementedInfoServiceServer) GetUserInfo

func (*UnimplementedInfoServiceServer) GetVersion

Jump to

Keyboard shortcuts

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