cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListImages

func ListImages()

ListImages 输出所有 image 的信息

func ListVolumes

func ListVolumes()

ListVolumes 输出所有 volume 的信息

func LoadImages

func LoadImages(files []string)

LoadImages 从存档文件加载 image

参数:

  • files: 存档文件名,允许一次加载多个

func LoadVolumes

func LoadVolumes(files []string)

LoadVolumes 从存档文件加载 volume

参数:

  • files: 存档文件名,允许一次加载多个

func PrintVersionInfo

func PrintVersionInfo(only bool)

PrintVersionInfo 打印版本信息

参数:

  • only: 是否只打印版本号

func SaveImages

func SaveImages(names []string)

SaveImages 将指定 images 保存到各自存档文件

参数:

  • names: image 的 Repository 或 ID,允许一次保存多个

func SaveVolumes

func SaveVolumes(names []string)

SaveVolumes 将指定 volumes 保存到各自存档文件

参数:

  • names: volume name,允许一次保存多个

Types

type ImageInfo

type ImageInfo struct {
	Repo string
	Tag  string
	ID   string
}

image 信息

type SaveInfo

type SaveInfo struct {
	Name string
	File string
}

image 保存信息

Jump to

Keyboard shortcuts

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