functions

package
v2.39.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionConfig

type FunctionConfig struct {
	MetadataDir string
	// contains filtered or unexported fields
}

func New

func New(ec *cli.ExecutionContext, baseDir string) *FunctionConfig

func (*FunctionConfig) BaseDirectory

func (f *FunctionConfig) BaseDirectory() string

func (*FunctionConfig) Build

func (f *FunctionConfig) Build() (map[string]interface{}, error)

func (*FunctionConfig) CreateFiles

func (f *FunctionConfig) CreateFiles() error

func (*FunctionConfig) Export

func (f *FunctionConfig) Export(metadata map[string]yaml.Node) (map[string][]byte, error)

func (*FunctionConfig) Filename

func (f *FunctionConfig) Filename() string

func (*FunctionConfig) GetFiles

func (f *FunctionConfig) GetFiles() ([]string, error)

func (*FunctionConfig) Key

func (f *FunctionConfig) Key() string

func (*FunctionConfig) Validate

func (f *FunctionConfig) Validate() error

func (*FunctionConfig) WriteDiff

func (f *FunctionConfig) WriteDiff(opts metadataobject.WriteDiffOpts) error

type V3MetadataFunctionConfig

type V3MetadataFunctionConfig struct {
	*FunctionConfig
}

func NewV3MetadataFunctionConfig

func NewV3MetadataFunctionConfig(ec *cli.ExecutionContext, baseDir string) *V3MetadataFunctionConfig

func (*V3MetadataFunctionConfig) Export

func (t *V3MetadataFunctionConfig) Export(md map[string]yaml.Node) (map[string][]byte, error)

Jump to

Keyboard shortcuts

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