Documentation
¶
Index ¶
- func GetBaseLine() (*layout.BaselineConfig, error)
- func GetCompontInfo(name string) (*piper.CompontInfo, error)
- func IndexAddByJson(path string) error
- func IndexAddItem(c *layout.ComponentsItem) error
- func IndexDeprecate(name string) error
- func IndexGenTemplate(path string) error
- func IndexHide(name string) error
- func IndexList(deprecate bool, showHide bool) ([]layout.ComponentsItem, error)
- func IndexUndeprecate(name string) error
- func IndexUnhide(name string) error
- func IndexUpdate(path string) error
- func MirrorInit(path string, clean bool) error
- func MirrorPublishGen(path string) error
- func MirrorPublishGithub(arg *MirrorPublishParam) error
- func MirrorPublishKmup(arg *MirrorPublishParam) error
- func MirrorPublishManifest(arg *MirrorPublishParam) error
- func ParseNameAndVersion(s string) (string, string, error)
- func PrintSearchResultsTable(results []piper.SearchResult) error
- func SearchComponent(sl []piper.SearchEle) ([]piper.SearchResult, error)
- func UpdateOrSetBaseline(b *BaseUpateParam) error
- type BaseUpateParam
- type MirrorPublishParam
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 IndexAddItem ¶ added in v0.6.24
func IndexAddItem(c *layout.ComponentsItem) error
func IndexDeprecate ¶
func IndexGenTemplate ¶ added in v0.6.24
func IndexHide ¶
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 IndexUnhide ¶ added in v0.6.24
func IndexUpdate ¶ added in v0.6.25
func MirrorInit ¶ added in v0.6.24
func MirrorPublishGen ¶ added in v0.6.25
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
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