apply

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package apply provides the implementation for the apply command, allowing users to apply resources from files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(ctx context.Context, w format.Writer, client *api.Client, file *os.File, opts ...Option) error

Types

type Cmd

type Cmd struct {
	format.Writer `hidden:""`
	Filename      *os.File `short:"f" completion-predictor:"file"`
	FromFile      fromFile `cmd:"" default:"1" name:"-f <file>" help:"Apply any resource from a yaml or json file."`
}

func (*Cmd) Run

func (cmd *Cmd) Run(ctx context.Context, client *api.Client, apply *Cmd) error

type Option

type Option func(*config)

func Delete

func Delete() Option

func UpdateOnExists

func UpdateOnExists() Option

Jump to

Keyboard shortcuts

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