naming

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package naming includes various naming nuances

Index

Constants

View Source
const (
	// ContainerArchiveDir constant represents where on container will
	// archive directory be mounted
	ContainerArchiveDir = "/archive"
	// ContainerBuildDir constant represents where on container will
	// build directory be mounted
	ContainerBuildDir = "/build"
	// ContainerSourceDir constant represents where on container will
	// source directory be mounted
	ContainerSourceDir = "/build/source"
	// ContainerCacheDir constant represents where on container will
	// cache directory be mounted
	ContainerCacheDir = "/var/cache/apt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Prefix is the program name
	Prefix string

	// Source is the name of source package
	Source string
	// Version is the version of source package
	Version string
	// Upstream is the upstream version of source package
	Upstream string
	// Target is the target distribution the package is building for
	Target string

	// SourceBaseDir is a directory where source lives
	SourceBaseDir string
	// BuildBaseDir is a directory where all build dirs are stored
	BuildBaseDir string
	// CacheBaseDir is a directory where all cache dirs are stored
	CacheBaseDir string
	// ArchiveBaseDir is a directory where all build packages are stored
	ArchiveBaseDir string
}

Args struct holds information about package base directories and prefix

type Naming

type Naming struct {
	// Args embedded here for quick reference
	Args

	// Container name
	Container string
	// Image name
	Image string

	// SourceDir is an absolute path where source lives
	SourceDir string
	// SourceParentDir is an absolute path where orig upstream tarball lives
	SourceParentDir string
	// BuildDir is an absolute path where build artifacts are stored
	BuildDir string
	// CacheDir is an absolute path where apt cache is stored
	CacheDir string
	// ArchiveDir is an absolute path where
	// all built packages are stored
	ArchiveDir string
	// ArchiveTargetDir is an absolute path where
	// all built packages for given target are stored
	ArchiveTargetDir string
	// ArchiveSourceDir is an absolute path where
	// all built packages for given source are stored
	ArchiveSourceDir string
	// ArchiveVersionDir is an absolute path where
	// all built packages for given source version are stored
	ArchiveVersionDir string
}

Naming struct holds various information naming information about package, container, image, directories

func New

func New(args Args) *Naming

New creates new instance of Naming struct

Jump to

Keyboard shortcuts

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