Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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"`
Namespace string
Runtime string
Environment map[string]string
EnvSecrets []string `yaml:"env-secrets"`
}
Repository string
Functions map[string]Function
Include []string
}
Definition represents serverless.yaml file structure
func ParseServerlessYAML ¶
func ParseServerlessYAML(path string) (Definition, error)
ParseServerlessYAML accepts serverless yaml file path and returns decoded structure
Click to show internal directories.
Click to hide internal directories.