cmd

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "manifesto",
	Short: "Manage metadata associated with your container images",
	Long: `Store, retrieve and list pieces of metadata alongside your container images in the registry. 
Metadata is associated with specific images (by hash).
	`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ImageMetadataManifesto

type ImageMetadataManifesto struct {
	ImageDigest       string              `json:"image_digest"`
	MetadataManifesto []MetadataManifesto `json:"manifesto"`
}

ImageMetadataManifesto associates a piece of manifesto data with a particular image

type MetadataManifesto

type MetadataManifesto struct {
	Type   string `json:"type"`
	Digest string `json:"digest"`
}

MetadataManifesto gives the type of a piece of arbitrary manifesto data, and the digest where it can be found A given image can only have one current piece of data of each type. Example types might include: "seccomp", "approvals", "contact"

type MetadataManifestoList

type MetadataManifestoList struct {
	Images []ImageMetadataManifesto `json:"images"`
}

MetadataManifestoList holds all the metadata for a given image repository

type Stream

type Stream struct {
	Stream string `json:"stream"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL