containerd

package
v0.0.0-...-57c9ba2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package containerd is the core proxy logic for ctrdac.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyServer

type ProxyServer struct {
	// contains filtered or unexported fields
}

ProxyServer is the type of the main proxy server code

func NewProxyServer

func NewProxyServer(config common.ProxyServerConfig) ProxyServer

NewProxyServer creates a new ctrdac proxy server with the given configuration

func (ProxyServer) GetConfig

func (pl ProxyServer) GetConfig() common.ProxyServerConfig

GetConfig returns the full configuration of the ctrdac proxy server

func (ProxyServer) PopulateUserInfo

func (pl ProxyServer) PopulateUserInfo(ctx context.Context, authzReq *k8sac.AdmissionRequest) error

PopulateUserInfo calls the same method on the underlying listener to get the UserInfo structure of the AdmissionRequest filled

func (*ProxyServer) Serve

func (pl *ProxyServer) Serve() error

Serve starts serving or returns an error

Jump to

Keyboard shortcuts

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