app

package
v0.0.0-...-20439c6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 5

Documentation

Index

Constants

View Source
const (
	SHAPE_PARAMETER = "shape"
)

Variables

This section is empty.

Functions

func BashCompleteApps

func BashCompleteApps(c *cli.Context)

BashCompleteApps can be called from a BashComplete function to provide app completion suggestions (Does not check if the current context already contains an app name as an argument. This should be checked before calling this)

func Create

func Create() cli.Command

Create app command

func CreateApp

func CreateApp(a *fnclient.Fn, app *modelsv2.App) (*modelsv2.App, error)

CreateApp creates a new app using the given client

func Delete

func Delete() cli.Command

Delete app command

func GetAppByName

func GetAppByName(client *fnclient.Fn, appName string) (*modelsv2.App, error)

GetAppByName looks up an app by name using the given client

func GetConfig

func GetConfig() cli.Command

GetConfig for function command

func Inspect

func Inspect() cli.Command

Inspect app command

func List

func List() cli.Command

List apps command

func ListConfig

func ListConfig() cli.Command

ListConfig for app command

func PutApp

func PutApp(a *fnclient.Fn, appID string, app *modelsv2.App) (*modelsv2.App, error)

PutApp updates the app with the given ID using the content of the provided app

func SetConfig

func SetConfig() cli.Command

SetConfig for function command

func UnsetConfig

func UnsetConfig() cli.Command

UnsetConfig for app command

func Update

func Update() cli.Command

Update app command

Types

type NameNotFoundError

type NameNotFoundError struct {
	Name string
}

NameNotFoundError error for app not found when looked up by name

func (NameNotFoundError) Error

func (n NameNotFoundError) Error() string

Jump to

Keyboard shortcuts

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