Many fixes and enhancements: - Add icon option - Add env file managment - Ordering compose parsing options - Fix path with underscores - Fix image and tag discovery - Better documentation for labels
22 lines
625 B
Go
22 lines
625 B
Go
package labelStructs
|
|
|
|
import "gopkg.in/yaml.v3"
|
|
|
|
// Dependency is a dependency of a chart to other charts.
|
|
type Dependency struct {
|
|
Values map[string]any `yaml:"-"`
|
|
Name string `yaml:"name"`
|
|
Version string `yaml:"version"`
|
|
Repository string `yaml:"repository"`
|
|
Alias string `yaml:"alias,omitempty"`
|
|
}
|
|
|
|
// DependenciesFrom returns a slice of dependencies from the given string.
|
|
func DependenciesFrom(data string) ([]Dependency, error) {
|
|
var mapping []Dependency
|
|
if err := yaml.Unmarshal([]byte(data), &mapping); err != nil {
|
|
return nil, err
|
|
}
|
|
return mapping, nil
|
|
}
|