manifest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Category    string `json:"category"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Driver      string `json:"driver"`
	// Note: You don't need to specify the Entrypoint field, When develop a new std function.
	// Because the Entrypoint field is automatically filled in, When register the new function into std.
	Entrypoint     string            `json:"entrypoint"`
	Args           map[string]string `json:"args"`
	RetryOnFailure int               `json:"retry_on_failure"`
	IgnoreFailure  bool              `json:"ignore_failure"`
	Usage          Usage             `json:"usage"`
}

type Usage

type Usage struct {
	Args         []UsageDesc `json:"args"`
	ReturnValues []UsageDesc `json:"return_values"`
}

type UsageDesc

type UsageDesc struct {
	Name           string   `json:"name"`
	OptionalValues []string `json:"optional_values"`
	Desc           string   `json:"desc"`
}

Jump to

Keyboard shortcuts

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