internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(dir string) error

Types

type DownloadGenerator

type DownloadGenerator struct {
	Url string `yaml:"url"`
}

func (DownloadGenerator) Generate

func (g DownloadGenerator) Generate() (*GeneratorResult, error)

type Generator

type Generator interface {
	Generate() (*GeneratorResult, error)
}

func LoadGenerator

func LoadGenerator(file string) (*Generator, error)

type GeneratorResource

type GeneratorResource struct {
	ApiVersion string
	Kind       string
	File       string
	Content    string
}

type GeneratorResult

type GeneratorResult struct {
	Resources []GeneratorResource
}

type HelmGenerator

type HelmGenerator struct {
	Registry    string                 `yaml:"registry"`
	Chart       string                 `yaml:"chart"`
	Version     string                 `yaml:"version"`
	Name        string                 `yaml:"name"`
	Namespace   string                 `yaml:"namespace"`
	ApiVersions []string               `yaml:"apiVersions"`
	Args        []string               `yaml:"args"`
	Values      map[string]interface{} `yaml:"values"`
}

func (HelmGenerator) Generate

func (g HelmGenerator) Generate() (*GeneratorResult, error)

type KubernetesResource

type KubernetesResource struct {
	ApiVersion string                     `yaml:"apiVersion"`
	Kind       string                     `yaml:"kind"`
	Metadata   KubernetesResourceMetadata `yaml:"metadata"`
}

func (KubernetesResource) NonEmpty

func (r KubernetesResource) NonEmpty() bool

type KubernetesResourceMetadata

type KubernetesResourceMetadata struct {
	Name string `yaml:"name"`
}

type Kustomization

type Kustomization struct {
	Resources []string `yaml:"resources"`
}

type KustomizeGenerator

type KustomizeGenerator struct {
	Url  string   `yaml:"url"`
	Args []string `yaml:"args"`
}

func (KustomizeGenerator) Generate

func (g KustomizeGenerator) Generate() (*GeneratorResult, error)

Jump to

Keyboard shortcuts

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