kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/diff/diff.go

var diffLong

var diffExample

const maxRetries

const sensitiveMaskDefault

const sensitiveMaskBefore

const sensitiveMaskAfter

// diffError returns the ExitError if the status code is less than 1,
// nil otherwise.
func diffError(err error) exec.ExitError {}

type DiffOptions

func NewDiffOptions(ioStreams genericiooptions.IOStreams) *DiffOptions {}

func NewCmdDiff(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command {}

type DiffProgram

func (d *DiffProgram) getCommand(args ...string) (string, exec.Cmd) {}

// Run runs the detected diff program. `from` and `to` are the directory to diff.
func (d *DiffProgram) Run(from, to string) error {}

type Printer

// Print the object inside the writer w.
func (p *Printer) Print(obj runtime.Object, w io.Writer) error {}

type DiffVersion

// NewDiffVersion creates a new DiffVersion with the named version.
func NewDiffVersion(name string) (*DiffVersion, error) {}

func (v *DiffVersion) getObject(obj Object) (runtime.Object, error) {}

// Print prints the object using the printer into a new file in the directory.
func (v *DiffVersion) Print(name string, obj runtime.Object, printer Printer) error {}

type Directory

// CreateDirectory does create the actual disk directory, and return a
// new representation of it.
func CreateDirectory(prefix string) (*Directory, error) {}

// NewFile creates a new file in the directory.
func (d *Directory) NewFile(name string) (*os.File, error) {}

// Delete removes the directory recursively.
func (d *Directory) Delete() error {}

type Object

type InfoObject

var _

// Returns the live version of the object
func (obj InfoObject) Live() runtime.Object {}

// Returns the "merged" object, as it would look like if applied or
// created.
func (obj InfoObject) Merged() (runtime.Object, error) {}

func (obj InfoObject) Name() string {}

// toUnstructured converts a runtime.Object into an unstructured.Unstructured object.
func toUnstructured(obj runtime.Object) (*unstructured.Unstructured, error) {}

type Masker

func NewMasker(from, to runtime.Object) (*Masker, error) {}

// dataFromUnstructured returns the underlying nested map in the data key.
func (m Masker) dataFromUnstructured(u *unstructured.Unstructured) (map[string]interface{}

// run compares and patches sensitive values.
func (m *Masker) run() error {}

// From returns the masked version of the 'from' object.
func (m *Masker) From() runtime.Object {}

// To returns the masked version of the 'to' object.
func (m *Masker) To() runtime.Object {}

type Differ

func NewDiffer(from, to string) (*Differ, error) {}

// Diff diffs to versions of a specific object, and print both versions to directories.
func (d *Differ) Diff(obj Object, printer Printer, showManagedFields bool) error {}

func omitManagedFields(o runtime.Object) runtime.Object {}

// Run runs the diff program against both directories.
func (d *Differ) Run(diff *DiffProgram) error {}

// TearDown removes both temporary directories recursively.
func (d *Differ) TearDown() {}

func isConflict(err error) bool {}

func (o *DiffOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {}

// Run uses the factory to parse file arguments, find the version to
// diff, and find each Info object for each files, and runs against the
// differ.
func (o *DiffOptions) Run() error {}

// Validate makes sure provided values for DiffOptions are valid
func (o *DiffOptions) Validate() error {}

func getObjectName(obj runtime.Object) (string, error) {}