Documentation ¶
Overview ¶
* 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. * * Copyright 2023 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. * * Copyright 2023 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. * * Copyright 2023 Red Hat, Inc. *
Index ¶
- Variables
- func CleanIniSections(config string) string
- func CompareFiles(origin string, dest string, print bool, verbose bool, iniFilters []string) ([]string, error)
- func CompareFilesFromRemote(origin string, dest string, originRemoteCmd string, destRemoteCmd string, ...) error
- func CompareIni(rawdata1 []byte, rawdata2 []byte, origin string, dest string, verbose bool, ...) ([]string, error)
- func CompareJSON(orgData, destData interface{}, path string) ([]string, error)
- func CompareJSONFiles(origin []byte, dest []byte) ([]string, error)
- func CompareRawData(rawdata1 []byte, rawdata2 []byte, origin string, dest string) ([]string, error)
- func CompareYAML(origin []byte, dest []byte) ([]string, error)
- func FilesEqual(file1, file2 string) (bool, error)
- func GetConfigFromRemote(remoteCmd string, configPath string) ([]byte, error)
- func PrintReport(report []string) error
- func WriteReport(content []string, reportPath string) error
- type GoDiffDataStruct
Constants ¶
This section is empty.
Variables ¶
var Green = "\033[32m"
var Red = "\033[31m"
var Reset = "\033[0m"
Functions ¶
func CleanIniSections ¶
func CompareFiles ¶
func CompareFilesFromRemote ¶
func CompareIni ¶
func CompareJSON ¶
func CompareRawData ¶
func FilesEqual ¶
func GetConfigFromRemote ¶
func PrintReport ¶
func WriteReport ¶
Types ¶
type GoDiffDataStruct ¶
type GoDiffDataStruct struct { Origin string Destination string // contains filtered or unexported fields }
func (*GoDiffDataStruct) Process ¶
func (p *GoDiffDataStruct) Process(dir1 string, dir2 string) error
func (*GoDiffDataStruct) ProcessDirectories ¶
func (p *GoDiffDataStruct) ProcessDirectories(reverse bool) error