mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Rename PortainerClient.DeleteStack() to StackDelete()
This commit is contained in:
parent
ea63f26ee0
commit
0b946ac0ec
@ -53,7 +53,7 @@ type PortainerClient interface {
|
||||
StackUpdate(stack portainer.Stack, environmentVariables []portainer.Pair, stackFileContent string, prune bool, endpointID portainer.EndpointID) error
|
||||
|
||||
// Delete stack
|
||||
DeleteStack(stackID portainer.StackID) error
|
||||
StackDelete(stackID portainer.StackID) error
|
||||
|
||||
// Get stack file content
|
||||
GetStackFileContent(stackID portainer.StackID) (content string, err error)
|
||||
@ -278,7 +278,7 @@ func (n *portainerClientImp) StackUpdate(stack portainer.Stack, environmentVaria
|
||||
return
|
||||
}
|
||||
|
||||
func (n *portainerClientImp) DeleteStack(stackID portainer.StackID) (err error) {
|
||||
func (n *portainerClientImp) StackDelete(stackID portainer.StackID) (err error) {
|
||||
err = n.doJSONWithToken(fmt.Sprintf("stacks/%d", stackID), http.MethodDelete, http.Header{}, nil, nil)
|
||||
return
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ var stackRemoveCmd = &cobra.Command{
|
||||
"stack": stackName,
|
||||
"endpoint": endpoint.Name,
|
||||
}).Info("Removing stack")
|
||||
err := portainerClient.DeleteStack(stackID)
|
||||
err := portainerClient.StackDelete(stackID)
|
||||
common.CheckError(err)
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"stack": stack.Name,
|
||||
|
Loading…
Reference in New Issue
Block a user