Documentation ¶
Overview ¶
Copyright © 2020 Red Hat Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func ComplianceOperatorRootCA(certname string, expire int) ([]byte, []byte, error)
- func GetFirstNodeRole(nodeSelector map[string]string) string
- func GetFirstNodeRoleLabel(nodeSelector map[string]string) string
- func GetNodeRoleSelector(role string) map[string]string
- func NewClientCert(caCert, caKey []byte, certname string, expire int) ([]byte, []byte, error)
- func NewServerCert(caCert, caKey []byte, certname string, expire int) ([]byte, []byte, error)
- func ParseRemediationFromContentAndResults(scheme *runtime.Scheme, scanName string, namespace string, dsDom *XMLDocument, ...) ([]*compv1alpha1.ComplianceRemediation, error)
- type XMLDocument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFirstNodeRole ¶
func GetFirstNodeRoleLabel ¶
func GetNodeRoleSelector ¶
func NewClientCert ¶
func NewServerCert ¶
func ParseRemediationFromContentAndResults ¶
func ParseRemediationFromContentAndResults(scheme *runtime.Scheme, scanName string, namespace string, dsDom *XMLDocument, resultsReader io.Reader) ([]*compv1alpha1.ComplianceRemediation, error)
ParseRemediationFromContentAndResults parses the content DS and the results from the scan, and generates the necessary remediations
Types ¶
type XMLDocument ¶
type XMLDocument struct {
*xmldom.Document
}
XMLDocument is a wrapper that keeps the interface XML-parser-agnostic
func ParseContent ¶
func ParseContent(dsReader io.Reader) (*XMLDocument, error)
ParseContent parses the DataStream and returns the XML document