test
This commit is contained in:
@@ -4,20 +4,6 @@ import (
|
||||
// "fmt"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
type HelmStatus struct {
|
||||
Name string // Nom
|
||||
command HelmCommandInterface
|
||||
}
|
||||
|
||||
func (this *HelmStatus) New(bin string) {
|
||||
this.command = RealHelmCommand{Bin: bin}
|
||||
}
|
||||
|
||||
func (this *HelmStatus) NewMock(mock HelmCommandInterface) {
|
||||
this.command = mock
|
||||
}
|
||||
|
||||
////
|
||||
|
||||
type parseStatusInfoResourcesMetadata struct {
|
||||
@@ -57,11 +43,11 @@ type parseStatus struct {
|
||||
Info parseStatusInfo `json:"info"`
|
||||
}
|
||||
|
||||
func (this HelmStatus) getRessources() (map[string]string, error) {
|
||||
func (this HelmCommand) GetRessources(data HelmChart) (map[string]string, error) {
|
||||
|
||||
res := make(map[string]string)
|
||||
|
||||
status, err := this.command.Status(this.Name)
|
||||
status, err := this.Status(data)
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user