importer

package
v0.0.0-...-099ed63 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const YAMLpattern = "*.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Importer

type Importer struct {
	GitURL string `json:"gitURL,omitEmpty"`
	Path   string `json:"path"`
	// contains filtered or unexported fields
}

type KustomizeImporter

type KustomizeImporter struct {
	*Importer
}

KustomizeImporter is used to import manifests from git repositories that host kustomize manifests Example usage:

kustomizeImporter := NewKustomizeImporter("https://github.com/kubernetes-sigs/kustomize", "examples/helloWorld") kustomizeImporter.Import()

func NewKustomizeImporter

func NewKustomizeImporter(gitURL, path string) *KustomizeImporter

func (KustomizeImporter) Import

func (k KustomizeImporter) Import() ([]string, error)

type YAMLImporter

type YAMLImporter struct {
	*Importer
}

YAMLImporter is used to import manifests from git repositories that host yaml manifests Example usage:

yamlImporter := importer.NewYAMLImporter("https://github.com/ArthurSens/observability", "manifests/production/meta/kubescape", false) yamlImporter.Import()

func NewYAMLImporter

func NewYAMLImporter(gitURL, path string) *YAMLImporter

func (YAMLImporter) Import

func (y YAMLImporter) Import() ([]string, error)

Jump to

Keyboard shortcuts

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