Commit 8faf915d
8faf915d2cf4Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 2 files ยท +1 added ยท ~1 modified
Description
Split file a bit
Details
- Commit
- 8faf915d2cf4
- Parent
- d442251cddc7
pkg/repo/config.gomodifiedView file
@@ -3,17 +3,9 @@
33
import (44
"errors"55
6-
helm "helm.sh/helm/v3/pkg/cli"76
"helm.sh/helm/v3/pkg/repo"87
)98
10-
type Config interface {11-
In([]Config) bool12-
Install(*helm.EnvSettings, *repo.File) error13-
Name() string14-
URL() string15-
}16-
179
type config struct {1810
repo.Entry `yaml:",inline"`1911
Force bool@@ -25,20 +17,6 @@
2517
2618
func (c *config) URL() string {2719
return c.Entry.URL28-
}29-
30-
func UnmarshalYAML(unmarshal func(interface{}) error) ([]Config, error) {31-
r := make([]*config, 0)32-
if err := unmarshal(&r); err != nil {33-
return nil, err34-
}35-
36-
res := make([]Config, len(r))37-
for i := range r {38-
res[i] = r[i]39-
}40-
41-
return res, nil4220
}4321
4422
var ErrNotFound = errors.New("repository not found")pkg/repo/interface.goaddedView file
Loading diffโฆ