utils

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultOrganization = "local"
	DefaultTag          = "latest"
)

Variables

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

Functions

func InvalidStringError

func InvalidStringError(kind string, str string) error

func PostRunAnalytics added in v0.1.3

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 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 added in v0.1.2

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.ScaleFunc) *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