[Agent] [Octopus] - caqa add aqga

This commit is contained in:
zeaslity
2024-03-20 11:30:20 +08:00
parent 798aea36fc
commit 4ca8d77e74
5 changed files with 29 additions and 2 deletions

View File

@@ -62,6 +62,21 @@ func getContainerList(all bool) []types.Container {
return containers
}
// ListService Deprecated
func ListService() {
serviceList, err := apiClient.ServiceList(context.TODO(), types.ServiceListOptions{
Filters: filters.Args{},
Status: true,
})
if err != nil {
log.ErrorF("error is %s", err.Error())
return
}
utils.BeautifulPrint(serviceList)
}
func GetAll() []types.ImageSummary {
list, err := apiClient.ImageList(context.TODO(), types.ImageListOptions{