resourceconfig

package
v0.0.0-...-6385711 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider interface {
	// IsSupported returns true if the ConfigProvider supports the given path
	IsSupported(path string) bool

	// GetConfig returns the Resource Config as runtime.Objects
	GetConfig(path string) ([]*unstructured.Unstructured, error)
}

ConfigProvider provides runtime.Objects for a path

type KustomizeProvider

type KustomizeProvider struct {
	RF *resmap.Factory
	TF transformer.Factory
	FS fs.FileSystem
	PC *types.PluginConfig
}

KustomizeProvider provides configs from Kusotmize targets

func (*KustomizeProvider) GetConfig

func (p *KustomizeProvider) GetConfig(path string) ([]*unstructured.Unstructured, error)

GetConfig returns the resource configs

func (*KustomizeProvider) IsSupported

func (p *KustomizeProvider) IsSupported(path string) bool

IsSupported checks if the path is supported by KustomizeProvider

type RawConfigFileProvider

type RawConfigFileProvider struct{}

RawConfigFileProvider provides configs from raw K8s resources

func (*RawConfigFileProvider) GetConfig

func (p *RawConfigFileProvider) GetConfig(root string) ([]*unstructured.Unstructured, error)

GetConfig returns the resource configs from a directory or a file containing raw Kubernetes resource configurations

func (*RawConfigFileProvider) IsSupported

func (p *RawConfigFileProvider) IsSupported(path string) bool

IsSupported checks if a path is a raw K8s configuration file

type RawConfigHTTPProvider

type RawConfigHTTPProvider struct{}

RawConfigHTTPProvider provides configs from HTTP urls TODO: implement RawConfigHTTPProvider

func (*RawConfigHTTPProvider) GetConfig

func (p *RawConfigHTTPProvider) GetConfig(path string) ([]*unstructured.Unstructured, error)

GetConfig returns the resource configs

func (*RawConfigHTTPProvider) IsSupported

func (p *RawConfigHTTPProvider) IsSupported(path string) bool

IsSupported returns if the path points to a HTTP url target

Jump to

Keyboard shortcuts

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