files

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Files

type Files struct {
	// The module root directory fileystem path
	Root string
	// The module version
	Version *version.Version
	// The module descriptor
	Descriptor *descriptor.Descriptor `json:"-"`
	// The list of the relative module paths of the files that will be included
	Selected []string `json:",omitempty"`
	// The list of the relative module paths of the files ignored after filtering
	Ignored []string `json:",omitempty"`
}

func New

func New(module *modfiles.ModFiles) *Files

New converts a modfiles.ModFiles structure to a Files structure, without changing path state

func (*Files) MTime

func (module *Files) MTime() time.Time

MTime returns the most recent modification time of the selected files within a module

func (*Files) ModFiles

func (module *Files) ModFiles() *modfiles.ModFiles

ModFiles converts back to a modfiles.ModFiles structure when needed

func (*Files) Path

func (module *Files) Path() string

func (*Files) PathProvides

func (module *Files) PathProvides() descriptor.Provides

PathProvides returns the provides associated with the module paths

func (*Files) UpdateTimestamp

func (module *Files) UpdateTimestamp()

UpdateTimestamp changes module timestamp to the module mtime if necessary

Jump to

Keyboard shortcuts

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