Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKubernetesApiServer(s grpc.ServiceRegistrar, srv KubernetesApiServer)
- type ExtraKeyVal
- func (*ExtraKeyVal) Descriptor() ([]byte, []int)deprecated
- func (x *ExtraKeyVal) GetKey() string
- func (x *ExtraKeyVal) GetVal() []string
- func (*ExtraKeyVal) ProtoMessage()
- func (x *ExtraKeyVal) ProtoReflect() protoreflect.Message
- func (x *ExtraKeyVal) Reset()
- func (x *ExtraKeyVal) String() string
- func (m *ExtraKeyVal) Validate() error
- func (m *ExtraKeyVal) ValidateAll() error
- type ExtraKeyValMultiError
- type ExtraKeyValValidationError
- func (e ExtraKeyValValidationError) Cause() error
- func (e ExtraKeyValValidationError) Error() string
- func (e ExtraKeyValValidationError) ErrorName() string
- func (e ExtraKeyValValidationError) Field() string
- func (e ExtraKeyValValidationError) Key() bool
- func (e ExtraKeyValValidationError) Reason() string
- type HeaderExtra
- func (*HeaderExtra) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderExtra) GetImpConfig() *ImpersonationConfig
- func (*HeaderExtra) ProtoMessage()
- func (x *HeaderExtra) ProtoReflect() protoreflect.Message
- func (x *HeaderExtra) Reset()
- func (x *HeaderExtra) String() string
- func (m *HeaderExtra) Validate() error
- func (m *HeaderExtra) ValidateAll() error
- type HeaderExtraMultiError
- type HeaderExtraValidationError
- func (e HeaderExtraValidationError) Cause() error
- func (e HeaderExtraValidationError) Error() string
- func (e HeaderExtraValidationError) ErrorName() string
- func (e HeaderExtraValidationError) Field() string
- func (e HeaderExtraValidationError) Key() bool
- func (e HeaderExtraValidationError) Reason() string
- 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
- func (m *ImpersonationConfig) Validate() error
- func (m *ImpersonationConfig) ValidateAll() error
- type ImpersonationConfigMultiError
- type ImpersonationConfigValidationError
- func (e ImpersonationConfigValidationError) Cause() error
- func (e ImpersonationConfigValidationError) Error() string
- func (e ImpersonationConfigValidationError) ErrorName() string
- func (e ImpersonationConfigValidationError) Field() string
- func (e ImpersonationConfigValidationError) Key() bool
- func (e ImpersonationConfigValidationError) Reason() string
- 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 ExtraKeyVal ¶
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
func (*ExtraKeyVal) Descriptor() ([]byte, []int)
Deprecated: Use ExtraKeyVal.ProtoReflect.Descriptor instead.
func (*ExtraKeyVal) GetKey ¶
func (x *ExtraKeyVal) GetKey() string
func (*ExtraKeyVal) GetVal ¶
func (x *ExtraKeyVal) GetVal() []string
func (*ExtraKeyVal) ProtoMessage ¶
func (*ExtraKeyVal) ProtoMessage()
func (*ExtraKeyVal) ProtoReflect ¶
func (x *ExtraKeyVal) ProtoReflect() protoreflect.Message
func (*ExtraKeyVal) Reset ¶
func (x *ExtraKeyVal) Reset()
func (*ExtraKeyVal) String ¶
func (x *ExtraKeyVal) String() string
func (*ExtraKeyVal) Validate ¶ added in v17.1.0
func (m *ExtraKeyVal) Validate() error
Validate checks the field values on ExtraKeyVal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExtraKeyVal) ValidateAll ¶ added in v17.1.0
func (m *ExtraKeyVal) ValidateAll() error
ValidateAll checks the field values on ExtraKeyVal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExtraKeyValMultiError, or nil if none found.
type ExtraKeyValMultiError ¶ added in v17.1.0
type ExtraKeyValMultiError []error
ExtraKeyValMultiError is an error wrapping multiple validation errors returned by ExtraKeyVal.ValidateAll() if the designated constraints aren't met.
func (ExtraKeyValMultiError) AllErrors ¶ added in v17.1.0
func (m ExtraKeyValMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExtraKeyValMultiError) Error ¶ added in v17.1.0
func (m ExtraKeyValMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExtraKeyValValidationError ¶ added in v17.1.0
type ExtraKeyValValidationError struct {
// contains filtered or unexported fields
}
ExtraKeyValValidationError is the validation error returned by ExtraKeyVal.Validate if the designated constraints aren't met.
func (ExtraKeyValValidationError) Cause ¶ added in v17.1.0
func (e ExtraKeyValValidationError) Cause() error
Cause function returns cause value.
func (ExtraKeyValValidationError) Error ¶ added in v17.1.0
func (e ExtraKeyValValidationError) Error() string
Error satisfies the builtin error interface
func (ExtraKeyValValidationError) ErrorName ¶ added in v17.1.0
func (e ExtraKeyValValidationError) ErrorName() string
ErrorName returns error name.
func (ExtraKeyValValidationError) Field ¶ added in v17.1.0
func (e ExtraKeyValValidationError) Field() string
Field function returns field value.
func (ExtraKeyValValidationError) Key ¶ added in v17.1.0
func (e ExtraKeyValValidationError) Key() bool
Key function returns key value.
func (ExtraKeyValValidationError) Reason ¶ added in v17.1.0
func (e ExtraKeyValValidationError) Reason() string
Reason function returns reason value.
type HeaderExtra ¶
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
func (*HeaderExtra) Descriptor() ([]byte, []int)
Deprecated: Use HeaderExtra.ProtoReflect.Descriptor instead.
func (*HeaderExtra) GetImpConfig ¶
func (x *HeaderExtra) GetImpConfig() *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
func (*HeaderExtra) Validate ¶ added in v17.1.0
func (m *HeaderExtra) Validate() error
Validate checks the field values on HeaderExtra with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*HeaderExtra) ValidateAll ¶ added in v17.1.0
func (m *HeaderExtra) ValidateAll() error
ValidateAll checks the field values on HeaderExtra with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeaderExtraMultiError, or nil if none found.
type HeaderExtraMultiError ¶ added in v17.1.0
type HeaderExtraMultiError []error
HeaderExtraMultiError is an error wrapping multiple validation errors returned by HeaderExtra.ValidateAll() if the designated constraints aren't met.
func (HeaderExtraMultiError) AllErrors ¶ added in v17.1.0
func (m HeaderExtraMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HeaderExtraMultiError) Error ¶ added in v17.1.0
func (m HeaderExtraMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HeaderExtraValidationError ¶ added in v17.1.0
type HeaderExtraValidationError struct {
// contains filtered or unexported fields
}
HeaderExtraValidationError is the validation error returned by HeaderExtra.Validate if the designated constraints aren't met.
func (HeaderExtraValidationError) Cause ¶ added in v17.1.0
func (e HeaderExtraValidationError) Cause() error
Cause function returns cause value.
func (HeaderExtraValidationError) Error ¶ added in v17.1.0
func (e HeaderExtraValidationError) Error() string
Error satisfies the builtin error interface
func (HeaderExtraValidationError) ErrorName ¶ added in v17.1.0
func (e HeaderExtraValidationError) ErrorName() string
ErrorName returns error name.
func (HeaderExtraValidationError) Field ¶ added in v17.1.0
func (e HeaderExtraValidationError) Field() string
Field function returns field value.
func (HeaderExtraValidationError) Key ¶ added in v17.1.0
func (e HeaderExtraValidationError) Key() bool
Key function returns key value.
func (HeaderExtraValidationError) Reason ¶ added in v17.1.0
func (e HeaderExtraValidationError) Reason() string
Reason function returns reason value.
type ImpersonationConfig ¶
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
func (*ImpersonationConfig) Descriptor() ([]byte, []int)
Deprecated: Use ImpersonationConfig.ProtoReflect.Descriptor instead.
func (*ImpersonationConfig) GetExtra ¶
func (x *ImpersonationConfig) GetExtra() []*ExtraKeyVal
func (*ImpersonationConfig) GetExtraAsMap ¶
func (x *ImpersonationConfig) GetExtraAsMap() map[string][]string
func (*ImpersonationConfig) GetGroups ¶
func (x *ImpersonationConfig) GetGroups() []string
func (*ImpersonationConfig) GetUid ¶
func (x *ImpersonationConfig) GetUid() string
func (*ImpersonationConfig) GetUsername ¶
func (x *ImpersonationConfig) GetUsername() string
func (*ImpersonationConfig) IsEmpty ¶
func (x *ImpersonationConfig) IsEmpty() bool
func (*ImpersonationConfig) ProtoMessage ¶
func (*ImpersonationConfig) ProtoMessage()
func (*ImpersonationConfig) ProtoReflect ¶
func (x *ImpersonationConfig) ProtoReflect() protoreflect.Message
func (*ImpersonationConfig) Reset ¶
func (x *ImpersonationConfig) Reset()
func (*ImpersonationConfig) String ¶
func (x *ImpersonationConfig) String() string
func (*ImpersonationConfig) Validate ¶ added in v17.1.0
func (m *ImpersonationConfig) Validate() error
Validate checks the field values on ImpersonationConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ImpersonationConfig) ValidateAll ¶ added in v17.1.0
func (m *ImpersonationConfig) ValidateAll() error
ValidateAll checks the field values on ImpersonationConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ImpersonationConfigMultiError, or nil if none found.
type ImpersonationConfigMultiError ¶ added in v17.1.0
type ImpersonationConfigMultiError []error
ImpersonationConfigMultiError is an error wrapping multiple validation errors returned by ImpersonationConfig.ValidateAll() if the designated constraints aren't met.
func (ImpersonationConfigMultiError) AllErrors ¶ added in v17.1.0
func (m ImpersonationConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ImpersonationConfigMultiError) Error ¶ added in v17.1.0
func (m ImpersonationConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ImpersonationConfigValidationError ¶ added in v17.1.0
type ImpersonationConfigValidationError struct {
// contains filtered or unexported fields
}
ImpersonationConfigValidationError is the validation error returned by ImpersonationConfig.Validate if the designated constraints aren't met.
func (ImpersonationConfigValidationError) Cause ¶ added in v17.1.0
func (e ImpersonationConfigValidationError) Cause() error
Cause function returns cause value.
func (ImpersonationConfigValidationError) Error ¶ added in v17.1.0
func (e ImpersonationConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ImpersonationConfigValidationError) ErrorName ¶ added in v17.1.0
func (e ImpersonationConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ImpersonationConfigValidationError) Field ¶ added in v17.1.0
func (e ImpersonationConfigValidationError) Field() string
Field function returns field value.
func (ImpersonationConfigValidationError) Key ¶ added in v17.1.0
func (e ImpersonationConfigValidationError) Key() bool
Key function returns key value.
func (ImpersonationConfigValidationError) Reason ¶ added in v17.1.0
func (e ImpersonationConfigValidationError) Reason() string
Reason function returns reason value.
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.