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
Click to show internal directories.
Click to hide internal directories.