Documentation
¶
Index ¶
- Variables
- func DefaultAction(action interface{}) interface{}
- func Wrap(f func(*CLIContext) error) func(context2 *cli.Context) error
- type CLIContext
- func (c *CLIContext) ByID(namespace, name string, typeName string) (types.Resource, error)
- func (c *CLIContext) Create(obj runtime.Object) (err error)
- func (c *CLIContext) DeleteResource(r types.Resource) (err error)
- func (c *CLIContext) Format() string
- func (c *CLIContext) GetDefaultNamespace() string
- func (c *CLIContext) GetSetNamespace() string
- func (c *CLIContext) GetSystemNamespace() string
- func (c *CLIContext) IDs() bool
- func (c *CLIContext) List(typeName string) (ret []runtime.Object, err error)
- func (c *CLIContext) MultiCreate(objs ...runtime.Object) error
- func (c *CLIContext) Quiet() bool
- func (c *CLIContext) Store(data map[string]interface{})
- func (c *CLIContext) Update(name, typeName string, updater func(obj runtime.Object) error) error
- func (c *CLIContext) UpdateObject(obj runtime.Object) (err error)
- func (c *CLIContext) UpdateResource(r types.Resource, updater func(obj runtime.Object) error) error
- func (c *CLIContext) Writer() io.Writer
- type Config
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DefaultAction ¶
func DefaultAction(action interface{}) interface{}
Types ¶
type CLIContext ¶
func Lookup ¶
func Lookup(data map[string]interface{}) *CLIContext
func (*CLIContext) ByID ¶
func (*CLIContext) Create ¶
func (c *CLIContext) Create(obj runtime.Object) (err error)
func (*CLIContext) DeleteResource ¶
func (c *CLIContext) DeleteResource(r types.Resource) (err error)
func (*CLIContext) Format ¶
func (c *CLIContext) Format() string
func (*CLIContext) GetDefaultNamespace ¶
func (c *CLIContext) GetDefaultNamespace() string
func (*CLIContext) GetSetNamespace ¶
func (c *CLIContext) GetSetNamespace() string
func (*CLIContext) GetSystemNamespace ¶
func (c *CLIContext) GetSystemNamespace() string
func (*CLIContext) IDs ¶
func (c *CLIContext) IDs() bool
func (*CLIContext) List ¶
func (c *CLIContext) List(typeName string) (ret []runtime.Object, err error)
func (*CLIContext) MultiCreate ¶
func (c *CLIContext) MultiCreate(objs ...runtime.Object) error
func (*CLIContext) Quiet ¶
func (c *CLIContext) Quiet() bool
func (*CLIContext) Store ¶
func (c *CLIContext) Store(data map[string]interface{})
func (*CLIContext) Update ¶
func (*CLIContext) UpdateObject ¶
func (c *CLIContext) UpdateObject(obj runtime.Object) (err error)
func (*CLIContext) UpdateResource ¶
func (*CLIContext) Writer ¶
func (c *CLIContext) Writer() io.Writer
type Config ¶
type Config struct {
SystemNamespace string
DefaultNamespace string
Kubeconfig string
Debug bool
Wait bool
WaitTimeout int
WaitState string
Apply apply.Apply
RestConfig *rest.Config
K8s *kubernetes.Clientset
Core corev1.CoreV1Interface
Rio riov1.RioV1Interface
Project projectv1.ProjectV1Interface
}
func (*Config) KubectlCmd ¶
Source Files
¶
- byid.go
- clicontext.go
- config.go
- crud.go
- kubectl.go
- table.go
- types.go
Click to show internal directories.
Click to hide internal directories.