utils

package
v0.1.7-dev3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAuthenticated = errors.New("you must be authenticated to use this command. Please run 'scale login' to authenticate")
)

Functions

func InvalidStringError

func InvalidStringError(kind string, str string) error

func PostRunAnalytics

func PostRunAnalytics(_ *cmdutils.Helper[*config.Config]) func(cmd *cobra.Command, args []string) error

func PostRunAuthenticatedAPI

func PostRunAuthenticatedAPI(ch *cmdutils.Helper[*config.Config]) func(cmd *cobra.Command, args []string) error

func PostRunOptionalAuthenticatedAPI

func PostRunOptionalAuthenticatedAPI(ch *cmdutils.Helper[*config.Config]) func(cmd *cobra.Command, args []string) error

func PreRunAuthenticatedAPI

func PreRunAuthenticatedAPI(ch *cmdutils.Helper[*config.Config]) func(cmd *cobra.Command, args []string) error

func PreRunOptionalAuthenticatedAPI

func PreRunOptionalAuthenticatedAPI(ch *cmdutils.Helper[*config.Config]) func(cmd *cobra.Command, args []string) error

func PreRunUpdateCheck

func PreRunUpdateCheck(ch *cmdutils.Helper[*config.Config]) func(cmd *cobra.Command, args []string) error

Types

type ParsedFunction

type ParsedFunction struct {
	Organization string
	Name         string
	Tag          string
}

func ParseFunction

func ParseFunction(fn string) *ParsedFunction

type ScaleFunctionNamedReadCloser

type ScaleFunctionNamedReadCloser struct {
	// contains filtered or unexported fields
}

func NewScaleFunctionNamedReadCloser

func NewScaleFunctionNamedReadCloser(sf *scalefunc.Schema) *ScaleFunctionNamedReadCloser

func (*ScaleFunctionNamedReadCloser) Close

func (*ScaleFunctionNamedReadCloser) Name

func (*ScaleFunctionNamedReadCloser) Read

func (s *ScaleFunctionNamedReadCloser) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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