[Agent] [Octopus] - caqa add aqga
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -29,6 +29,10 @@ func TestGetAllContainer(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestListService(t *testing.T) {
|
||||
ListService()
|
||||
}
|
||||
|
||||
func TestImageGetAll(t *testing.T) {
|
||||
imageGetAll := GetAll()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user