Skip to content

Commit

Permalink
feat(v2): add Update method for v2.Manager
Browse files Browse the repository at this point in the history
Signed-off-by: LongtaoZhang <DragonBillow@outlook.com>
  • Loading branch information
cathaysia committed Mar 17, 2022
1 parent 2e502f6 commit 0592512
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v2/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ func (c *Manager) Controllers() ([]string, error) {
return strings.Fields(string(b)), nil
}

func (c *Manager) Update(resources *Resources) error {
return setResources(c.path, resources)
}

type ControllerToggle int

const (
Expand Down

0 comments on commit 0592512

Please sign in to comment.