_package

package
Version: v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 32 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 client.Interface, 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 client.Interface, pkgName string, pkgNamespace string, envName string, envNamespace string,
	srcArchiveFiles []string, deployArchiveFiles []string, buildcmd string, specDir string, specFile string, noZip bool) (*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(client client.Interface, 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(client client.Interface, pkgMeta *metav1.ObjectMeta, fnList ...fv1.Function) error

func UpdatePackage

func UpdatePackage(input cli.Input, client client.Interface, 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL