Documentation
¶
Index ¶
- func NewAppDeleteCommand() *cobra.Command
- func NewAppDeployCommand() *cobra.Command
- func NewAppInfoCommand() *cobra.Command
- func NewAppListCommand() *cobra.Command
- func NewGatewayIngressInfoCommand() *cobra.Command
- func NewGatewayIngressListCommand() *cobra.Command
- func NewGatewayIngressSetCommand() *cobra.Command
- func NewHostJoinCommand() *cobra.Command
- func NewHostListCommand() *cobra.Command
- func NewPkgBuildCommand() *cobra.Command
- func NewPkgDelCommand() *cobra.Command
- func NewPkgInfoCommand() *cobra.Command
- func NewPkgListCommand() *cobra.Command
- func NewPkgPushCommand() *cobra.Command
- func NewZoneInfoCommand() *cobra.Command
- func NewZoneInitCommand() *cobra.Command
- func NewZoneSetCommand() *cobra.Command
- func Setup() error
- type ConfigCommon
- type ConfigZone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppDeleteCommand ¶
func NewAppDeployCommand ¶
func NewAppInfoCommand ¶
func NewAppListCommand ¶
func NewHostJoinCommand ¶
func NewHostListCommand ¶
func NewPkgBuildCommand ¶
NewPkgBuildCommand creates the "pkg-build" command for building .ipk packages. An .ipk package is a distributable archive containing application binaries and metadata, ready for deployment to zonelet servers.
func NewPkgDelCommand ¶
NewPkgDelCommand creates the "pkg-del" command for deleting packages. Removes a package and all its associated data chunks from the server.
func NewPkgInfoCommand ¶
NewPkgInfoCommand creates the "pkg-info" command for inspecting .ipk files. Displays package metadata and can extract the data block from the archive.
func NewPkgListCommand ¶
NewPkgListCommand creates the "pkg-list" command for listing packages. Displays packages stored on the zonelet server in a formatted table.
func NewPkgPushCommand ¶
NewPkgPushCommand creates the "pkg-push" command for uploading packages. Supports chunked upload with progress tracking and CRC32 checksum verification.
func NewZoneInfoCommand ¶
func NewZoneInitCommand ¶
func NewZoneSetCommand ¶
Types ¶
type ConfigCommon ¶
type ConfigCommon struct {
CurrentZone string `toml:"current_zone"`
Zones []*ConfigZone `toml:"zones"`
}
Config represents the CLI configuration file
var Config ConfigCommon
Config is the loaded configuration
func (*ConfigCommon) Zone ¶
func (it *ConfigCommon) Zone(name string) (*ConfigZone, error)
Zone returns the zone config by name
type ConfigZone ¶
type ConfigZone struct {
Name string `toml:"name"`
Addr string `toml:"addr"`
AK string `toml:"access_key"`
}
ConfigZone represents a single zone accessKey