apiserver

package
v0.0.343 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scheme defines methods for serializing and deserializing API objects.
	Scheme = runtime.NewScheme()
	// Codecs provides methods for retrieving codecs and serializers for specific
	// versions and content types.
	Codecs              = serializer.NewCodecFactory(Scheme)
	WardleComponentName = "storage"
)

Functions

This section is empty.

Types

type CompletedConfig

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

CompletedConfig embeds a private pointer that cannot be instantiated outside of this package.

func (CompletedConfig) New

func (c CompletedConfig) New() (*WardleServer, error)

New returns a new instance of WardleServer from the given config.

type Config

type Config struct {
	GenericConfig *genericapiserver.RecommendedConfig
	ExtraConfig   ExtraConfig
}

Config defines the config for the apiserver

func (*Config) Complete

func (cfg *Config) Complete() CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type ExtraConfig

type ExtraConfig struct {
	CleanupHandler *file.ResourcesCleanupHandler
	OsFs           afero.Fs
	Pool           *sqlitemigration.Pool
	// SqlitePath is the database file behind Pool; the ContainerProfile
	// SQLite backend's checkpointer watches its -wal sibling.
	SqlitePath      string
	StorageConfig   config.Config
	WatchDispatcher *file.WatchDispatcher
	// WriteGate is the process's one write gate, built by main.go beside the
	// pool when StorageConfig.ContainerProfileSqliteBackend is on and shared
	// by the ObjectStore, the legacy StorageImpl and the cleanup handler; nil
	// with the flag off.
	WriteGate *file.WriteGate
}

ExtraConfig holds custom apiserver config

type WardleServer

type WardleServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
}

WardleServer contains state for a Kubernetes cluster master/api server.

Jump to

Keyboard shortcuts

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