Documentation
¶
Index ¶
- Variables
- func CopyFile(src, dst string) error
- func CopyYAMLFiles(srcDir, destDir string) error
- func CreateCrossplaneObject(config Config, filesDir string, workingDir string) error
- func GenerateFunctionTemplates(outputDir string, newFilePath string)
- func IsClusterScoped(resourceName, apiVersion string) bool
- func ProcessNamespaceFiles(dir string) error
- func RemoveEmptyYAMLFiles(dir string) error
- func RemoveYAMLFiles(dir string) error
- func ResetTerminal()
- func Setup()
- func Templatehelm(config Config, helmExec HelmExecutor) error
- type ClusterScopedResource
- type Config
- type ConfigMap
- type Container
- type DefaultHelmExecutor
- type DeploymentRuntimeConfig
- type DeploymentTemplate
- type HelmExecutor
- type Namespace
- type PodSpec
- type Spec
- type TemplateSpec
- type Volume
- type VolumeMount
Constants ¶
This section is empty.
Variables ¶
View Source
var ForgeLogo = " ____ _ _ _____ \n" +
" / ___| |_ _ ___| |_ ___ _ __ | ___|__ _ __ __ _ ___ \n" +
"| | | | | | / __| __/ _ \\ '__| | |_ / _ \\| '__/ _` |/ _ \\\n" +
"| |___| | |_| \\__ \\ || __/ | | _| (_) | | | (_| | __/\n" +
" \\____|_|\\__,_|___/\\__\\___|_| |_| \\___/|_| \\__, |\\___|\n" +
" |___/ \n"
Functions ¶
func CopyYAMLFiles ¶
func CreateCrossplaneObject ¶
CreateCrossplaneObject reads the output of the SplitYAML function and writes it to a file
func IsClusterScoped ¶
isClusterScoped checks if a given resource is cluster-scoped.
func ProcessNamespaceFiles ¶
func RemoveEmptyYAMLFiles ¶
func RemoveYAMLFiles ¶
func ResetTerminal ¶
func ResetTerminal()
func Templatehelm ¶
func Templatehelm(config Config, helmExec HelmExecutor) error
Types ¶
type ClusterScopedResource ¶
type Config ¶
type Config struct {
HelmChartName string `yaml:"helm-chart-name"`
HelmURL string `yaml:"helm-url"`
Values string `yaml:"values"`
Secrets bool `yaml:"secrets"`
Name string `yaml:"name"`
HelmName string `yaml:"helm-name"`
ManifestURL string `yaml:"manifest-url"`
HelmVersion string `yaml:"helm-version"`
Namespace string `yaml:"namespace"`
SourceFile string `yaml:"sourcefile"`
Filename string
CRDFiles []string
NamespaceFiles []string
SecretFiles []string
ExternalSecretFiles []string
ObjectFiles []string
CastName string
}
func LoadConfig ¶
type Container ¶
type Container struct {
Name string `yaml:"name"`
VolumeMounts []VolumeMount `yaml:"volumeMounts"`
}
type DefaultHelmExecutor ¶
type DefaultHelmExecutor struct{}
func (*DefaultHelmExecutor) RunHelmCommand ¶
type DeploymentRuntimeConfig ¶
type DeploymentTemplate ¶
type DeploymentTemplate struct {
Spec struct {
Selector map[string]string `yaml:"selector"`
Template TemplateSpec `yaml:"template"`
} `yaml:"spec"`
}
type HelmExecutor ¶
type Spec ¶
type Spec struct {
DeploymentTemplate DeploymentTemplate `yaml:"deploymentTemplate"`
}
type TemplateSpec ¶
type TemplateSpec struct {
Spec PodSpec `yaml:"spec"`
}
type VolumeMount ¶
Click to show internal directories.
Click to hide internal directories.