preload

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: GPL-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New creates a new preload command

Types

type Command

type Command struct {
	Config
	// contains filtered or unexported fields
}

Command are the options for the preload command

func (*Command) Run

func (c *Command) Run(ctx context.Context) error

Run executes the preload command

type Config

type Config struct {
	// Cloud is the cloud vendor we are dealing with
	Cloud string
	// Cluster is the name of the underlying resource we are using to find the context
	// from - i.e. the eks, gke or aks cluster name
	Cluster string
	// Context is the name of the context we should update / create
	Context string
	// EnableOverride is a flag to enable overriding the context if it already exists
	EnableOverride bool
	// Provider is the provider name which triggered the preloading
	Provider string
	// Region is the cloud vendor region we are dealing with
	Region string
}

Config is the configuration for the preload command

Jump to

Keyboard shortcuts

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