Documentation ¶
Index ¶
- func NewRenderer(runnerOptions fnruntime.RunnerOptions) fn.Renderer
- func PkgUpdate(ctx context.Context, ref string, packageDir string, opts 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 fnruntime.RunnerOptions) fn.Renderer
func PkgUpdate ¶
PkgUpdate is a wrapper around `kpt pkg update`, running it against the package in packageDir
func UpdateKptfileUpstream ¶
func UpdateKptfileUpstream(name string, contents map[string]string, upstream kptfilev1.Upstream, lock kptfilev1.UpstreamLock) error
TODO: accept a virtual filesystem
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 |
---|---|
api
|
|
kptfile/v1
Package defines Kptfile schema.
|
Package defines Kptfile schema. |
third_party/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark/generated
Code generated by "mdtogo"; DO NOT EDIT.
|
Code generated by "mdtogo"; DO NOT EDIT. |
third_party/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark/third_party/sigs.k8s.io/kustomize/kyaml/fn/runtime/starlark
Package starlark contains a kio.Filter which can be applied to resources to transform them through starlark program.
|
Package starlark contains a kio.Filter which can be applied to resources to transform them through starlark program. |
internal package containing implementation details of the package manipulation primitives.
|
internal package containing implementation details of the package manipulation primitives. |
Package printer defines utilities to display kpt CLI output.
|
Package printer defines utilities to display kpt CLI output. |
Click to show internal directories.
Click to hide internal directories.