Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextLoader ¶
type ContextLoader struct {
Loader *Loader
}
ContextLoader struct to load contexts from kubeconfigs
func NewContextLoader ¶
func NewContextLoader(loader *Loader) *ContextLoader
NewContextLoader returns a new ContextLoader
func (*ContextLoader) LoadContexts ¶
func (c *ContextLoader) LoadContexts() ([]Context, error)
LoadContexts method to load all contexts from all kubeconfigs
type FileSystemProvider ¶
FileSystemProvider struct to load kubeconfigs from filesystem
func NewFileSystemProvider ¶
func NewFileSystemProvider(IncludePatterns, ExcludePatterns []string) *FileSystemProvider
NewFileSystemProvider returns a new FileSystemProvider
func (*FileSystemProvider) Load ¶
func (f *FileSystemProvider) Load() ([]WithPath, error)
type Loader ¶
type Loader struct {
Providers []Provider
}
Loader struct to handle multiple providers
Click to show internal directories.
Click to hide internal directories.