Documentation
¶
Index ¶
- Variables
- func NewAnnotationsValue(anns map[string]string) uitable.Value
- func NewConditionsValue(conditions duckv1alpha1.Conditions) uitable.Value
- type CancelSignals
- type ConditionsTable
- type ConfigFactory
- type ConfigFactoryImpl
- func (f *ConfigFactoryImpl) ConfigureContextResolver(resolverFunc func() (string, error))
- func (f *ConfigFactoryImpl) ConfigurePathResolver(resolverFunc func() (string, error))
- func (f *ConfigFactoryImpl) DefaultNamespace() (string, error)
- func (f *ConfigFactoryImpl) RESTConfig() (*rest.Config, error)
- type DepsFactory
- type DepsFactoryImpl
- type FlagsFactory
- type GenerateNameFlags
- type KubeconfigContextFlag
- type KubeconfigFlags
- type KubeconfigPathFlag
- type NamespaceFlags
- type NamespaceNameFlag
- type UIFlags
- type ValueAge
- type ValueUnknownBool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ListAliases = []string{"l", "ls"} DeleteAliases = []string{"del"} )
View Source
var ( BasicHelpGroup = cobrautil.HelpSection{ Key: cmdGroupKey, Value: "basic", Title: "Basic Commands:", } BuildMgmtHelpGroup = cobrautil.HelpSection{ Key: cmdGroupKey, Value: "build-mgmt", Title: "Build Management Commands:", } SecretMgmtHelpGroup = cobrautil.HelpSection{ Key: cmdGroupKey, Value: "secret-mgmt", Title: "Secret Management Commands:", } RouteMgmtHelpGroup = cobrautil.HelpSection{ Key: cmdGroupKey, Value: "route-mgmt", Title: "Route Management Commands:", } OtherHelpGroup = cobrautil.HelpSection{ Key: cmdGroupKey, Value: "other", Title: "Other Commands:", } SystemHelpGroup = cobrautil.HelpSection{ Key: cmdGroupKey, Value: "system", Title: "System Commands:", } RestOfCommandsHelpGroup = cobrautil.HelpSection{ Key: cmdGroupKey, Value: "", Title: "Available Commands:", } )
Functions ¶
func NewConditionsValue ¶ added in v0.1.0
func NewConditionsValue(conditions duckv1alpha1.Conditions) uitable.Value
Types ¶
type CancelSignals ¶
type CancelSignals struct{}
func (CancelSignals) Watch ¶
func (CancelSignals) Watch(stopFunc func())
type ConditionsTable ¶ added in v0.1.0
type ConditionsTable struct {
// contains filtered or unexported fields
}
func NewConditionsTable ¶ added in v0.1.0
func NewConditionsTable(conditions duckv1alpha1.Conditions) ConditionsTable
func (ConditionsTable) Print ¶ added in v0.1.0
func (t ConditionsTable) Print(ui ui.UI)
type ConfigFactory ¶
type ConfigFactoryImpl ¶
type ConfigFactoryImpl struct {
// contains filtered or unexported fields
}
func NewConfigFactoryImpl ¶
func NewConfigFactoryImpl() *ConfigFactoryImpl
func (*ConfigFactoryImpl) ConfigureContextResolver ¶
func (f *ConfigFactoryImpl) ConfigureContextResolver(resolverFunc func() (string, error))
func (*ConfigFactoryImpl) ConfigurePathResolver ¶
func (f *ConfigFactoryImpl) ConfigurePathResolver(resolverFunc func() (string, error))
func (*ConfigFactoryImpl) DefaultNamespace ¶
func (f *ConfigFactoryImpl) DefaultNamespace() (string, error)
func (*ConfigFactoryImpl) RESTConfig ¶
func (f *ConfigFactoryImpl) RESTConfig() (*rest.Config, error)
type DepsFactory ¶
type DepsFactory interface { ServingClient() (servingclientset.Interface, error) BuildClient() (buildclientset.Interface, error) CoreClient() (kubernetes.Interface, error) }
func NewDepsFactory ¶
func NewDepsFactory() DepsFactory
type DepsFactoryImpl ¶
type DepsFactoryImpl struct {
// contains filtered or unexported fields
}
func NewDepsFactoryImpl ¶
func NewDepsFactoryImpl(configFactory ConfigFactory) *DepsFactoryImpl
func (*DepsFactoryImpl) BuildClient ¶
func (f *DepsFactoryImpl) BuildClient() (buildclientset.Interface, error)
func (*DepsFactoryImpl) CoreClient ¶
func (f *DepsFactoryImpl) CoreClient() (kubernetes.Interface, error)
func (*DepsFactoryImpl) ServingClient ¶
func (f *DepsFactoryImpl) ServingClient() (servingclientset.Interface, error)
type FlagsFactory ¶
type FlagsFactory struct {
// contains filtered or unexported fields
}
func NewFlagsFactory ¶
func NewFlagsFactory(configFactory ConfigFactory, depsFactory DepsFactory) FlagsFactory
func (FlagsFactory) NewNamespaceNameFlag ¶
func (f FlagsFactory) NewNamespaceNameFlag(str *string) *NamespaceNameFlag
type GenerateNameFlags ¶
type GenerateNameFlags struct {
GenerateName bool
}
func (*GenerateNameFlags) Apply ¶
func (s *GenerateNameFlags) Apply(meta metav1.ObjectMeta) metav1.ObjectMeta
func (*GenerateNameFlags) Set ¶
func (s *GenerateNameFlags) Set(cmd *cobra.Command, flagsFactory FlagsFactory)
type KubeconfigContextFlag ¶
type KubeconfigContextFlag struct {
// contains filtered or unexported fields
}
func NewKubeconfigContextFlag ¶
func NewKubeconfigContextFlag() *KubeconfigContextFlag
func (*KubeconfigContextFlag) Resolve ¶
func (s *KubeconfigContextFlag) Resolve() error
func (*KubeconfigContextFlag) Set ¶
func (s *KubeconfigContextFlag) Set(val string) error
func (*KubeconfigContextFlag) String ¶
func (s *KubeconfigContextFlag) String() string
func (*KubeconfigContextFlag) Type ¶
func (s *KubeconfigContextFlag) Type() string
func (*KubeconfigContextFlag) Value ¶
func (s *KubeconfigContextFlag) Value() (string, error)
type KubeconfigFlags ¶
type KubeconfigFlags struct { Path *KubeconfigPathFlag Context *KubeconfigContextFlag }
func (*KubeconfigFlags) Set ¶
func (f *KubeconfigFlags) Set(cmd *cobra.Command, flagsFactory FlagsFactory)
type KubeconfigPathFlag ¶
type KubeconfigPathFlag struct {
// contains filtered or unexported fields
}
func NewKubeconfigPathFlag ¶
func NewKubeconfigPathFlag() *KubeconfigPathFlag
func (*KubeconfigPathFlag) Resolve ¶
func (s *KubeconfigPathFlag) Resolve() error
func (*KubeconfigPathFlag) Set ¶
func (s *KubeconfigPathFlag) Set(val string) error
func (*KubeconfigPathFlag) String ¶
func (s *KubeconfigPathFlag) String() string
func (*KubeconfigPathFlag) Type ¶
func (s *KubeconfigPathFlag) Type() string
func (*KubeconfigPathFlag) Value ¶
func (s *KubeconfigPathFlag) Value() (string, error)
type NamespaceFlags ¶
type NamespaceFlags struct {
Name string
}
func (*NamespaceFlags) Set ¶
func (s *NamespaceFlags) Set(cmd *cobra.Command, flagsFactory FlagsFactory)
type NamespaceNameFlag ¶
type NamespaceNameFlag struct {
// contains filtered or unexported fields
}
func NewNamespaceNameFlag ¶
func NewNamespaceNameFlag(value *string, configFactory ConfigFactory) *NamespaceNameFlag
func (*NamespaceNameFlag) Resolve ¶
func (s *NamespaceNameFlag) Resolve() error
func (*NamespaceNameFlag) Set ¶
func (s *NamespaceNameFlag) Set(val string) error
func (*NamespaceNameFlag) String ¶
func (s *NamespaceNameFlag) String() string
func (*NamespaceNameFlag) Type ¶
func (s *NamespaceNameFlag) Type() string
type UIFlags ¶
func (*UIFlags) ConfigureUI ¶
type ValueAge ¶
func NewValueAge ¶
type ValueUnknownBool ¶
type ValueUnknownBool struct {
B *bool
}
func NewValueUnknownBool ¶
func NewValueUnknownBool(b *bool) ValueUnknownBool
func (ValueUnknownBool) String ¶
func (t ValueUnknownBool) String() string
func (ValueUnknownBool) Value ¶
func (t ValueUnknownBool) Value() uitable.Value
Click to show internal directories.
Click to hide internal directories.