distribution

package
v0.27.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL        = "git::%s/fury-distribution?ref=%s&depth=1"
	GithubSSHRepoPrefix   = "git@github.com:sighupio"
	GithubHTTPSRepoPrefix = "https://github.com/sighupio"
)
View Source
const (
	FeatureClusterUpgrade     = Feature("ClusterUpgrade")
	FeatureTracingModule      = Feature("TracingModule")
	FeatureKubeconfigInSchema = Feature("KubeconfigInSchema")
	FeaturePlugins            = Feature("Plugins")
	FeatureYqSupport          = Feature("YqSupport")
)
View Source
const ValidLength = 2

Variables

View Source
var (
	ErrChangingFilePermissions = errors.New("error changing file permissions")
	ErrCreatingTempDir         = errors.New("error creating temp dir")
	ErrDownloadingFolder       = errors.New("error downloading folder")
	ErrMergeCompleteConfig     = errors.New("error merging complete config")
	ErrMergeDistroConfig       = errors.New("error merging distribution config")
	ErrRenamingFile            = errors.New("error renaming file")
	ErrResolvingAbsPath        = errors.New("error resolving absolute path")
	ErrValidateConfig          = errors.New("error validating config")
	ErrWriteFile               = errors.New("error writing file")
	ErrYamlMarshalFile         = errors.New("error marshaling yaml file")
	ErrYamlUnmarshalFile       = errors.New("error unmarshaling yaml file")
	ErrUnsupportedVersion      = errors.New("unsupported KFD version")
)
View Source
var (
	ErrSourceDirDoesNotExist = errors.New("source directory does not exist")
	ErrInvalidKind           = errors.New("invalid kind")
)
View Source
var ErrPluginsFeatureNotSupported = errors.New("plugins feature not supported")

Functions

func GetConfigTemplatePath

func GetConfigTemplatePath(basePath string, conf config.Furyctl) (string, error)

func GetPrivateSchemaPath

func GetPrivateSchemaPath(basePath string, conf config.Furyctl) (string, error)

func GetPublicSchemaPath

func GetPublicSchemaPath(basePath string, conf config.Furyctl) (string, error)

func HasFeature added in v0.27.0

func HasFeature(kfd config.KFD, name Feature) bool

Types

type DownloadResult

type DownloadResult struct {
	RepoPath       string
	MinimalConf    config.Furyctl
	DistroManifest config.KFD
}

type Downloader

type Downloader struct {
	HTTPS bool
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader(client netx.Client, https bool) *Downloader

func (*Downloader) DoDownload

func (d *Downloader) DoDownload(
	distroLocation string,
	minimalConf config.Furyctl,
) (DownloadResult, error)

func (*Downloader) Download

func (d *Downloader) Download(
	distroLocation string,
	furyctlConfPath string,
) (DownloadResult, error)

type Feature added in v0.27.0

type Feature string

type IACBuilder

type IACBuilder struct {
	// contains filtered or unexported fields
}

func NewIACBuilder

func NewIACBuilder(
	furyctlFile map[any]any,
	distroPath,
	kind,
	outDir,
	furyctlConfPath string,
	noOverwrite,
	dryRun bool,
) (*IACBuilder, error)

func (*IACBuilder) Build

func (m *IACBuilder) Build() error

Jump to

Keyboard shortcuts

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