Documentation ¶
Overview ¶
Package cmd contains the cobra command code for each subcommand of the telemetry plugin
Index ¶
Constants ¶
View Source
const ( UpdateCeipOptInFlag = "CEIP-opt-in" UpdateCeipOptOutFlag = "CEIP-opt-out" UpdateEanFlag = "entitlement-account-number" UpdateCspOrgFlag = "csp-org-id" UpdateEnvIsProdFlag = "env-is-prod" )
Update Command Flags
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusCmd ¶
type StatusCmd struct { Cmd *cobra.Command ClientGetter func() (dynamic.Interface, error) // contains filtered or unexported fields }
func NewStatusCmd ¶
func NewStatusCmd(clientGetter func() (dynamic.Interface, error), out component.OutputWriter) *StatusCmd
NewStatusCmd creates a status cmd and injects a function for retrieving a k8s client Allows us to unit test by injecting a fake client
type UpdateCmd ¶
type UpdateCmd struct { Cmd *cobra.Command ClientGetter func() (dynamic.Interface, error) // contains filtered or unexported fields }
func NewUpdateCmd ¶
func NewUpdateCmd(clientGetter func() (dynamic.Interface, error), out component.OutputWriter) *UpdateCmd
NewUpdateCmd creates an update cmd and injects a function for retrieving a k8s client Allows us to unit test by injecting a fake client
Click to show internal directories.
Click to hide internal directories.