Documentation ¶
Index ¶
- func GetPrefixedName(pbName, objName string) string
- func LogAndReturnError(errormsg string) error
- func ParseBundle(contentDom *xmlquery.Node, pb *cmpv1alpha1.ProfileBundle, pcfg *ParserConfig) error
- func ParseProfilesAndDo(contentDom *xmlquery.Node, pb *cmpv1alpha1.ProfileBundle, nonce string, ...) error
- func ParseRulesAndDo(contentDom *xmlquery.Node, stdParser *referenceParser, ...) error
- func ParseVariablesAndDo(contentDom *xmlquery.Node, pb *cmpv1alpha1.ProfileBundle, nonce string, ...) error
- type ParserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrefixedName ¶
func LogAndReturnError ¶
func ParseBundle ¶
func ParseBundle(contentDom *xmlquery.Node, pb *cmpv1alpha1.ProfileBundle, pcfg *ParserConfig) error
func ParseProfilesAndDo ¶
func ParseProfilesAndDo(contentDom *xmlquery.Node, pb *cmpv1alpha1.ProfileBundle, nonce string, action func(p *cmpv1alpha1.Profile) error) error
func ParseRulesAndDo ¶
func ParseRulesAndDo(contentDom *xmlquery.Node, stdParser *referenceParser, pb *cmpv1alpha1.ProfileBundle, nonce string, action func(p *cmpv1alpha1.Rule) error) error
func ParseVariablesAndDo ¶
func ParseVariablesAndDo(contentDom *xmlquery.Node, pb *cmpv1alpha1.ProfileBundle, nonce string, action func(v *cmpv1alpha1.Variable) error) error
Types ¶
type ParserConfig ¶
type ParserConfig struct { DataStreamPath string ProfileBundleKey types.NamespacedName Client runtimeclient.Client Scheme *k8sruntime.Scheme }
Click to show internal directories.
Click to hide internal directories.