fsrepack

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSRepacker

type FSRepacker interface {
	// Relativer returns relative path for given file name against predefined root
	Relativer(path string) (string, error)

	// Destinator joins given path with some predefined root
	Destinator(path string) string
}

FSRepacker methods for names transformations during repack process. For instance, gitlab.com returns `project-name@major/vX.Y.Z and go modules proxy needs `gitlab.com/<owner>/project-name>[/vX for X >= 2]` The process to transform a path is two-phased:

func Gitlab

func Gitlab(projectPath string, version string) (FSRepacker, error)

Gitlab returns repacker for gitlab output

func Standard

func Standard(root string, projectPath string, version string) (FSRepacker, error)

Standard returns so called "standard" repacker. Standard means it is a typical situation when you need to get rid of some a1/a2/…/an prefix

Jump to

Keyboard shortcuts

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