Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateSigner ¶
type CertificateSigner interface { // ProcessKubeCSR processes CSR request against Kubernetes CA, returns // signed certificate if successful. ProcessKubeCSR(req auth.KubeCSR) (*auth.KubeCSRResponse, error) }
CertificateSigner is an interface for signing Kubernetes certificates.
type Config ¶
type Config struct { // Signer is a auth server client to sign Kubernetes Certificates. Signer CertificateSigner // AccessPoint is caching access point to retrieve search and preview roles // from the backend. AccessPoint services.RoleGetter // Authz authenticates user. Authz authz.Authorizer // Log is the logger function. Log logrus.FieldLogger // Emitter is used to emit audit events. Emitter apievents.Emitter // Component name to include in log output. Component string // KubeProxyAddr is the address that can be used to reach the Kubernetes Proxy. KubeProxyAddr string // ClusterName is the name of the cluster that this server is running in. ClusterName string }
Config specifies configuration for Kube gRPC server.
func (*Config) CheckAndSetDefaults ¶
CheckAndSetDefaults checks and sets default values.
type Server ¶
type Server struct { proto.UnimplementedKubeServiceServer // contains filtered or unexported fields }
Server implements KubeService gRPC server.
func (*Server) ListKubernetesResources ¶
func (s *Server) ListKubernetesResources(ctx context.Context, req *proto.ListKubernetesResourcesRequest) (*proto.ListKubernetesResourcesResponse, error)
ListKubernetesResources returns the list of resources available for the user for the specified Resource kind, Kubernetes cluster and namespace.
Click to show internal directories.
Click to hide internal directories.