Documentation ¶
Index ¶
- func EnumImage(reg string, repo string, tag string, options ...crane.Option) <-chan *ImageData
- func EnumRegistries(regs []string, repos []string, tags []string, options ...crane.Option) <-chan *ImageData
- func EnumRegistry(reg string, repos []string, tags []string, options ...crane.Option) <-chan *ImageData
- func EnumRepository(reg string, repo string, tags []string, options ...crane.Option) <-chan *ImageData
- func MakeCraneOptions(insecure bool) (options []crane.Option)
- type ImageData
- type StorageOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnumImage ¶
EnumImage will read a specific image from a remote registry and returns the result asynchronously.
func EnumRegistries ¶
func EnumRegistries(regs []string, repos []string, tags []string, options ...crane.Option) <-chan *ImageData
EnumRegistries will read all images cataloged by a set of remote registries and returns the results asynchronously. If lists of repositories and tags are not supplied, lists will be enumerated from the registry's API.
func EnumRegistry ¶
func EnumRegistry(reg string, repos []string, tags []string, options ...crane.Option) <-chan *ImageData
EnumRegistry will read all images cataloged on a remote registry and returns the results asynchronously. If lists of repositories and tags are not supplied, lists will be enumerated from the registry's API.
func EnumRepository ¶
func EnumRepository(reg string, repo string, tags []string, options ...crane.Option) <-chan *ImageData
EnumRepository will read all images tagged in a specific repository on a remote registry and returns the results asynchronously. If a list of tags is not supplied, a list will be enumerated from the registry's API.
func MakeCraneOptions ¶
MakeCraneOption initalizes an array of crane options for use when interacting with a registry
Types ¶
type ImageData ¶
type ImageData struct { Reference string Registry string Repository string Tag string Manifest string Config string Error error }
ImageData represents an image enumerated from a registry or alternatively an error that occured while enumerating a registry.
func (*ImageData) Store ¶
func (image *ImageData) Store(options *StorageOptions) error
Store will output the information enumerated from an image to an output directory and optionally will pull the image filesystems as well