 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package ldiffdiff finds and outputs the difference between two LDIF files.
Index ¶
- Constants
- func Diff(sourceStr, targetStr string, ignoreAttr []string) (string, error)
- func DiffFromFiles(sourceFile, targetFile string, ignoreAttr []string) (string, error)
- func ListDiffDn(sourceStr, targetStr string, ignoreAttr []string) ([]string, error)
- func ListDiffDnFromFiles(sourceFile, targetFile string, ignoreAttr []string) ([]string, error)
- type Action
- type ActionEntry
- type Entries
- type SubAction
- type SubActionAttr
Constants ¶
const Author = "Claudio Ramirez <pub.claudio@gmail.com>"
    const Repo = "https://github.com/nxadm/ldifdiff"
    const Version = "v0.1.0"
    Variables ¶
This section is empty.
Functions ¶
func Diff ¶
Diff compares two LDIF strings (sourceStr and targetStr) and outputs the differences as a LDIF string. An array of attributes can be supplied. These attributes will be ignored when comparing the LDIF strings. The output is a string, a valid LDIF, and can be added to the "target" database (the one that created targetStr) in order to make it equal to the *source* database (the one that created sourceStr). In case of failure, an error is provided.
func DiffFromFiles ¶
DiffFromFiles compares two LDIF files (sourceFile and targetFile) and outputs the differences as a LDIF string. An array of attributes can be supplied. These attributes will be ignored when comparing the LDIF strings. The output is a string, a valid LDIF, and can be added to the "target" database (the one that created targetFile) in order to make it equal to the *source* database (the one that created sourceFile). In case of failure, an error is provided.
func ListDiffDn ¶
ListDiffDn compares two LDIF strings (sourceStr and targetStr) and outputs the differences as a list of affected DNs (Dintinguished Names). An array of attributes can be supplied. These attributes will be ignored when comparing the LDIF strings. The output is a string slice. In case of failure, an error is provided.
func ListDiffDnFromFiles ¶
ListDiffDnFromFiles compares two LDIF files (sourceFile and targetFileStr) and outputs the differences as a list of affected DNs (Dintinguished Names). An array of attributes can be supplied. These attributes will be ignored when comparing the LDIF strings. The output is a string slice. In case of failure, an error is provided.
Types ¶
type ActionEntry ¶
type ActionEntry struct {
	Dn             string
	Action         Action
	SubActionAttrs []SubActionAttr
}