_package

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() *cobra.Command

func Create

func Create(input cli.Input) error

func CreateArchive

func CreateArchive(client cmd.Client, input cli.Input, includeFiles []string, noZip bool, insecure bool, checksum string, specDir string, specFile string) (*fv1.Archive, error)

CreateArchive returns a fv1.Archive made from an archive . If specFile, then create an archive upload spec in the specs directory; otherwise upload the archive using client. noZip avoids zipping the includeFiles, but is ignored if there's more than one includeFile.

func CreatePackage

func CreatePackage(input cli.Input, client cmd.Client, pkgName string, pkgNamespace string, envName string,
	srcArchiveFiles []string, deployArchiveFiles []string, buildcmd string, specDir string, specFile string, noZip bool, userProvidedNS string) (*metav1.ObjectMeta, error)

TODO: get all necessary value from CLI input directly

func Delete

func Delete(input cli.Input) error

func GetDeploy

func GetDeploy(input cli.Input) error

func GetFunctionsByPackage

func GetFunctionsByPackage(ctx context.Context, client cmd.Client, pkgName, pkgNamespace string) ([]fv1.Function, error)

func GetSrc

func GetSrc(input cli.Input) error

func Info

func Info(input cli.Input) error

func List

func List(input cli.Input) error

func Rebuild

func Rebuild(input cli.Input) error

func Update

func Update(input cli.Input) error

func UpdateFunctionPackageResourceVersion

func UpdateFunctionPackageResourceVersion(ctx context.Context, client cmd.Client, pkgMeta *metav1.ObjectMeta, fnList ...fv1.Function) error

func UpdatePackage

func UpdatePackage(input cli.Input, client cmd.Client, specFile string, pkg *fv1.Package) (*metav1.ObjectMeta, error)

Types

type CreateSubCommand

type CreateSubCommand struct {
	cmd.CommandActioner
}

type DeleteSubCommand

type DeleteSubCommand struct {
	cmd.CommandActioner
	// contains filtered or unexported fields
}

type GetSubCommand

type GetSubCommand struct {
	cmd.CommandActioner
	// contains filtered or unexported fields
}

type InfoSubCommand

type InfoSubCommand struct {
	cmd.CommandActioner
	// contains filtered or unexported fields
}

type ListSubCommand

type ListSubCommand struct {
	cmd.CommandActioner
	// contains filtered or unexported fields
}

type RebuildSubCommand

type RebuildSubCommand struct {
	cmd.CommandActioner
	// contains filtered or unexported fields
}

type UpdateSubCommand

type UpdateSubCommand struct {
	cmd.CommandActioner
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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