Documentation ¶
Index ¶
- func CmdExec(baseCmd string, args ...string) (string, error)
- func ConcatenateYAMLs(yamls [][]byte) []byte
- func ExactMatch(pattern, value string) bool
- func ExactMatchWithPatternArray(value string, patternArray []string) bool
- func FindSingleYaml(concatYamlBytes []byte, apiVersion, kind, name, namespace string) (bool, []byte)
- func FindYAMLsInDir(dirPath string) ([][]byte, error)
- func GenerateConcatYAMLsFromImage(img v1.Image) ([]byte, error)
- func GetAnnotationsInYAML(yamlBytes []byte) map[string]string
- func GetBlob(layer v1.Layer) ([]byte, error)
- func GetNameInfoFromCert(cert *x509.Certificate) string
- func GetUnionOfArrays(array1, array2 []string) []string
- func MatchBigInt(pattern string, value *big.Int) bool
- func MatchPattern(pattern, value string) bool
- func MatchPatternWithArray(pattern string, valueArray []string) bool
- func MatchSinglePattern(pattern, value string) bool
- func MatchWithPatternArray(value string, patternArray []string) bool
- func PullImage(imageRef string) (v1.Image, error)
- func SplitConcatYAMLs(yaml []byte) [][]byte
- func SplitRule(rules string) []string
- func TarGzCompress(src string, buf io.Writer) error
- func TarGzDecompress(src io.Reader, dst string) error
- type ResourceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatenateYAMLs ¶
func ExactMatch ¶
func FindSingleYaml ¶
func FindYAMLsInDir ¶
func GetAnnotationsInYAML ¶
func GetNameInfoFromCert ¶
func GetNameInfoFromCert(cert *x509.Certificate) string
TODO: support other attributes
func GetUnionOfArrays ¶
func MatchPattern ¶
func MatchPatternWithArray ¶
func MatchSinglePattern ¶
func MatchWithPatternArray ¶
func SplitConcatYAMLs ¶
Types ¶
type ResourceInfo ¶
type ResourceInfo struct {
// contains filtered or unexported fields
}
func (ResourceInfo) Map ¶
func (ri ResourceInfo) Map() map[string]string
Click to show internal directories.
Click to hide internal directories.