dubbo

package
v0.0.0-...-b6b2d9b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DockerfileGolang = `` /* 853-byte string literal not displayed */

	DockerfileJava = `` /* 201-byte string literal not displayed */

	DockerfileByRuntime = map[string]string{
		"go":   DockerfileGolang,
		"java": DockerfileJava,
	}
)
View Source
var (
	// ErrTemplateRepoDoesNotExist is a sentinel error if a template repository responds with 404 status code
	ErrTemplateRepoDoesNotExist  = errors.New("template repo does not exist")
	ErrEnvironmentNotFound       = errors.New("environment not found")
	ErrMismatchedName            = errors.New("name passed the function source")
	ErrNameRequired              = errors.New("name required")
	ErrNotBuilt                  = errors.New("not built")
	ErrNotRunning                = errors.New("function not running")
	ErrRepositoriesNotDefined    = errors.New("custom template repositories location not specified")
	ErrRepositoryNotFound        = errors.New("repository not found")
	ErrRootRequired              = errors.New("function root path is required")
	ErrRuntimeNotFound           = errors.New("language runtime not found")
	ErrRuntimeRequired           = errors.New("language runtime required")
	ErrTemplateMissingRepository = errors.New("template name missing repository prefix")
	ErrTemplateNotFound          = errors.New("template not found")
	ErrTemplatesNotFound         = errors.New("templates path (runtimes) not found")
	ErrContextCanceled           = errors.New("the operation was canceled")
)
View Source
var EmbeddedTemplatesFS = newEmbeddedTemplatesFS()

Functions

func NewErrNotInitialized

func NewErrNotInitialized(path string) error

Types

type ErrNotInitialized

type ErrNotInitialized struct {
	Path string
}

ErrNotInitialized indicates that a function is uninitialized

func (ErrNotInitialized) Error

func (e ErrNotInitialized) Error() string

type ErrRunTimeout

type ErrRunTimeout struct {
	Timeout time.Duration
}

func (ErrRunTimeout) Error

func (e ErrRunTimeout) Error() string

type ErrRunnerNotImplemented

type ErrRunnerNotImplemented struct {
	Runtime string
}

ErrRunnerNotImplemented indicates the feature is not available for the requested runtime.

func (ErrRunnerNotImplemented) Error

func (e ErrRunnerNotImplemented) Error() string

type ErrRuntimeNotRecognized

type ErrRuntimeNotRecognized struct {
	Runtime string
}

ErrRuntimeNotRecognized indicates a runtime which is not in the set of those known.

func (ErrRuntimeNotRecognized) Error

func (e ErrRuntimeNotRecognized) Error() string

Jump to

Keyboard shortcuts

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