Documentation ¶
Index ¶
- Constants
- Variables
- func GetConfigTemplatePath(basePath string, conf config.Furyctl) (string, error)
- func GetPrivateSchemaPath(basePath string, conf config.Furyctl) (string, error)
- func GetPublicSchemaPath(basePath string, conf config.Furyctl) (string, error)
- func HasFeature(kfd config.KFD, name Feature) bool
- type DownloadResult
- type Downloader
- type Feature
- type IACBuilder
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 GetPrivateSchemaPath ¶
func GetPublicSchemaPath ¶
Types ¶
type DownloadResult ¶
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 IACBuilder ¶
type IACBuilder struct {
// contains filtered or unexported fields
}
func NewIACBuilder ¶
func (*IACBuilder) Build ¶
func (m *IACBuilder) Build() error
Click to show internal directories.
Click to hide internal directories.