parser

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProvider added in v0.0.3

func CreateProvider(ctx context.Context, providerName string) (types.Provider, error)

Types

type Config added in v0.0.3

type Config struct {
	PackageName  string
	Path         string
	ResourceData store.Storer[[]byte]
}

type KformParser

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

func NewKformParser

func NewKformParser(ctx context.Context, cfg *Config) (*KformParser, error)

NewKformParser creates a new kform parser ctx: contains the recorder path: indicates the rootPath of the kform package

func (*KformParser) GetEmptyProviderInstances added in v0.0.3

func (r *KformParser) GetEmptyProviderInstances(ctx context.Context) (store.Storer[plugin.Provider], error)

func (*KformParser) GetProviderConfigs added in v0.0.3

func (r *KformParser) GetProviderConfigs(ctx context.Context) (store.Storer[types.Block], sets.Set[string], error)

listProviderConfigs list the provider configs of the root package references from all resources in all packages

func (*KformParser) GetRootPackage

func (r *KformParser) GetRootPackage(ctx context.Context) (*types.Package, error)

func (*KformParser) InitProviders added in v0.0.3

func (r *KformParser) InitProviders(ctx context.Context) (store.Storer[types.Provider], error)

initialize the raw providers for which multiple instances could be instantiated e.g. for aliasing

func (*KformParser) ListPackages

func (r *KformParser) ListPackages(ctx context.Context) map[string]*types.Package

func (*KformParser) Parse

func (r *KformParser) Parse(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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