metadata

package
v0.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterMDLoader

type ClusterMDLoader struct {
}

ClusterMDLoader Implements Loader interface

func (*ClusterMDLoader) GetClusters

func (clusterMDLoader *ClusterMDLoader) GetClusters(plan plantypes.Plan) map[string]collecttypes.ClusterMetadata

GetClusters loads list of clusters

func (*ClusterMDLoader) LoadToIR

func (clusterMDLoader *ClusterMDLoader) LoadToIR(plan plantypes.Plan, ir *irtypes.IR) error

LoadToIR loads target cluster in IR

func (*ClusterMDLoader) UpdatePlan

func (clusterMDLoader *ClusterMDLoader) UpdatePlan(inputPath string, plan *plantypes.Plan) error

UpdatePlan - output a plan based on the input directory contents

type K8sFilesLoader

type K8sFilesLoader struct {
}

K8sFilesLoader implements the Loader interface

func (*K8sFilesLoader) LoadToIR

func (*K8sFilesLoader) LoadToIR(plan plantypes.Plan, ir *irtypes.IR) error

LoadToIR loads k8s files as cached objects

func (*K8sFilesLoader) UpdatePlan

func (*K8sFilesLoader) UpdatePlan(inputPath string, plan *plantypes.Plan) error

UpdatePlan - output a plan based on the input directory contents

type Loader

type Loader interface {
	UpdatePlan(inputPath string, p *plantypes.Plan) error
	LoadToIR(p plantypes.Plan, ir *irtypes.IR) error
}

Loader handles loading of various metadata

func GetLoaders

func GetLoaders() []Loader

GetLoaders returns planner for given format

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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