preload

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-2.0 Imports: 19 Imported by: 0

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