Rainbond/pkg/helm/config.go
2021-05-08 16:21:52 +08:00

20 lines
337 B
Go

package helm
import "path"
type Config struct {
helmCache string
}
func (c *Config) RepoFile() string {
return path.Join(c.helmCache, "/repository/repositories.yaml")
}
func (c *Config) RepoCache() string {
return path.Join(c.helmCache, "cache")
}
func (c *Config) ChartCache() string {
return path.Join(c.helmCache, "chart")
}