installer

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

pkg/installer

This package provides functionality for installing and uninstalling components in KSail.

Purpose

Defines the core Installer interface and provides implementations for installing various components required by KSail, such as CLI tools and Kubernetes resources.

Interface

type Installer interface {
    // Install installs the component
    Install(ctx context.Context) error
    
    // Uninstall uninstalls the component
    Uninstall(ctx context.Context) error
}

Features

  • Context Support: All operations support context for cancellation and timeouts
  • Uniform Interface: Consistent interface across all installer implementations
  • Error Handling: Proper error reporting for installation/uninstallation operations

Subpackages

Usage

import "github.com/devantler-tech/ksail-go/pkg/installer"

// Use any installer implementation
var installer Installer = // ... get specific installer

// Install component
ctx := context.Background()
if err := installer.Install(ctx); err != nil {
    log.Fatal(err)
}

// Uninstall component
if err := installer.Uninstall(ctx); err != nil {
    log.Fatal(err)
}

⬅️ Go Back

Documentation

Overview

Package installer provides functionality for installing and uninstalling components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer interface {
	// Install installs the component.
	Install(ctx context.Context) error

	// Uninstall uninstalls the component.
	Uninstall(ctx context.Context) error
}

Installer defines methods for installing and uninstalling components.

Directories

Path Synopsis
Package fluxinstaller provides an installer for installing flux on a Kubernetes cluster.
Package fluxinstaller provides an installer for installing flux on a Kubernetes cluster.
Package kubectlinstaller provides a kubectl installer implementation.
Package kubectlinstaller provides a kubectl installer implementation.
Package testutils provides common test utilities for installer packages
Package testutils provides common test utilities for installer packages

Jump to

Keyboard shortcuts

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