Documentation ¶
Index ¶
- func AddAddressFlag(cmd *cobra.Command, v *string)
- func AddComponentPathFlag(cmd *cobra.Command, v *string)
- func AddConfigFileFlag(cmd *cobra.Command, v *string)
- func AddInputPathFile(cmd *cobra.Command, v *string)
- func AddOutputFileFlag(cmd *cobra.Command, v *string)
- func AddPayloadOnlyFlag(cmd *cobra.Command, v *bool)
- func Errf(errFmt string, err error) error
- func ExitOnErr(cmd *cobra.Command, err error)
- func PrintObjectHeader(cmd *cobra.Command, h object.Object)
- func PrintStorageObjectStatus(cmd *cobra.Command, status engine.ObjectStatus)
- func WriteObjectToFile(cmd *cobra.Command, path string, data []byte, payloadOnly bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAddressFlag ¶ added in v0.32.0
AddAddressFlag adds the address flag to the passed cobra command.
func AddComponentPathFlag ¶ added in v0.32.0
AddComponentPathFlag adds the path-to-component flag to the passed cobra command.
func AddConfigFileFlag ¶ added in v0.38.0
AddConfigFileFlag adds the config file flag to the passed cobra command.
func AddInputPathFile ¶ added in v0.38.0
AddInputPathFile adds the input file with object flag to the passed cobra command.
func AddOutputFileFlag ¶ added in v0.32.0
AddOutputFileFlag adds the output file flag to the passed cobra command.
func AddPayloadOnlyFlag ¶ added in v0.38.0
func PrintObjectHeader ¶ added in v0.32.0
PrintObjectHeader prints passed object's header fields via the passed cobra command. Does nothing with the payload.
func PrintStorageObjectStatus ¶ added in v0.39.0
func PrintStorageObjectStatus(cmd *cobra.Command, status engine.ObjectStatus)
PrintStorageObjectStatus prints object status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.