Rename PortainerClient.GetEndpointDockerInfo() to EndpointDockerInfo()

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-26 01:25:54 -04:00
parent 636757e289
commit aa606782af
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ type PortainerClient interface {
StackFileInspect(stackID portainer.StackID) (content string, err error)
// 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
GetStatus() (portainer.Status, error)
@ -296,7 +296,7 @@ func (n *portainerClientImp) StackFileInspect(stackID portainer.StackID) (conten
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)
return
}

View File

@ -151,7 +151,7 @@ func GetEndpointSwarmClusterID(endpointID portainer.EndpointID) (endpointSwarmCl
return
}
result, err := portainerClient.GetEndpointDockerInfo(endpointID)
result, err := portainerClient.EndpointDockerInfo(endpointID)
if err != nil {
return
}