common

package
v0.0.0-...-3962cee Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package common provides basic interfaces and utility function used to build OCI image with buildah api in go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMain

func BuildMain(builderFile BuilderFile) (err error)

Main function that build the images using buildah go API

Types

type BuilderFile

type BuilderFile interface {
	// NewStorage function used to obtain the buildah storage, requied to
	// build a OCI image
	NewStorage() (store storage.Store, err error)
	// NewBuildOpts function used to obtain the build options for the specific
	// image
	NewBuildOpts() (opts buildah.BuilderOptions, err error)
	// Compose function used to run all the instruction tha compose the whole
	// images, like all the instructions in a dockerfile
	Compose(b *buildah.Builder) (err error)
	// Image name
	Name() (name string)
}

Interface that wraps all the methods needed to build an OCI image

Jump to

Keyboard shortcuts

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