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 CompatibilityCheck
- type CompatibilityChecker
- type DownloadResult
- type Downloader
- type EKSClusterCheck
- type Feature
- type IACBuilder
- type KFDDistributionCheck
- type OnPremisesCheck
Constants ¶
View Source
const ( EKSClusterKind = "EKSCluster" KFDDistributionKind = "KFDDistribution" OnPremisesKind = "OnPremises" )
View Source
const ( FeatureClusterUpgrade = Feature("ClusterUpgrade") FeatureTracingModule = Feature("TracingModule") FeatureKubeconfigInSchema = Feature("KubeconfigInSchema") FeaturePlugins = Feature("Plugins") FeatureYqSupport = Feature("YqSupport") FeatureKubernetesLogTypes = Feature("KubernetesLogTypes") )
View Source
const DefaultBaseURL = "git::%s/fury-distribution?ref=%s&depth=1"
View Source
const ValidLength = 2
Variables ¶
View Source
var ( ErrCannotDownloadDistribution = errors.New("cannot download distribution") 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")
View Source
var ErrUnsupportedKind = errors.New("unsupported kind")
Functions ¶
func GetConfigTemplatePath ¶
func GetPrivateSchemaPath ¶
func GetPublicSchemaPath ¶
Types ¶
type CompatibilityCheck ¶ added in v0.27.3
type CompatibilityCheck struct {
// contains filtered or unexported fields
}
type CompatibilityChecker ¶ added in v0.27.3
type CompatibilityChecker interface {
IsCompatible() bool
}
func NewCompatibilityChecker ¶ added in v0.27.3
func NewCompatibilityChecker(distributionVersion, kind string) (CompatibilityChecker, error)
type DownloadResult ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewCachingDownloader ¶ added in v0.27.3
func NewDownloader ¶
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 EKSClusterCheck ¶ added in v0.27.3
type EKSClusterCheck struct {
CompatibilityCheck
}
func NewEKSClusterCheck ¶ added in v0.27.3
func NewEKSClusterCheck(distributionVersion string) *EKSClusterCheck
func (*EKSClusterCheck) IsCompatible ¶ added in v0.27.3
func (c *EKSClusterCheck) IsCompatible() bool
type IACBuilder ¶
type IACBuilder struct {
// contains filtered or unexported fields
}
func NewIACBuilder ¶
func (*IACBuilder) Build ¶
func (m *IACBuilder) Build() error
type KFDDistributionCheck ¶ added in v0.27.3
type KFDDistributionCheck struct {
CompatibilityCheck
}
func NewKFDDistributionCheck ¶ added in v0.27.3
func NewKFDDistributionCheck(distributionVersion string) *KFDDistributionCheck
func (*KFDDistributionCheck) IsCompatible ¶ added in v0.27.3
func (c *KFDDistributionCheck) IsCompatible() bool
type OnPremisesCheck ¶ added in v0.27.3
type OnPremisesCheck struct {
CompatibilityCheck
}
func NewOnPremisesCheck ¶ added in v0.27.3
func NewOnPremisesCheck(distributionVersion string) *OnPremisesCheck
func (*OnPremisesCheck) IsCompatible ¶ added in v0.27.3
func (c *OnPremisesCheck) IsCompatible() bool
Click to show internal directories.
Click to hide internal directories.