templatefile/pkg/templater/repo-helm.go

26 lines
348 B
Go
Raw Normal View History

2022-06-27 15:58:37 +02:00
package templater
type HelmRepository struct {
2022-06-29 16:18:28 +02:00
Repository
2022-06-27 15:58:37 +02:00
}
func (hr *HelmRepository) Add() error {
return nil
}
func (hr *HelmRepository) Update() error {
return nil
}
func (hr *HelmRepository) Delete() error {
return nil
}
2022-06-29 16:18:28 +02:00
2022-06-27 15:58:37 +02:00
func (hr *HelmRepository) Manage() error {
2022-06-29 16:18:28 +02:00
if hr.Enabled {
return hr.Add()
} else {
return hr.Delete()
}
2022-06-27 15:58:37 +02:00
}