constellation/cli/internal/cmd/helmloader.go

22 lines
448 B
Go
Raw Normal View History

/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
2022-08-12 04:20:19 -04:00
package cmd
import "github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
2022-08-12 04:20:19 -04:00
type helmLoader interface {
Load(csp cloudprovider.Provider, conformanceMode bool) ([]byte, error)
2022-08-12 04:20:19 -04:00
}
type stubHelmLoader struct {
loadErr error
}
func (d *stubHelmLoader) Load(csp cloudprovider.Provider, conformanceMode bool) ([]byte, error) {
2022-08-12 04:20:19 -04:00
return nil, d.loadErr
}