lib

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ARCH_x86    = "x86_64"
	ARCH_i686   = "i686"
	ARCH_noarch = "noarch"
)

Variables

This section is empty.

Functions

func Host2File

func Host2File(host string, base string) string

func Host2LogFile added in v0.0.10

func Host2LogFile(host string, base string) string

func Ls

func Ls(searchPath string) ([]string, error)

Ls は ....

func PkgSlice2StringSlice added in v0.0.6

func PkgSlice2StringSlice(ps []Pkg) []string

func ReadJSON

func ReadJSON(jsonFile string) ([]string, error)

ReadJSON は ....

func ReadLogFile added in v0.0.10

func ReadLogFile(logfile string) (string, error)

ReadLogFile は 指定されたファイル(実はタイムスタンプが入ってるだけ)を読み込む

func Run

func Run(jsonDir string, excelFile string) error

Run は ....

func RunYAML added in v0.0.3

func RunYAML(jsonDir string, yamlFile string) error

RunYAML は ....

func VerArch added in v0.0.6

func VerArch(verarch string) (ver string, arch string, err error)

version.archを分解する

Types

type Excel1

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

func NewExcel1

func NewExcel1() *Excel1

func (*Excel1) AddHost

func (e1 *Excel1) AddHost(host string, packages []Pkg, pkgdb PkgDB, timestamp string)

func (*Excel1) Finish

func (e1 *Excel1) Finish(filename string) error

type Pkg added in v0.0.6

type Pkg struct {
	Name    string
	Version string
	Arch    string
}

func ReadJSON7 added in v0.0.5

func ReadJSON7(jsonFile string) ([]Pkg, error)

ReadJSON7 は ....

func (*Pkg) Compare added in v0.0.6

func (p *Pkg) Compare(p2 *Pkg) int

func (*Pkg) NameVer added in v0.0.6

func (p *Pkg) NameVer() string

func (Pkg) String added in v0.0.7

func (p Pkg) String() string

String() for "%s"

func (*Pkg) ToString added in v0.0.6

func (p *Pkg) ToString() string

type PkgDB added in v0.0.10

type PkgDB map[PkgDBKey]string

func CsvRead added in v0.0.10

func CsvRead(csvfile string) (PkgDB, error)

/ CSVファイルを読んで、mapにして返す。

func (PkgDB) Ver added in v0.0.10

func (p PkgDB) Ver(pkg, arch string) string

type PkgDBKey added in v0.0.10

type PkgDBKey [2]string

func NewPkgDBKey added in v0.0.10

func NewPkgDBKey(pkg, arch string) PkgDBKey

Jump to

Keyboard shortcuts

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