indexer

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddToIndexRequest

type AddToIndexRequest struct {
	Generate          bool
	Permissive        bool
	BinarySourceImage string
	FromIndex         string
	OutDockerfile     string
	Bundles           []string
	Tag               string
	Mode              pregistry.Mode
	SkipTLS           bool
}

AddToIndexRequest defines the parameters to send to the AddToIndex API

type DeleteFromIndexRequest

type DeleteFromIndexRequest struct {
	Generate          bool
	Permissive        bool
	BinarySourceImage string
	FromIndex         string
	OutDockerfile     string
	Tag               string
	Operators         []string
}

DeleteFromIndexRequest defines the parameters to send to the DeleteFromIndex API

type ExportFromIndexRequest

type ExportFromIndexRequest struct {
	Index         string
	Package       string
	DownloadPath  string
	ContainerTool string
}

ExportFromIndexRequest defines the parameters to send to the ExportFromIndex API

type ImageIndexer

type ImageIndexer struct {
	DockerfileGenerator containertools.DockerfileGenerator
	CommandRunner       containertools.CommandRunner
	LabelReader         containertools.LabelReader
	ImageReader         containertools.ImageReader
	RegistryAdder       registry.RegistryAdder
	RegistryDeleter     registry.RegistryDeleter
	ContainerTool       containertools.ContainerTool
	Logger              *logrus.Entry
}

ImageIndexer is a struct implementation of the Indexer interface

func (ImageIndexer) AddToIndex

func (i ImageIndexer) AddToIndex(request AddToIndexRequest) error

AddToIndex is an aggregate API used to generate a registry index image with additional bundles

func (ImageIndexer) DeleteFromIndex

func (i ImageIndexer) DeleteFromIndex(request DeleteFromIndexRequest) error

DeleteFromIndex is an aggregate API used to generate a registry index image without specific operators

func (ImageIndexer) ExportFromIndex

func (i ImageIndexer) ExportFromIndex(request ExportFromIndexRequest) error

ExportFromIndex is an aggregate API used to specify operators from an index image

func (ImageIndexer) WriteIndexDBFile added in v1.5.8

func (i ImageIndexer) WriteIndexDBFile(index, workingDir, databaseFile string) (string, error)

type IndexAdder

type IndexAdder interface {
	AddToIndex(AddToIndexRequest) error
}

IndexAdder allows the creation of index container images from scratch or based on previous index images

func NewIndexAdder

func NewIndexAdder(containerTool containertools.ContainerTool, logger *logrus.Entry) IndexAdder

NewIndexAdder is a constructor that returns an IndexAdder

type IndexDeleter

type IndexDeleter interface {
	DeleteFromIndex(DeleteFromIndexRequest) error
}

IndexDeleter takes indexes and deletes all references to an operator from them

func NewIndexDeleter

func NewIndexDeleter(containerTool containertools.ContainerTool, logger *logrus.Entry) IndexDeleter

NewIndexDeleter is a constructor that returns an IndexDeleter

type IndexExporter

type IndexExporter interface {
	ExportFromIndex(ExportFromIndexRequest) error
}

func NewIndexExporter

func NewIndexExporter(containerTool containertools.ContainerTool, logger *logrus.Entry) IndexExporter

NewIndexExporter is a constructor that returns an IndexExporter

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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