Versions in this module Expand all Collapse all v7 v7.3.3 Apr 22, 2026 v7.3.2 Apr 21, 2026 Changes in this version + var ErrAmbiguousCluster = errors.New("ambiguous cluster name") + var ErrContextNotFound = errors.New("no matching context found for cluster") + var ErrInvalidCompressionLevel = errors.New("compression level out of range") + var ErrInvalidResourcePolicy = errors.New("invalid existing-resource-policy: must be 'none' or 'update'") + var ErrInvalidTarPath = errors.New("invalid tar entry path") + var ErrKubeconfigNotFound = errors.New("kubeconfig not found; ensure cluster is created and configured") + var ErrNoClusters = errors.New("no KSail-managed clusters found in kubeconfig") + var ErrRestoreFailed = errors.New("resource restore failed") + var ErrSymlinkInArchive = errors.New("symbolic and hard links are not supported in backup archives") + var ErrUnsupportedOutputFormat = errors.New("unsupported --output format") + var ErrUnsupportedProvider = clustererr.ErrUnsupportedProvider + func HandleInitRunE(cmd *cobra.Command, cfgManager *ksailconfigmanager.ConfigManager, ...) error + func HandleListRunE(cmd *cobra.Command, providerFilter v1alpha1.Provider, deps ListDeps) error + func HandleSwitchRunE(cmd *cobra.Command, clusterName string, deps SwitchDeps) error + func InitFieldSelectors() []ksailconfigmanager.FieldSelector[v1alpha1.Cluster] + func IsClusterContainer(containerName, clusterName string) bool + func NewBackupCmd(_ *di.Runtime) *cobra.Command + func NewClusterCmd(runtimeContainer *di.Runtime) *cobra.Command + func NewConnectCmd(_ *di.Runtime) *cobra.Command + func NewCreateCmd(runtimeContainer *di.Runtime) *cobra.Command + func NewDeleteCmd(runtimeContainer *di.Runtime) *cobra.Command + func NewInfoCmd(_ *di.Runtime) *cobra.Command + func NewInitCmd(runtimeContainer *di.Runtime) *cobra.Command + func NewListCmd(runtimeContainer *di.Runtime) *cobra.Command + func NewRestoreCmd(_ *di.Runtime) *cobra.Command + func NewStartCmd(_ any) *cobra.Command + func NewStopCmd(_ any) *cobra.Command + func NewSwitchCmd(_ *di.Runtime) *cobra.Command + func NewUpdateCmd(runtimeContainer *di.Runtime) *cobra.Command + func SetArgoCDInstallerFactoryForTests(factory func(*v1alpha1.Cluster) (installer.Installer, error)) func() + func SetCSIInstallerFactoryForTests(factory func(*v1alpha1.Cluster) (installer.Installer, error)) func() + func SetCertManagerInstallerFactoryForTests(factory func(*v1alpha1.Cluster) (installer.Installer, error)) func() + func SetDockerClientInvokerForTests(invoker func(*cobra.Command, func(client.APIClient) error) error) func() + func SetEnsureArgoCDResourcesForTests(fn func(context.Context, string, *v1alpha1.Cluster, string) error) func() + func SetEnsureOCIArtifactForTests(...) func() + func SetFluxInstallerFactoryForTests(factory func(*v1alpha1.Cluster) (installer.Installer, error)) func() + func SetLocalRegistryServiceFactoryForTests(factory localregistry.ServiceFactoryFunc) func() + func SetPolicyEngineInstallerFactoryForTests(factory func(*v1alpha1.Cluster) (installer.Installer, error)) func() + func SetProvisionerFactoryForTests(factory clusterprovisioner.Factory) func() + func SetSetupFluxInstanceForTests(fn func(context.Context, string, *v1alpha1.Cluster, string, string) error) func() + func SetWaitForFluxReadyForTests(fn func(context.Context, string) error) func() + type BackupMetadata struct + ClusterName string + Distribution string + KSailVersion string + Provider string + ResourceCount int + ResourceTypes []string + Timestamp time.Time + Version string + type ChangeJSON struct + Category string + Field string + NewValue string + OldValue string + Reason string + type DiffJSONOutput struct + InPlaceChanges []ChangeJSON + RebootRequired []ChangeJSON + RecreateRequired []ChangeJSON + RequiresConfirmation bool + TotalChanges int + type InitDeps struct + Timer timer.Timer + type ListDeps struct + DistributionFactoryCreator func(v1alpha1.Distribution) clusterprovisioner.Factory + HetznerProvider *hetzner.Provider + OmniProvider *omni.Provider + type SwitchDeps struct + KubeconfigPath string + PickCluster func(title string, items []string) (string, error) Other modules containing this package github.com/devantler-tech/ksail/v5 github.com/devantler-tech/ksail/v6