storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// NFS Configuration
	NFSServer        string
	NFSShare         string
	StorageClassName string

	// Cache Coherency Configuration
	AggressiveCoherency bool

	// Behavior flags
	DryRun     bool
	UpdateMode bool
}

Config holds all configuration for storage setup

type Manager

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

Manager orchestrates Kubernetes operations for shared storage setup

func NewManager

func NewManager(ctx context.Context, config *Config) (*Manager, error)

NewManager creates a new storage manager

func (*Manager) Cleanup

func (m *Manager) Cleanup(ctx context.Context) error

Cleanup removes created StorageClass

func (*Manager) SetupSharedStorage

func (m *Manager) SetupSharedStorage(ctx context.Context) (*SetupResult, error)

SetupSharedStorage orchestrates the complete setup process

type SetupResult

type SetupResult struct {
	StorageClassName string
	MountTargets     []string
	TestPassed       bool
}

SetupResult contains the results of storage setup

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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