utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 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 Parsed

type Parsed struct {
	Organization string
	Name         string
	Tag          string
}

func Parse

func Parse(name string) *Parsed

Parse parses a function or signature name of the form <org>/<name>:<tag> into its organization, name, and tag

type ScaleFunctionNamedReadCloser

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

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