Documentation ¶
Index ¶
- Constants
- func AddBuild(cmd *cobra.Command, builder *fn.BuildImpl)
- func AddFilenameOptionFlags(cmd *cobra.Command, options *resource.FilenameOptions, usage string)
- func AddGitRepo(cmd *cobra.Command, gitRepo *fn.GitRepo)
- func AddJsonFilenameFlag(flags *pflag.FlagSet, value *[]string, usage string)
- func AddKustomizeFlag(flags *pflag.FlagSet, value *string)
- func AddServing(cmd *cobra.Command, serving *fn.ServingImpl)
- func NewCmdCreate(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdDelete(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdDemo(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdGet(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdInstall(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdLogs(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdUninstall(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdVersion() *cobra.Command
- func NewListPrintFlags(printer func(h PrintHandler)) (*genericclioptions.PrintFlags, func(h PrintHandler))
- type Create
- type Delete
- type Demo
- type Get
- type Install
- type Logs
- type PrintHandler
- type Uninstall
- type VersionOptions
Constants ¶
const ( DemoYamlFile = "https://raw.githubusercontent.com/OpenFunction/OpenFunction/main/config/samples/function-sample-serving-only.yaml" DemoYamlFileCN = "https://cdn.jsdelivr.net/gh/OpenFunction/OpenFunction@main/config/samples/function-sample-serving-only.yaml" )
Variables ¶
This section is empty.
Functions ¶
func AddFilenameOptionFlags ¶
func AddFilenameOptionFlags(cmd *cobra.Command, options *resource.FilenameOptions, usage string)
func AddJsonFilenameFlag ¶
func AddKustomizeFlag ¶
AddKustomizeFlag adds kustomize flag to a command
func AddServing ¶
func AddServing(cmd *cobra.Command, serving *fn.ServingImpl)
func NewCmdCreate ¶
func NewCmdCreate(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
func NewCmdDelete ¶
func NewCmdDelete(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
func NewCmdDemo ¶
func NewCmdDemo(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
func NewCmdGet ¶
func NewCmdGet(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
func NewCmdInstall ¶
func NewCmdInstall(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
func NewCmdLogs ¶ added in v0.6.0
func NewCmdLogs(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdLogs builds the `logs` sub command
func NewCmdUninstall ¶
func NewCmdUninstall(cf *genericclioptions.ConfigFlags, ioStreams genericclioptions.IOStreams) *cobra.Command
func NewCmdVersion ¶ added in v0.5.3
NewCmdVersion creates a new version command
func NewListPrintFlags ¶
func NewListPrintFlags(printer func(h PrintHandler)) (*genericclioptions.PrintFlags, func(h PrintHandler))
NewListFlags returns flags associated with humanreadable, template, and "name" printing, with default values set.
Types ¶
type Create ¶
type Create struct { genericclioptions.IOStreams Printer *util.Printer FilenameOptions resource.FilenameOptions DryRun bool Name string Image string Version string Port int32 ImageCredentials string Build *openfunction.BuildImpl Serving *openfunction.ServingImpl // contains filtered or unexported fields }
Create is the commandline for 'create' sub command
func NewCreate ¶
func NewCreate(ioStreams genericclioptions.IOStreams) *Create
NewCreate returns an initialized Create instance
type Delete ¶
type Delete struct { genericclioptions.IOStreams FilenameOptions resource.FilenameOptions NamespaceIfScoped bool // contains filtered or unexported fields }
Delete is the commandline for 'delete' sub command
func NewDelete ¶
func NewDelete(ioStreams genericclioptions.IOStreams) *Delete
NewDelete returns an initialized Delete instance
func (*Delete) ToOptions ¶
func (d *Delete) ToOptions() metav1.DeleteOptions
type Demo ¶
type Demo struct { genericclioptions.IOStreams Verbose bool RegionCN bool OpenFunctionVersion string DryRun bool AutoPrune bool Timeout time.Duration }
Demo is the commandline for 'demo' sub command
func NewDemo ¶
func NewDemo(ioStreams genericclioptions.IOStreams) *Demo
NewDemo returns an initialized Init instance
func (*Demo) RunKind ¶
func (i *Demo) RunKind(cf *genericclioptions.ConfigFlags, cmd *cobra.Command) error
type Get ¶
type Get struct { genericclioptions.IOStreams Printer *util.Printer Name string NamespaceIfScoped bool // contains filtered or unexported fields }
Get is the commandline for 'get' sub command
func NewGet ¶
func NewGet(ioStreams genericclioptions.IOStreams) *Get
NewGet returns an initialized Get instance
func (*Get) ToOptions ¶
func (l *Get) ToOptions() metav1.ListOptions
type Install ¶
type Install struct { genericclioptions.IOStreams Verbose bool Runtimes []string Ingress string WithoutCI bool WithDapr bool WithKeda bool WithKnative bool WithShipWright bool WithCertManager bool WithIngressNginx bool WithAll bool RegionCN bool OpenFunctionVersion string DryRun bool Upgrade bool Yes bool Timeout time.Duration // contains filtered or unexported fields }
Install is the commandline for 'install' sub command
func NewInstall ¶
func NewInstall(ioStreams genericclioptions.IOStreams) *Install
NewInstall returns an initialized Init instance
func (*Install) RunInstall ¶
func (*Install) ValidateArgs ¶
type Logs ¶ added in v0.6.0
type Logs struct { *genericclioptions.IOStreams Follow bool // contains filtered or unexported fields }
Logs is the commandline for `logs` sub command
type PrintHandler ¶
type PrintHandler interface {
TableHandler(columns []metav1beta1.TableColumnDefinition, printFunc interface{}) error
}
type Uninstall ¶
type Uninstall struct { genericclioptions.IOStreams Verbose bool Runtimes []string WithCI bool WithDapr bool WithKeda bool WithKnative bool WithShipWright bool WithCertManager bool WithIngressNginx bool WithAll bool RegionCN bool OpenFunctionVersion string DryRun bool Yes bool WaitForCleared bool Timeout time.Duration }
Uninstall is the commandline for 'uninstall' sub command
func NewUninstall ¶
func NewUninstall(ioStreams genericclioptions.IOStreams) *Uninstall
NewUninstall returns an initialized Init instance
func (*Uninstall) RunUninstall ¶
func (*Uninstall) ValidateArgs ¶
type VersionOptions ¶ added in v0.5.3
func NewVersionOptions ¶ added in v0.5.3
func NewVersionOptions() *VersionOptions
func (*VersionOptions) AddFlags ¶ added in v0.5.3
func (o *VersionOptions) AddFlags(cmd *cobra.Command)