pillage

package
v0.0.0-...-b5fb008 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumImage

func EnumImage(reg string, repo string, tag string, options ...crane.Option) <-chan *ImageData

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

func MakeCraneOptions(insecure bool) (options []crane.Option)

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

type StorageOptions

type StorageOptions struct {
	CachePath    string
	ResultsPath  string
	StoreImages  bool
	CraneOptions []crane.Option
}

StorageOptions is passed to ImageData.Store to set the location and options for pulling the image data.

Jump to

Keyboard shortcuts

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