MCPcopy Create free account
hub / github.com/Xpl0itU/passiveMachine / ConfigureForm

Method ConfigureForm

watchtower.go:18–30  ·  view source on GitHub ↗
(form *tview.Form, frame *tview.Frame, app *tview.Application)

Source from the content-addressed store, hash-verified

16}
17
18func (i *WatchtowerConfig) ConfigureForm(form *tview.Form, frame *tview.Frame, app *tview.Application) {
19 enabled := i.Configured
20 form.AddCheckbox("Automatic Updates", enabled, func(checked bool) {
21 enabled = checked
22 })
23 form.AddButton("Save", func() {
24 i.Configured = enabled
25 returnToMenu(frame, app)
26 })
27 form.AddButton("Cancel", func() {
28 returnToMenu(frame, app)
29 })
30}
31
32func (i *WatchtowerConfig) ConfigureDocker(kind DockerConfigKind, form *tview.Form) (string, error) {
33 switch kind {

Callers

nothing calls this directly

Calls 1

returnToMenuFunction · 0.85

Tested by

no test coverage detected