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 ¶
AddAddressFlag adds the address flag to the passed cobra command.
func AddComponentPathFlag ¶
AddComponentPathFlag adds the path-to-component flag to the passed cobra command.
func AddConfigFileFlag ¶
AddConfigFileFlag adds the config file flag to the passed cobra command.
func AddInputPathFile ¶
AddInputPathFile adds the input file with object flag to the passed cobra command.
func AddOutputFileFlag ¶
AddOutputFileFlag adds the output file flag to the passed cobra command.
func AddPayloadOnlyFlag ¶
func PrintObjectHeader ¶
PrintObjectHeader prints passed object's header fields via the passed cobra command. Does nothing with the payload.
func PrintStorageObjectStatus ¶
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.