configfiles

package
v1.31.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 54

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader interface {
	// Load loads and returns the KubeletConfiguration from the storage layer, or an error if a configuration could not be loaded
	Load() (*kubeletconfig.KubeletConfiguration, error)
	// LoadIntoJSON loads and returns the KubeletConfiguration from the storage layer, or an error if a configuration could not be
	// loaded. It returns the configuration as a JSON byte slice
	LoadIntoJSON() ([]byte, error)
}

Loader loads configuration from a storage layer

func NewFsLoader

func NewFsLoader(fs utilfs.Filesystem, kubeletFile string) (Loader, error)

NewFsLoader returns a Loader that loads a KubeletConfiguration from the `kubeletFile`

Jump to

Keyboard shortcuts

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