1
0
mirror of https://github.com/rancher/types.git synced 2025-08-02 05:11:59 +00:00

generated changes

This commit is contained in:
kinarashah 2018-08-14 09:38:01 -07:00 committed by Alena Prokharchyk
parent b99fdf3b4c
commit e1bbb10b72

View File

@ -118,6 +118,8 @@ type NodeOperations interface {
ActionDrain(resource *Node, input *NodeDrainInput) error
ActionStopDrain(resource *Node) error
ActionUncordon(resource *Node) error
}
@ -182,6 +184,11 @@ func (c *NodeClient) ActionDrain(resource *Node, input *NodeDrainInput) error {
return err
}
func (c *NodeClient) ActionStopDrain(resource *Node) error {
err := c.apiClient.Ops.DoAction(NodeType, "stopDrain", &resource.Resource, nil, nil)
return err
}
func (c *NodeClient) ActionUncordon(resource *Node) error {
err := c.apiClient.Ops.DoAction(NodeType, "uncordon", &resource.Resource, nil, nil)
return err