manifest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package manifest provide the data structure to pre-compute the Maven JAR mapping.

Inspired from https://github.com/bazelbuild/rules_python/blob/27d0c7bb8e663dd2e2e9b295ecbfed680e641dfd/gazelle/manifest/manifest.go#L15

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Integrity string    `json:"integrity"`
	Manifest  *Manifest `json:"manifest,omitempty"`
}

func NewFile

func NewFile(manifest *Manifest) *File

func (*File) Decode

func (f *File) Decode(manifestPath string) error

Decode decodes the manifest file from the given path.

func (*File) Encode

func (f *File) Encode(w io.Writer, mavenInstallPath string) error

Encode encodes the manifest file to the given writer.

func (*File) VerifyIntegrity

func (f *File) VerifyIntegrity(mavenInstallPath string) (bool, error)

VerifyIntegrity verifies if the integrity set in the File is valid.

type Manifest

type Manifest struct {
	ArtifactsMapping map[string][]string `json:"artifacts_mapping"`
}

Jump to

Keyboard shortcuts

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