Documentation ¶
Index ¶
- func NewApplyCmd() *cobra.Command
- func NewClusterCommand() *cobra.Command
- func NewConfigChangeCmd() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewDescribeCmd() *cobra.Command
- func NewGetCmd() *cobra.Command
- func NewInsprCommand(out, err io.Writer, version string) *cobra.Command
- func NewListConfig() *cobra.Command
- type ApplyFactory
- type RunMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterCommand ¶
NewClusterCommand creates cluster command for Inspr CLI
func NewConfigChangeCmd ¶
NewConfigChangeCmd - responsible for changing the values of the insprctl's viper config
func NewDeleteCmd ¶
NewDeleteCmd creates delete command for Inspr CLI
func NewDescribeCmd ¶
NewDescribeCmd creates describe command for Inspr CLI
func NewInsprCommand ¶
NewInsprCommand - returns a root command associated with inspr cli
func NewListConfig ¶
NewListConfig - config subcommand that shows all existent variables in the config
Types ¶
type ApplyFactory ¶
type ApplyFactory struct {
// contains filtered or unexported fields
}
ApplyFactory holds a dictionary that maps all the pairs (kind, apiVersion - encapsulated in the Component Type) to a cobra run method
func GetFactory ¶
func GetFactory() *ApplyFactory
GetFactory returns the ApllyFactory singleton. If it doesn't exist, create one
func (*ApplyFactory) GetRunMethod ¶
func (af *ApplyFactory) GetRunMethod(component meta.Component) (RunMethod, error)
GetRunMethod returns the runMethod registered for the given component. If the component is not found in the dictionary, it returns a ierror
type RunMethod ¶
RunMethod defines the method that will run for the component
func NewApplyAlias ¶
func NewApplyAlias() RunMethod
NewApplyAlias receives a controller AliasInterface and calls it's methods depending on the flags values
func NewApplyApp ¶
func NewApplyApp() RunMethod
NewApplyApp receives a controller AppInterface and calls it's methods depending on the flags values
func NewApplyChannel ¶
func NewApplyChannel() RunMethod
NewApplyChannel receives a controller ChannelInterface and calls it's methods depending on the flags values
func NewApplyType ¶
func NewApplyType() RunMethod
NewApplyType receives a controller TypeInterface and calls it's methods depending on the flags values