manifest if

This commit is contained in:
kkb0318
2024-04-09 22:12:18 +09:00
parent 50d342f457
commit 0a81afa3f1
4 changed files with 23 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package manifests
import (
"context"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
)
type Handler interface {
Apply(ctx context.Context, obj *unstructured.Unstructured) error
Delete(ctx context.Context, obj *unstructured.Unstructured) error
}
@@ -0,0 +1 @@
package manifests
+2
View File
@@ -1 +1,3 @@
package manifests package manifests
// TODO: get keys from oidc, and create secret struct
+8
View File
@@ -0,0 +1,8 @@
package manifests
import "context"
type Manifest interface {
Apply(ctx context.Context, handler Handler) error
Delete(ctx context.Context, handler Handler) error
}