kpt

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRenderer

func NewRenderer(runnerOptions fnruntime.RunnerOptions) fn.Renderer

func PkgUpdate

func PkgUpdate(ctx context.Context, ref string, packageDir string, opts 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

TODO: accept a virtual filesystem

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)

TODO: Accept a virtual filesystem or other package abstraction

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

Directories

Path Synopsis
internal package containing implementation details of the package manipulation primitives.
internal package containing implementation details of the package manipulation primitives.

Jump to

Keyboard shortcuts

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