Documentation ¶
Index ¶
- func Commands() *cobra.Command
- func Create(input cli.Input) error
- func CreateArchive(client cmd.Client, input cli.Input, includeFiles []string, noZip bool, ...) (*fv1.Archive, error)
- func CreatePackage(input cli.Input, client cmd.Client, pkgName string, pkgNamespace string, ...) (*metav1.ObjectMeta, error)
- func Delete(input cli.Input) error
- func GetDeploy(input cli.Input) error
- func GetFunctionsByPackage(ctx context.Context, client cmd.Client, pkgName, pkgNamespace string) ([]fv1.Function, error)
- func GetSrc(input cli.Input) error
- func Info(input cli.Input) error
- func List(input cli.Input) error
- func Rebuild(input cli.Input) error
- func Update(input cli.Input) error
- func UpdateFunctionPackageResourceVersion(ctx context.Context, client cmd.Client, pkgMeta *metav1.ObjectMeta, ...) error
- func UpdatePackage(input cli.Input, client cmd.Client, specFile string, pkg *fv1.Package) (*metav1.ObjectMeta, error)
- type CreateSubCommand
- type DeleteSubCommand
- type GetSubCommand
- type InfoSubCommand
- type ListSubCommand
- type RebuildSubCommand
- type UpdateSubCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetFunctionsByPackage ¶
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 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.