pkg

package
v0.0.0-...-ccd8cf7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateYes = "yes"
	UpdateNo  = "no"
)
View Source
const BackendURI = "http://service-backend.xiaozhu.com"

Variables

This section is empty.

Functions

func FindDiffModule

func FindDiffModule(modules map[string]bool) ([]string, error)

func FindRequiredModule

func FindRequiredModule() ([]string, error)

func FindRequiredModuleWithVersion

func FindRequiredModuleWithVersion() (map[string]string, error)

func List

func List() ([]string, error)

func Publish

func Publish(module string) error

Types

type Pkg

type Pkg struct {
	Name      string `json:"name"`
	Module    string `json:"module"`
	BugTag    string `json:"bugTag"`
	LatestTag string `json:"latestTag"`
}

func ListWithTag

func ListWithTag() ([]Pkg, error)

type Pkgs

type Pkgs struct {
	List []Pkg `json:"list"`
}

type Response

type Response struct {
	Status   int    `json:"status"`
	Content  Pkgs   `json:"content"`
	ErrorMsg string `json:"errorMsg"`
}

type VersionChecker

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

func NewVersionChecker

func NewVersionChecker(log log.Logger) *VersionChecker

func (*VersionChecker) Check

func (v *VersionChecker) Check()

Jump to

Keyboard shortcuts

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