kptops

package
v1.0.0-beta.60.2 Latest Latest
Warning

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

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

Documentation

Overview

Package kptops contains implementations of kpt operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRenderer

func NewRenderer(runnerOptions runneroptions.RunnerOptions) fn.Renderer

func PkgUpdate

func PkgUpdate(ctx context.Context, ref string, packageDir string, _ PkgUpdateOpts) error

PkgUpdate is a wrapper around `kpt pkg update`, running it against the package in packageDir

func UpdateKptfileName

func UpdateKptfileName(name string, contents map[string]string) error

func UpdateKptfileUpstream

func UpdateKptfileUpstream(name string, contents map[string]string, upstream kptfilev1.Upstream, lock kptfilev1.UpstreamLock) error

func UpdateName

func UpdateName(kptfileContents string, name string) (string, error)

func UpdateUpstream

func UpdateUpstream(kptfileContents string, name string, upstream kptfilev1.Upstream, lock kptfilev1.UpstreamLock) (string, error)

Types

type FunctionRuntime

type FunctionRuntime interface {
	fn.FunctionRuntime
	io.Closer
}

func NewSimpleFunctionRuntime

func NewSimpleFunctionRuntime() FunctionRuntime

type PkgUpdateOpts

type PkgUpdateOpts struct {
	Strategy string
}

PkgUpdateOpts are options for invoking kpt PkgUpdate

Jump to

Keyboard shortcuts

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