Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffProgram ¶
DiffProgram finds and run the diff program. The value of KUBERNETES_EXTERNAL_DIFF environment variable will be used a diff program. By default, `diff(1)` will be used.
func (*DiffProgram) Run ¶
func (d *DiffProgram) Run(from, to string) error
Run runs the detected diff program. `from` and `to` are the directory to diff.
type Directory ¶
type Directory struct {
Name string
}
Directory creates a new temp directory, and allows to easily create new files.
func CreateDirectory ¶
CreateDirectory does create the actual disk directory, and return a new representation of it.
func WriteToDir ¶
func WriteToDir(in resource.ResourceCollection, dirName string, printer Printer) (*Directory, error)
WriteToDir write each object in ResourceCollection to a file named with GroupVersionKindName.
Click to show internal directories.
Click to hide internal directories.