Documentation ¶
Index ¶
Constants ¶
View Source
const YAMLpattern = "*.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.