kubev1

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

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

func (c *Config) CheckAndSetDefaults() error

CheckAndSetDefaults checks and sets default values.

type Server

type Server struct {
	proto.UnimplementedKubeServiceServer
	// contains filtered or unexported fields
}

Server implements KubeService gRPC server.

func New

func New(cfg Config) (*Server, error)

New creates a new instance of Kube gRPC handler.

func (*Server) ListKubernetesResources

ListKubernetesResources returns the list of resources available for the user for the specified Resource kind, Kubernetes cluster and namespace.

Jump to

Keyboard shortcuts

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