config

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const K3sBinary = "/usr/local/bin/k3s"
View Source
const K3sChartPath = "/var/lib/rancher/k3s/server/static/charts"
View Source
const K3sImagePath = "/var/lib/rancher/k3s/agent/images"
View Source
const K3sManifestPath = "/var/lib/rancher/k3s/server/manifests"
View Source
const PackageInitName = "zarf-init.tar.zst"
View Source
const PackagePrefix = "zarf-package-"
View Source
const ZarfGitUser = "zarf-git-user"
View Source
const ZarfLocalIP = "127.0.0.1"

Variables

View Source
var CLIVersion = "unset"

Functions

func GetPackageName

func GetPackageName() string

func GetValidPackageExtensions

func GetValidPackageExtensions() [3]string

func IsZarfInitConfig

func IsZarfInitConfig() bool

func Load

func Load(path string)

func WriteConfig

func WriteConfig(path string)

Types

type ZarfBuildData

type ZarfBuildData struct {
	Terminal  string `yaml:"terminal"`
	User      string `yaml:"user"`
	Timestamp string `yaml:"timestamp"`
	Version   string `yaml:"string"`
}

type ZarfChart

type ZarfChart struct {
	Name    string `yaml:"name"`
	Url     string `yaml:"url"`
	Version string `yaml:"version"`
}

type ZarfComponent

type ZarfComponent struct {
	Name        string      `yaml:"name"`
	Description string      `yaml:"description"`
	Default     bool        `yaml:"default"`
	Required    bool        `yaml:"required"`
	Manifests   string      `yaml:"manifests"`
	Images      []string    `yaml:"images"`
	Repos       []string    `yaml:"repos"`
	Charts      []ZarfChart `yaml:"charts"`
	Files       []ZarfFile  `yaml:"files"`
}

func GetComponents

func GetComponents() []ZarfComponent

type ZarfConfig

type ZarfConfig struct {
	Kind       string          `yaml:"kind"`
	Metadata   ZarfMetatdata   `yaml:"metadata"`
	Package    ZarfBuildData   `yaml:"package"`
	Data       []ZarfData      `yaml:"data"`
	Components []ZarfComponent `yaml:"components"`
}

type ZarfContainerTarget

type ZarfContainerTarget struct {
	Namespace string `yaml:"namespace"`
	Selector  string `yaml:"selector"`
	Container string `yaml:"container"`
	Path      string `yaml:"path"`
}

type ZarfData

type ZarfData struct {
	Source string              `yaml:"source"`
	Target ZarfContainerTarget `yaml:"target"`
}

func GetDataInjections

func GetDataInjections() []ZarfData

type ZarfFile

type ZarfFile struct {
	Source     string `yaml:"source"`
	Shasum     string `yaml:"shasum"`
	Target     string `yaml:"target"`
	Executable bool   `yaml:"executable"`
}

type ZarfMetatdata

type ZarfMetatdata struct {
	Name         string `yaml:"name"`
	Description  string `yaml:"description"`
	Version      string `yaml:"version"`
	Uncompressed bool   `yaml:"uncompressed"`
}

func GetMetaData

func GetMetaData() ZarfMetatdata

Jump to

Keyboard shortcuts

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