Documentation ¶
Index ¶
- Constants
- Variables
- func Cat(c *cli.Context) (err error)
- func Copy(c *cli.Context) (err error)
- func CopyFromImage(image VPImage, imageFile string, hostFile string) error
- func CopyIntoImage(hostFile string, image VPImage, imageFile string) error
- func DumpCommand(c *cli.Context) error
- func Install(c *cli.Context) (err error)
- func Remove(c *cli.Context) (err error)
- func Run(args []string) error
- type ModImageArtifact
- type ModImageBase
- type ModImageRaw
- type ModImageSdimg
- type SigningKey
- type VPDir
- type VPFile
- type VPImage
Constants ¶
View Source
const CustomSubcommandHelpTemplate = `` /* 574-byte string literal not displayed */
SubcommandHelpTemplate is the text template for the subcommand help topic. cli.go uses text/template to render templates. This template is used for sub-commands with one or more required flags present.
View Source
const LatestFormatVersion = 3
LatestFormatVersion is the latest version of the format, which is also what we default to.
Variables ¶
View Source
var Log *logrus.Logger
Log is a global reference to our logger.
View Source
var Version = "unknown"
Version of the mender-artifact CLI tool
Functions ¶
func CopyFromImage ¶
Shortcut to open a file in the image, read from it, and close it again.
func CopyIntoImage ¶
Shortcut to open a file in the image, write into it, and close it again.
func DumpCommand ¶
Types ¶
type ModImageArtifact ¶
type ModImageArtifact struct { ModImageBase // contains filtered or unexported fields }
func (*ModImageArtifact) Close ¶
func (i *ModImageArtifact) Close() error
Closes and repacks the artifact or sdimg.
type ModImageBase ¶
type ModImageBase struct {
// contains filtered or unexported fields
}
type ModImageRaw ¶
type ModImageRaw struct {
ModImageBase
}
func (*ModImageRaw) Close ¶
func (i *ModImageRaw) Close() error
type ModImageSdimg ¶
type ModImageSdimg struct { ModImageBase // contains filtered or unexported fields }
func (*ModImageSdimg) Close ¶
func (i *ModImageSdimg) Close() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.