Documentation ¶
Index ¶
- Variables
- func RegisterKubernetesApiServer(s grpc.ServiceRegistrar, srv KubernetesApiServer)
- type ExtraKeyVal
- type HeaderExtra
- type ImpersonationConfig
- func (*ImpersonationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ImpersonationConfig) GetExtra() []*ExtraKeyVal
- func (x *ImpersonationConfig) GetExtraAsMap() map[string][]string
- func (x *ImpersonationConfig) GetGroups() []string
- func (x *ImpersonationConfig) GetUid() string
- func (x *ImpersonationConfig) GetUsername() string
- func (x *ImpersonationConfig) IsEmpty() bool
- func (*ImpersonationConfig) ProtoMessage()
- func (x *ImpersonationConfig) ProtoReflect() protoreflect.Message
- func (x *ImpersonationConfig) Reset()
- func (x *ImpersonationConfig) String() string
- type KubernetesApiClient
- type KubernetesApiServer
- type KubernetesApi_MakeRequestClient
- type KubernetesApi_MakeRequestServer
- type UnimplementedKubernetesApiServer
- type UnsafeKubernetesApiServer
Constants ¶
This section is empty.
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 ExtraKeyVal ¶ added in v14.3.0
type ExtraKeyVal struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Val []string `protobuf:"bytes,2,rep,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*ExtraKeyVal) Descriptor
deprecated
added in
v14.3.0
func (*ExtraKeyVal) Descriptor() ([]byte, []int)
Deprecated: Use ExtraKeyVal.ProtoReflect.Descriptor instead.
func (*ExtraKeyVal) GetKey ¶ added in v14.3.0
func (x *ExtraKeyVal) GetKey() string
func (*ExtraKeyVal) GetVal ¶ added in v14.3.0
func (x *ExtraKeyVal) GetVal() []string
func (*ExtraKeyVal) ProtoMessage ¶ added in v14.3.0
func (*ExtraKeyVal) ProtoMessage()
func (*ExtraKeyVal) ProtoReflect ¶ added in v14.3.0
func (x *ExtraKeyVal) ProtoReflect() protoreflect.Message
func (*ExtraKeyVal) Reset ¶ added in v14.3.0
func (x *ExtraKeyVal) Reset()
func (*ExtraKeyVal) String ¶ added in v14.3.0
func (x *ExtraKeyVal) String() string
type HeaderExtra ¶ added in v14.3.0
type HeaderExtra struct { ImpConfig *ImpersonationConfig `protobuf:"bytes,1,opt,name=imp_config,json=impConfig,proto3" json:"imp_config,omitempty"` // contains filtered or unexported fields }
func (*HeaderExtra) Descriptor
deprecated
added in
v14.3.0
func (*HeaderExtra) Descriptor() ([]byte, []int)
Deprecated: Use HeaderExtra.ProtoReflect.Descriptor instead.
func (*HeaderExtra) GetImpConfig ¶ added in v14.3.0
func (x *HeaderExtra) GetImpConfig() *ImpersonationConfig
func (*HeaderExtra) ProtoMessage ¶ added in v14.3.0
func (*HeaderExtra) ProtoMessage()
func (*HeaderExtra) ProtoReflect ¶ added in v14.3.0
func (x *HeaderExtra) ProtoReflect() protoreflect.Message
func (*HeaderExtra) Reset ¶ added in v14.3.0
func (x *HeaderExtra) Reset()
func (*HeaderExtra) String ¶ added in v14.3.0
func (x *HeaderExtra) String() string
type ImpersonationConfig ¶ added in v14.3.0
type ImpersonationConfig struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` Extra []*ExtraKeyVal `protobuf:"bytes,4,rep,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*ImpersonationConfig) Descriptor
deprecated
added in
v14.3.0
func (*ImpersonationConfig) Descriptor() ([]byte, []int)
Deprecated: Use ImpersonationConfig.ProtoReflect.Descriptor instead.
func (*ImpersonationConfig) GetExtra ¶ added in v14.3.0
func (x *ImpersonationConfig) GetExtra() []*ExtraKeyVal
func (*ImpersonationConfig) GetExtraAsMap ¶ added in v14.3.0
func (x *ImpersonationConfig) GetExtraAsMap() map[string][]string
func (*ImpersonationConfig) GetGroups ¶ added in v14.3.0
func (x *ImpersonationConfig) GetGroups() []string
func (*ImpersonationConfig) GetUid ¶ added in v14.3.0
func (x *ImpersonationConfig) GetUid() string
func (*ImpersonationConfig) GetUsername ¶ added in v14.3.0
func (x *ImpersonationConfig) GetUsername() string
func (*ImpersonationConfig) IsEmpty ¶ added in v14.3.0
func (x *ImpersonationConfig) IsEmpty() bool
func (*ImpersonationConfig) ProtoMessage ¶ added in v14.3.0
func (*ImpersonationConfig) ProtoMessage()
func (*ImpersonationConfig) ProtoReflect ¶ added in v14.3.0
func (x *ImpersonationConfig) ProtoReflect() protoreflect.Message
func (*ImpersonationConfig) Reset ¶ added in v14.3.0
func (x *ImpersonationConfig) Reset()
func (*ImpersonationConfig) String ¶ added in v14.3.0
func (x *ImpersonationConfig) String() string
type KubernetesApiClient ¶
type KubernetesApiClient interface {
MakeRequest(ctx context.Context, opts ...grpc.CallOption) (KubernetesApi_MakeRequestClient, 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(KubernetesApi_MakeRequestServer) 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 interface { Send(*grpctool.HttpRequest) error Recv() (*grpctool.HttpResponse, error) grpc.ClientStream }
type KubernetesApi_MakeRequestServer ¶
type KubernetesApi_MakeRequestServer interface { Send(*grpctool.HttpResponse) error Recv() (*grpctool.HttpRequest, error) grpc.ServerStream }
type UnimplementedKubernetesApiServer ¶
type UnimplementedKubernetesApiServer struct { }
UnimplementedKubernetesApiServer must be embedded to have forward compatible implementations.
func (UnimplementedKubernetesApiServer) MakeRequest ¶
func (UnimplementedKubernetesApiServer) MakeRequest(KubernetesApi_MakeRequestServer) 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.