util

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package util 提供部署插件实现共用的配置与证书转换工具。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

func Certificate(value protocol.Certificate) *deploy.Certificate

Certificate 把插件协议中的证书材料还原为部署实现使用的结构。

func Merge

func Merge(auth, config map[string]string) map[string]string

Merge 合并凭据认证字段与部署节点参数,部署节点中的同名参数优先。

func SplitList

func SplitList(value string) []string

SplitList 按逗号、分号、空白或换行拆分多值配置。

func Truncate

func Truncate(s string, n int) string

Truncate 按字符数截断文本,用于限制错误信息中的响应体大小。

Types

This section is empty.

Jump to

Keyboard shortcuts

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