Documentation
¶
Index ¶
- Variables
- func Clone(url string) (string, error)
- func Download(url string) (string, error)
- func IsDir(path string) bool
- func IsGit(path string) bool
- func IsGitFile(path string) (string, string)
- func IsLocal(path string) bool
- func IsRegistry(path string) bool
- func IsRemote(path string) bool
- type Copy
- type Definition
- type Function
- type Schedule
Constants ¶
This section is empty.
Variables ¶
View Source
var Aos = afero.NewOsFs()
Functions ¶
func Clone ¶
Clone runs `git clone` operation for specified URL and returns local path to repository root directory
func IsRegistry ¶
IsRegistry return true if path "behaves" like URL to docker registry
Types ¶
type Copy ¶
Copy contains information to copy local path to remote destination
type Definition ¶ added in v0.0.8
type Definition struct {
Service string
Description string
Provider struct {
Name string
Registry string
RegistrySecret string `yaml:"registry-secret"`
PullPolicy string `yaml:"pull-policy"`
Namespace string
Runtime string
Buildtimeout string
Environment map[string]string
EnvSecrets []string `yaml:"env-secrets"`
Annotations map[string]string
}
Repository string
Functions map[string]Function
Include []string
}
Definition represents serverless.yaml file structure
func ParseManifest ¶ added in v0.0.11
func ParseManifest(path string) (Definition, error)
ParseServerless accepts serverless yaml file path and returns decoded structure
func (Definition) Validate ¶ added in v0.0.11
func (definition Definition) Validate() error
type Function ¶
type Function struct {
Handler string
Source string
Revision string
Runtime string
Concurrency int
Buildargs []string
Description string
Labels []string
Environment map[string]string
EnvSecrets []string `yaml:"env-secrets"`
Annotations map[string]string
Events []map[string]interface{}
}
Function describes function definition in serverless format
Click to show internal directories.
Click to hide internal directories.