Documentation
¶
Overview ¶
Package kptops contains implementations of kpt operations
Index ¶
- func NewRenderer(runnerOptions runneroptions.RunnerOptions) fn.Renderer
- func PkgUpdate(ctx context.Context, ref string, packageDir string, _ PkgUpdateOpts) error
- func UpdateKptfileName(name string, contents map[string]string) error
- func UpdateKptfileUpstream(name string, contents map[string]string, upstream kptfilev1.Upstream, ...) error
- func UpdateName(kptfileContents string, name string) (string, error)
- func UpdateUpstream(kptfileContents string, name string, upstream kptfilev1.Upstream, ...) (string, error)
- type FunctionRuntime
- type PkgUpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRenderer ¶
func NewRenderer(runnerOptions runneroptions.RunnerOptions) fn.Renderer
func PkgUpdate ¶
PkgUpdate is a wrapper around `kpt pkg update`, running it against the package in packageDir
func UpdateKptfileUpstream ¶
func UpdateUpstream ¶
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
Click to show internal directories.
Click to hide internal directories.