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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.