config

package
v2.0.0-...-443e6bf Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SourceDir is the directory that contains
	// all temporary data in the oc-mirror workspace.
	SourceDir = "src"
	// PublishDir is the directory containing
	// a copy of the current metadata.
	PublishDir = "publish"
	// InternalDir is the directory that
	// contains copies of files for internal
	// oc-mirror operations.
	InternalDir = "internal"
	// HelmDir is the directory that contains all
	// downloaded charts.
	HelmDir = "charts"
	// V2Dir is the directory containing images
	// mirrored to disk.
	V2Dir = "v2"
	// BlobsDir is the directory under each image
	// in the V2 directory that contains layers.
	BlobDir = "blobs"
	// MetadataFile is the filename that contains
	// the metadata.
	MetadataFile = ".metadata.json"
	// ReleaseSignatureDir is the top-level
	// directory where platform release-signature
	// configmaps are stored.
	ReleaseSignatureDir = "release-signatures"
	// GraphDataDir is the top-level directory
	// containing cincinnati graph data.
	GraphDataDir = "cincinnati"
	// CatalogsDir is the top-level directory
	// containing all catalog data.
	CatalogsDir = "catalogs"
	// LayoutsDir is the location of the OCI
	// layout directory that contains a copy of the
	// catalog image.
	LayoutsDir = "layout"
	// IndexDir is the location of the
	// file-based catalog json file.
	IndexDir = "index"
	// IncludeConfigFile is the file where
	// catalog include config data for incorporation
	// into the metadata is located.
	IncludeConfigFile = "include-config.gob"
)

Variables

View Source
var MetadataBasePath = filepath.Join(PublishDir, MetadataFile)

MetadataBasePath is the local path relative to the oc-mirror workspace where metadata is stored.

Functions

func Complete

func Complete(cfg *v1alpha2.ImageSetConfiguration)

Complete set default values in the ImageSetConfiguration when applicable

func LoadConfig

func LoadConfig(data []byte) (c v1alpha2.ImageSetConfiguration, err error)

LoadConfig loads data into a v1alpha2.ImageSetConfiguration instance

func LoadMetadata

func LoadMetadata(data []byte) (m v1alpha2.Metadata, err error)

LoadMetadata loads data into a v1alpha2.Metadata instance

func ReadConfig

func ReadConfig(configPath string) (c v1alpha2.ImageSetConfiguration, err error)

ReadConfig opens an imageset configuration file at the given path and loads it into a v1alpha2.ImageSetConfiguration instance for processing and validation.

func Validate

func Validate(cfg *v1alpha2.ImageSetConfiguration) error

Validate will check an ImagesetConfiguration for input errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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