...
1
2
3
4
5 package ifc
6
7 import (
8 "sigs.k8s.io/kustomize/api/types"
9 "sigs.k8s.io/kustomize/kyaml/yaml"
10 )
11
12
13 type Validator interface {
14 MakeAnnotationValidator() func(map[string]string) error
15 MakeAnnotationNameValidator() func([]string) error
16 MakeLabelValidator() func(map[string]string) error
17 MakeLabelNameValidator() func([]string) error
18 ValidateNamespace(string) []string
19 ErrIfInvalidKey(string) error
20 IsEnvVarName(k string) error
21 }
22
23
24 type KvLoader interface {
25 Validator() Validator
26 Load(args types.KvPairSources) (all []types.Pair, err error)
27 }
28
29
30 type Loader interface {
31
32
33
34 Repo() string
35
36
37 Root() string
38
39
40 New(newRoot string) (Loader, error)
41
42
43 Load(location string) ([]byte, error)
44
45
46 Cleanup() error
47 }
48
49
50
51 type KustHasher interface {
52 Hash(*yaml.RNode) (string, error)
53 }
54
55
56 const SecretTypeOpaque = "Opaque"
57
View as plain text