mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Rename PortainerClient.GetEndpointDockerInfo() to EndpointDockerInfo()
This commit is contained in:
parent
636757e289
commit
aa606782af
@ -59,7 +59,7 @@ type PortainerClient interface {
|
|||||||
StackFileInspect(stackID portainer.StackID) (content string, err error)
|
StackFileInspect(stackID portainer.StackID) (content string, err error)
|
||||||
|
|
||||||
// Get endpoint Docker info
|
// Get endpoint Docker info
|
||||||
GetEndpointDockerInfo(endpointID portainer.EndpointID) (info map[string]interface{}, err error)
|
EndpointDockerInfo(endpointID portainer.EndpointID) (info map[string]interface{}, err error)
|
||||||
|
|
||||||
// Get Portainer status info
|
// Get Portainer status info
|
||||||
GetStatus() (portainer.Status, error)
|
GetStatus() (portainer.Status, error)
|
||||||
@ -296,7 +296,7 @@ func (n *portainerClientImp) StackFileInspect(stackID portainer.StackID) (conten
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *portainerClientImp) GetEndpointDockerInfo(endpointID portainer.EndpointID) (info map[string]interface{}, err error) {
|
func (n *portainerClientImp) EndpointDockerInfo(endpointID portainer.EndpointID) (info map[string]interface{}, err error) {
|
||||||
err = n.doJSONWithToken(fmt.Sprintf("endpoints/%v/docker/info", endpointID), http.MethodGet, http.Header{}, nil, &info)
|
err = n.doJSONWithToken(fmt.Sprintf("endpoints/%v/docker/info", endpointID), http.MethodGet, http.Header{}, nil, &info)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ func GetEndpointSwarmClusterID(endpointID portainer.EndpointID) (endpointSwarmCl
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := portainerClient.GetEndpointDockerInfo(endpointID)
|
result, err := portainerClient.EndpointDockerInfo(endpointID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user