catalogs

package
v0.0.0-...-a300be1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSoftwareCatalogsAdapter

func NewSoftwareCatalogsAdapter(catalogConfigFile, toolproviderImagesPath string, neverPull bool, transportToPullFrom string, retryDelay func() time.Duration) softwareCatalogsAdapter

Types

type PullRound

type PullRound string
const (
	PullRoundTicker        PullRound = "PullRoundTicker"
	PullRoundConfigChanged PullRound = "PullRoundConfigChanged"
)

type SoftwareCatalog

type SoftwareCatalog struct {
	Description          string                          `json:"description,omitempty"`
	Entries              map[string]SoftwareCatalogEntry `json:"entries"`
	DontNeedImageUpdates bool                            `json:"dontNeedImageUpdates,omitempty"`

	// Use corev1/helpers/MatchNodeSelectorTerms to resolve this.
	// A nil value supports all nodes.
	NodeSelector *corev1.NodeSelector `json:"nodeSelector,omitempty"`
}

type SoftwareCatalogEntry

type SoftwareCatalogEntry struct {
	Description string            `json:"description,omitempty"`
	Image       string            `json:"image"`
	SubPath     string            `json:"subPath,omitempty"`
	Environment map[string]string `json:"environment,omitempty"`
}

type SoftwareCatalogsAdapter

type SoftwareCatalogsAdapter interface {
	ImagePuller(channel chan PullRound)
	ImageCleaner(channel <-chan time.Time)
}

Jump to

Keyboard shortcuts

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