Documentation ¶
Index ¶
- Variables
- func DefaultAction(action interface{}) interface{}
- func RandomName() string
- func Wrap(f func(*CLIContext) error) func(context2 *cli.Context) error
- type CLIContext
- func (c *CLIContext) AllNamespaceSet() bool
- func (c *CLIContext) ByID(id 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) GetService(res types.Resource) (*riov1.Service, error)
- func (c *CLIContext) GetSetNamespace() string
- func (c *CLIContext) GetSystemNamespace() string
- func (c *CLIContext) List(typeName string) (ret []runtime.Object, err error)
- func (c *CLIContext) ParseID(id string) types.Resource
- func (c *CLIContext) ParseIDForType(id, resourceType string) types.Resource
- func (c *CLIContext) Quiet() bool
- func (c *CLIContext) Rm(ids ...string) error
- func (c *CLIContext) Store(data map[string]interface{})
- func (c *CLIContext) Update(name 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) WithWriter(writer io.Writer)
- func (c *CLIContext) Writer() io.Writer
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConfig = errors.New("Can not find rio info resource inside your cluster. Have you installed Rio?(run `rio install --help`)")
Functions ¶
func DefaultAction ¶
func DefaultAction(action interface{}) interface{}
func RandomName ¶ added in v0.6.0
func RandomName() string
Types ¶
type CLIContext ¶
func Lookup ¶
func Lookup(data map[string]interface{}) *CLIContext
func (*CLIContext) AllNamespaceSet ¶ added in v0.6.0
func (c *CLIContext) AllNamespaceSet() bool
func (*CLIContext) DeleteResource ¶
func (c *CLIContext) DeleteResource(r types.Resource) (err error)
func (*CLIContext) Format ¶
func (c *CLIContext) Format() string
func (*CLIContext) GetService ¶ added in v0.6.0
func (*CLIContext) GetSetNamespace ¶
func (c *CLIContext) GetSetNamespace() string
func (*CLIContext) GetSystemNamespace ¶
func (c *CLIContext) GetSystemNamespace() string
func (*CLIContext) List ¶
func (c *CLIContext) List(typeName string) (ret []runtime.Object, err error)
func (*CLIContext) ParseIDForType ¶ added in v0.6.0
func (c *CLIContext) ParseIDForType(id, resourceType string) types.Resource
func (*CLIContext) Quiet ¶
func (c *CLIContext) Quiet() bool
func (*CLIContext) Rm ¶ added in v0.6.0
func (c *CLIContext) Rm(ids ...string) error
func (*CLIContext) Store ¶
func (c *CLIContext) Store(data map[string]interface{})
func (*CLIContext) UpdateObject ¶
func (c *CLIContext) UpdateObject(obj runtime.Object) (err error)
func (*CLIContext) UpdateResource ¶
func (*CLIContext) WithWriter ¶ added in v0.3.0
func (c *CLIContext) WithWriter(writer io.Writer)
func (*CLIContext) Writer ¶
func (c *CLIContext) Writer() io.Writer
type Config ¶
type Config struct { AllNamespace bool ShowSystemNamespace bool 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 Apps appsv1.AppsV1Interface Build tektonv1alpha1.TektonV1alpha1Interface Rio riov1.RioV1Interface Project projectv1.AdminV1Interface Mgmt v3.ManagementV3Interface Gitwatcher webhookv1.GitwatcherV1Interface NoPrompt bool Writer io.Writer DebugLevel string }
Click to show internal directories.
Click to hide internal directories.