config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDir string

Functions

func InitConfig

func InitConfig()

Types

type App

type App struct {
	Repository  Repository    `yaml:"repository"`
	Name        string        `yaml:"name"`
	Namespace   string        `yaml:"namespace"`
	URL         string        `yaml:"url"`
	SHA256      string        `yaml:"sha256"`
	Version     string        `yaml:"version"`
	PreInstall  []PreInstall  `yaml:"pre_install"`
	PostInstall []PostInstall `yaml:"post_install"`
}

type AppConfig

type AppConfig struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	App        App    `yaml:"app"`
}

func New

func New(path string) (*AppConfig, error)

type PostInstall

type PostInstall struct {
	Apps  []string
	Steps []string
}

type PreInstall

type PreInstall struct {
	Apps  []string
	Steps []string
}

type RepoType

type RepoType string
const (
	Raw  RepoType = "raw"
	Helm RepoType = "helm"

	RegistriesDirName = "registries"
)

type Repository

type Repository struct {
	Name string   `yaml:"name"`
	URL  string   `yaml:"url"`
	Type RepoType `yaml:"type"`
}

Jump to

Keyboard shortcuts

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