{"modulePath":"github.com/databus23/helm-diff/v3","version":"v3.15.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package diff\n\n## Constants\n\n```go\nconst (\n\t// DiffToolEnvVar holds the diff tool command line when no flag is given.\n\t// Setting it is by itself a request to render the diff with that command.\n\tDiffToolEnvVar = \"HELM_DIFF_TOOL\"\n)\n```\n\n## Functions\n\n```go\nfunc Manifests(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options, to io.Writer) bool\n```\nManifests diff on manifests\n\n```go\nfunc ManifestsOwnership(oldIndex, newIndex map[string]*manifest.MappingResult, newOwnedReleases map[string]OwnershipDiff, options *Options, to io.Writer) bool\n```\n\n```go\nfunc Releases(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options, to io.Writer) bool\n```\nReleases reindex the content  based on the template names and pass it to Manifests\n\n## Types\n\n```go\ntype ChangeStyle struct {\n\t// contains filtered or unexported fields\n}\n```\nChangeStyle for styling the report\n\n```go\ntype FieldChange struct {\n\tPath     string      `json:\"path,omitempty\"`\n\tField    string      `json:\"field,omitempty\"`\n\tChange   string      `json:\"change\"`\n\tOldValue interface{} `json:\"oldValue,omitempty\"`\n\tNewValue interface{} `json:\"newValue,omitempty\"`\n}\n```\nFieldChange stores a JSON-Pointer path and the change that occurred.\n\n```go\ntype Options struct {\n\tOutputFormat              string\n\tOutputContext             int\n\tStripTrailingCR           bool\n\tShowSecrets               bool\n\tShowSecretsDecoded        bool\n\tSuppressedKinds           []string\n\tFindRenames               float32\n\tSuppressedOutputLineRegex []string\n\tDiffToolCommand           string\n\t// contains filtered or unexported fields\n}\n```\nOptions are all the options to be passed to generate a diff\n\n```go\nfunc (o *Options) DiffTool() bool\n```\nDiffTool reports whether the diff is rendered by an external tool, requested either with --diff-tool or through the HELM\\_DIFF\\_TOOL environment variable. The external tool overrides the built-in outputs, except that an explicit flag supersedes the environment variable (see IgnoreDiffToolEnvVar).\n\n```go\nfunc (o *Options) IgnoreDiffToolEnvVar()\n```\nIgnoreDiffToolEnvVar stops the HELM\\_DIFF\\_TOOL environment variable from being consulted. It implements the \"explicit flag over environment\" precedence: a command requested with --diff-tool is authoritative even when empty, and an explicitly requested built-in output must not be silently overridden by a variable inherited e.g. from a shell profile.\n\n```go\nfunc (o *Options) StructuredOutput() bool\n```\nStructuredOutput returns true when the structured JSON output is requested except when using a diff tool, whose input is the line diffs that structured output skips.\n\n```go\ntype OwnershipDiff struct {\n\tOldRelease string\n\tNewRelease string\n}\n```\n\n```go\ntype Report struct {\n\tEntries []ReportEntry\n\t// contains filtered or unexported fields\n}\n```\nReport to store report data and format\n\n```go\nfunc ManifestReport(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options) (*Report, error)\n```\n\n```go\ntype ReportEntry struct {\n\tKey             string\n\tSuppressedKinds []string\n\tKind            string\n\tContext         int\n\tDiffs           []difflib.DiffRecord\n\tChangeType      string\n\tStructured      *StructuredEntry\n}\n```\nReportEntry to store changes between releases\n\n```go\ntype ReportFormat struct {\n\t// contains filtered or unexported fields\n}\n```\nReportFormat to the context to make a changes report\n\n```go\ntype ReportTemplateSpec struct {\n\tNamespace string\n\tName      string\n\tKind      string\n\tAPI       string\n\tChange    string\n}\n```\nReportTemplateSpec for common template spec\n\n```go\ntype ResourceStatus struct {\n\tOldExists bool `json:\"oldExists\"`\n\tNewExists bool `json:\"newExists\"`\n}\n```\nResourceStatus indicates whether manifests existed before or after the diff.\n\n```go\ntype StructuredEntry struct {\n\tAPIVersion        string         `json:\"apiVersion,omitempty\"`\n\tKind              string         `json:\"kind,omitempty\"`\n\tNamespace         string         `json:\"namespace,omitempty\"`\n\tName              string         `json:\"name,omitempty\"`\n\tChangeType        string         `json:\"changeType,omitempty\"`\n\tResourceStatus    ResourceStatus `json:\"resourceStatus\"`\n\tChanges           []FieldChange  `json:\"changes,omitempty\"`\n\tChangesSuppressed bool           `json:\"changesSuppressed,omitempty\"`\n}\n```\nStructuredEntry captures machine-readable diff information for a resource.\n\n","path":"github.com/databus23/helm-diff/v3/diff","name":"diff","synopsis":"","isRedistributable":true}
