Documentation
¶
Index ¶
Constants ¶
View Source
const ( ManifestDiffOutputFormatText = iota + 1 ManifestDiffOutputFormatMarkdown )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManifestDiff ¶
type ManifestDiff struct {
// contains filtered or unexported fields
}
ManifestDiff represents a change in between two CAS manifests.
func DiffModuleDirectory ¶
func DiffModuleDirectory( ctx context.Context, dirPath string, from string, to string, ) (*ManifestDiff, error)
DiffModuleDirectory computes the diff between two refs or two digests in the module directory at dirPath.
If a state.json file is present, from/to are resolved as ref names against it, otherwise, dirPath is treated as a CAS directory and from/to are manifest filenames directly.
func (*ManifestDiff) String ¶
func (d *ManifestDiff) String(format ManifestDiffOutputFormat) string
String returns the diff output in the given format. On invalid or unknown format, this function defaults to ManifestDiffOutputFormatText.
type ManifestDiffOutputFormat ¶
type ManifestDiffOutputFormat int
ManifestDiffOutputFormat is the format in which a manifest diff can output its results.
Click to show internal directories.
Click to hide internal directories.