lockfile

package
v0.0.0-...-2838cfc Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Overview

Package lockfile provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version 2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ecosystem

func Ecosystem(lockfile Lockfile) ecosystem.Ecosystem

func Existing

func Existing(paths []string) (map[Lockfile][]string, map[Lockfile][]error)

Existing splits the given maths into two maps: one containing the supported and existing lockfiles, the other containing the remainings.

func Map

func Map(paths []string) map[Lockfile][]string

Map maps the given paths to the supported lockfiles.

Types

type Lockfile

type Lockfile string

Lockfile defines model for Lockfile.

const (
	None            Lockfile = ""
	PackageLockJSON Lockfile = "package-lock.json"
	PoetryLock      Lockfile = "poetry.lock"
)

Defines values for Lockfile.

func FromEcosystem

func FromEcosystem(eco ecosystem.Ecosystem) []Lockfile

FromEcosystem returns the list of supported lock files for the given ecosystem.

func FromPath

func FromPath(path string) (Lockfile, error)

func FromString

func FromString(input string) (Lockfile, error)

func (Lockfile) String

func (s Lockfile) String() string

Jump to

Keyboard shortcuts

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