mr

package
v0.6.25 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseLine

func GetBaseLine() (*layout.BaselineConfig, error)

func GetCompontInfo

func GetCompontInfo(name string) (*piper.CompontInfo, error)

GetCompontInfo lists components by their deprecate status, with optional hide status filtering showHide: true = include only visible components (Hide=false), false = include all components (ignore Hide status) Returns: slice of matched ComponentsItem, error if index load fails

func IndexAddByJson added in v0.6.24

func IndexAddByJson(path string) error

func IndexAddItem added in v0.6.24

func IndexAddItem(c *layout.ComponentsItem) error

func IndexDeprecate

func IndexDeprecate(name string) error

func IndexGenTemplate added in v0.6.24

func IndexGenTemplate(path string) error

func IndexHide

func IndexHide(name string) error

IndexHide hides a component by updating its Hide status to true (reads component name from JSON config file) dst: Path to the component JSON config file (contains target component name)

func IndexList

func IndexList(deprecate bool, showHide bool) ([]layout.ComponentsItem, error)

IndexList lists components by their deprecate status, with optional hide status filtering showHide: true = include only visible components (Hide=false), false = include all components (ignore Hide status) Returns: slice of matched ComponentsItem, error if index load fails

func IndexUndeprecate added in v0.6.24

func IndexUndeprecate(name string) error

func IndexUnhide added in v0.6.24

func IndexUnhide(name string) error

func IndexUpdate added in v0.6.25

func IndexUpdate(path string) error

func MirrorInit added in v0.6.24

func MirrorInit(path string, clean bool) error

func MirrorPublishGen added in v0.6.25

func MirrorPublishGen(path string) error

func MirrorPublishGithub added in v0.6.25

func MirrorPublishGithub(arg *MirrorPublishParam) error

func MirrorPublishKmup added in v0.6.25

func MirrorPublishKmup(arg *MirrorPublishParam) error

func MirrorPublishManifest added in v0.6.25

func MirrorPublishManifest(arg *MirrorPublishParam) error

func ParseNameAndVersion added in v0.6.25

func ParseNameAndVersion(s string) (string, string, error)

etcd@3.6.6 ==> ("etcd", "3.6.6") etcd@v3.6.6 = etcd@3.6.6 etcd ==> ("etcd", "") ParseNameAndVersion parses "name@version" or "name@vversion" into name and version. Examples:

"etcd@3.6.6" -> ("etcd", "3.6.6")
"etcd@v3.6.6" -> ("etcd", "3.6.6")
"etcd" -> ("etcd", "")

func PrintSearchResultsTable added in v0.6.25

func PrintSearchResultsTable(results []piper.SearchResult) error

func SearchComponent added in v0.6.25

func SearchComponent(sl []piper.SearchEle) ([]piper.SearchResult, error)

func UpdateOrSetBaseline

func UpdateOrSetBaseline(b *BaseUpateParam) error

Types

type BaseUpateParam

type BaseUpateParam struct {
	ComponentName string             // Component name (from Component@Version)
	Version       string             // Component version (from Component@Version)
	Channel       string             // Release channel (default: stable; options: stable/nightly/beta)
	VersionType   layout.VersionType // Baseline version increment type (Mandatory: Major/Minor/Patch)
	Author        string
	Email         string
}

BaseUpateParam contains core required parameters for updating/setting component baseline Follows existing code design: no redundant fields, reuse global MirrorCtx

type MirrorPublishParam added in v0.6.25

type MirrorPublishParam struct {
	User    string
	Email   string
	Channel string
	Version string
	// github or kmup
	Host          string
	Repo          string
	ComponentName string
	Org           string
	RVersion      string
	Tmpl          string
	// local
	Local string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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