download

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentClientFactory

type AgentClientFactory func(port int) (agent.AgentClient, func() error, error)

AgentClientFactory is a function to create an agent client.

type Downloader

type Downloader struct {
	Options *Options
	// contains filtered or unexported fields
}

Downloader struct for executing download logic.

func NewDownloader

func NewDownloader(
	opts *Options,
	k8sClient client.Client,
	kubeExecutor kube.Executor,
) *Downloader

NewDownloader creates a new Downloader struct.

func (*Downloader) Run

func (d *Downloader) Run(ctx context.Context) error

Run executes the download workflow.

type Options

type Options struct {
	Namespace     string
	MinecraftName string
	Output        string
}

Options struct for holding download command options.

func NewOptions

func NewOptions() *Options

NewOptions creates a new Options struct.

func (*Options) Complete

func (o *Options) Complete(args []string) error

Complete completes validation of the options.

Jump to

Keyboard shortcuts

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