Add kubectl create [SUBCOMMAND] pattern

This commit is contained in:
derekwaynecarr
2015-10-21 10:41:42 -04:00
parent d3243b8778
commit 5e0948586c
29 changed files with 2576 additions and 17 deletions

View File

@@ -42,6 +42,12 @@ type Generator interface {
ParamNames() []GeneratorParam
}
// StructuredGenerator is an interface for things that can generate API objects not using parameter injection
type StructuredGenerator interface {
// StructuredGenerator creates an API object using pre-configured parameters
StructuredGenerate() (runtime.Object, error)
}
func IsZero(i interface{}) bool {
if i == nil {
return true