Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKubernetesApiServer(s grpc.ServiceRegistrar, srv KubernetesApiServer)
- type HeaderExtra
- type KubernetesApiClient
- type KubernetesApiServer
- type KubernetesApi_MakeRequestClient
- type KubernetesApi_MakeRequestServer
- type UnimplementedKubernetesApiServer
- type UnsafeKubernetesApiServer
Constants ¶
const (
KubernetesApi_MakeRequest_FullMethodName = "/gitlab.agent.kubernetes_api.rpc.KubernetesApi/MakeRequest"
)
Variables ¶
var File_internal_module_kubernetes_api_rpc_rpc_proto protoreflect.FileDescriptor
var KubernetesApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitlab.agent.kubernetes_api.rpc.KubernetesApi", HandlerType: (*KubernetesApiServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "MakeRequest", Handler: _KubernetesApi_MakeRequest_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "internal/module/kubernetes_api/rpc/rpc.proto", }
KubernetesApi_ServiceDesc is the grpc.ServiceDesc for KubernetesApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKubernetesApiServer ¶
func RegisterKubernetesApiServer(s grpc.ServiceRegistrar, srv KubernetesApiServer)
Types ¶
type HeaderExtra ¶
type HeaderExtra struct { ImpConfig *kubernetes_api.ImpersonationConfig `protobuf:"bytes,1,opt,name=imp_config,json=impConfig,proto3" json:"imp_config,omitempty"` // contains filtered or unexported fields }
func (*HeaderExtra) Descriptor
deprecated
func (*HeaderExtra) Descriptor() ([]byte, []int)
Deprecated: Use HeaderExtra.ProtoReflect.Descriptor instead.
func (*HeaderExtra) GetImpConfig ¶
func (x *HeaderExtra) GetImpConfig() *kubernetes_api.ImpersonationConfig
func (*HeaderExtra) ProtoMessage ¶
func (*HeaderExtra) ProtoMessage()
func (*HeaderExtra) ProtoReflect ¶
func (x *HeaderExtra) ProtoReflect() protoreflect.Message
func (*HeaderExtra) Reset ¶
func (x *HeaderExtra) Reset()
func (*HeaderExtra) String ¶
func (x *HeaderExtra) String() string
type KubernetesApiClient ¶
type KubernetesApiClient interface {
MakeRequest(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[grpctool.HttpRequest, grpctool.HttpResponse], error)
}
KubernetesApiClient is the client API for KubernetesApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKubernetesApiClient ¶
func NewKubernetesApiClient(cc grpc.ClientConnInterface) KubernetesApiClient
type KubernetesApiServer ¶
type KubernetesApiServer interface { MakeRequest(grpc.BidiStreamingServer[grpctool.HttpRequest, grpctool.HttpResponse]) error // contains filtered or unexported methods }
KubernetesApiServer is the server API for KubernetesApi service. All implementations must embed UnimplementedKubernetesApiServer for forward compatibility.
type KubernetesApi_MakeRequestClient ¶
type KubernetesApi_MakeRequestClient = grpc.BidiStreamingClient[grpctool.HttpRequest, grpctool.HttpResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type KubernetesApi_MakeRequestServer ¶
type KubernetesApi_MakeRequestServer = grpc.BidiStreamingServer[grpctool.HttpRequest, grpctool.HttpResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedKubernetesApiServer ¶
type UnimplementedKubernetesApiServer struct{}
UnimplementedKubernetesApiServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedKubernetesApiServer) MakeRequest ¶
func (UnimplementedKubernetesApiServer) MakeRequest(grpc.BidiStreamingServer[grpctool.HttpRequest, grpctool.HttpResponse]) error
type UnsafeKubernetesApiServer ¶
type UnsafeKubernetesApiServer interface {
// contains filtered or unexported methods
}
UnsafeKubernetesApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KubernetesApiServer will result in compilation errors.