Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRIOFeeder ¶
type CRIOFeeder struct {
// contains filtered or unexported fields
}
CRIOFeeder wraps the libpod.Runtime and implementes the Feeder interface.
func NewCRIOFeeder ¶
func NewCRIOFeeder() (*CRIOFeeder, error)
NewCRIOFeeder returns a pointer to an initialized CRIOFeeder.
func (*CRIOFeeder) Images ¶
func (f *CRIOFeeder) Images() ([]string, error)
Images returns an array of images present in containers/storage.
type DockerFeeder ¶
type DockerFeeder struct {
// contains filtered or unexported fields
}
func NewDockerFeeder ¶
func NewDockerFeeder() (*DockerFeeder, error)
Returns a new Feeder instance. Takes care of initializing the connection with the Docker daemon.
func (*DockerFeeder) Images ¶
func (f *DockerFeeder) Images() ([]string, error)
Images returns images available on the docker host in the form "<repo>:<tag>".
type FailedImportError ¶
type Feeder ¶
type Feeder struct {
// contains filtered or unexported fields
}
Feeder includes a concrete object implementing the FeederIface and FeederConfig
type FeederConfig ¶
type FeederConfig struct {
Target string `json:"feeder-target,omitempty"`
Whitelist []string `json:"whitelist,omitempty"`
}
special type to load the container-feeder.json config
type FeederIface ¶
type FeederIface interface {
Images() ([]string, error)
LoadImage(string) (string, error)
TagImage(string, []string) error
}
FeederIface is a generalized interface that Container Feeders must implement
type FeederLoadResponse ¶
type FeederLoadResponse struct {
SuccessfulImports []string
FailedImports []FailedImportError
}
func Import ¶
func Import(path string) (FeederLoadResponse, error)
Imports all the RPMs images stored inside of `path` into the local docker daemon
type ImageType ¶
type ImageType struct {
Name string `json:"name"`
Tags []string `json:"tags"`
File string `json:"file"`
}
ImageType struct to handle JSON schema
type MetadataType ¶
type MetadataType struct {
Image ImageType
}
Image metadata type JSON schema:
{
"image": {
"name": "",
"tags": [ ],
"file": ""
}
}
For example:
{
"image": {
"name": "opensuse/salt-api",
"tags": [ "13", "13.0.1", "latest" ],
"file": "salt-api-2017.03-docker-images.x86_64.tar.xz"
}
}
MetadataType struct to handle JSON schema