launchpadnetwalk

package
v0.0.0-...-cf07509 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	// contains filtered or unexported fields
}

func (*FileInfo) IsDir

func (self *FileInfo) IsDir() bool

func (*FileInfo) ModTime

func (self *FileInfo) ModTime() time.Time

func (*FileInfo) Mode

func (self *FileInfo) Mode() os.FileMode

func (*FileInfo) Name

func (self *FileInfo) Name() string

func (*FileInfo) Size

func (self *FileInfo) Size() int64

func (*FileInfo) Sys

func (self *FileInfo) Sys() interface{}

type FileInfoForMarshal

type FileInfoForMarshal struct {
	Name  string
	IsDir bool
}

func NewFileInfoForMarshal

func NewFileInfoForMarshal(init os.FileInfo) *FileInfoForMarshal

func (*FileInfoForMarshal) GetFileInfo

func (self *FileInfoForMarshal) GetFileInfo() *FileInfo

type LPReleaseFilesStruct

type LPReleaseFilesStruct struct {
	Entries []struct {
		FileLink string `json:"file_link"`
	} `json:"entries"`
}

type LPReleasesStruct

type LPReleasesStruct struct {
	Entries []struct {
		Title              string `json:"title"`
		FileCollectionLink string `json:"files_collection_link"`
	} `json:"entries"`
}

type LaunchpadNetWalk

type LaunchpadNetWalk struct {
	// contains filtered or unexported fields
}

func NewLaunchpadNetWalk

func NewLaunchpadNetWalk(
	project string,
	cache *cache01.CacheDir,
	log *logger.Logger,
) (*LaunchpadNetWalk, error)

func (*LaunchpadNetWalk) GetDownloadingURIForFile

func (self *LaunchpadNetWalk) GetDownloadingURIForFile(name string) (string, error)

func (*LaunchpadNetWalk) ListDir

func (self *LaunchpadNetWalk) ListDir(pth string) (
	[]os.FileInfo,
	[]os.FileInfo,
	error,
)

func (*LaunchpadNetWalk) LogE

func (self *LaunchpadNetWalk) LogE(txt string)

func (*LaunchpadNetWalk) LogI

func (self *LaunchpadNetWalk) LogI(txt string)

func (*LaunchpadNetWalk) Tree

func (self *LaunchpadNetWalk) Tree(pth string) (map[string]os.FileInfo, error)

func (*LaunchpadNetWalk) Walk

func (self *LaunchpadNetWalk) Walk(
	pth string,
	target func(
		dir string,
		dirs []os.FileInfo,
		files []os.FileInfo,
	) error,
) error

type OsFileInfoSort

type OsFileInfoSort []os.FileInfo

func (OsFileInfoSort) Len

func (self OsFileInfoSort) Len() int

func (OsFileInfoSort) Less

func (self OsFileInfoSort) Less(i, j int) bool

func (OsFileInfoSort) Swap

func (self OsFileInfoSort) Swap(i, j int)

Jump to

Keyboard shortcuts

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