MCPcopy Create free account
hub / github.com/arshamalh/dockeroller / SetScene

Method SetScene

session/userdata.go:17–25  ·  view source on GitHub ↗
(scene entities.Scene)

Source from the content-addressed store, hash-verified

15}
16
17func (d *UserData) SetScene(scene entities.Scene) {
18 d.Scene = scene
19 switch scene {
20 case entities.SceneRenameContainer:
21 d.CurrentQuestion = entities.QNewContainerName
22 case entities.SceneRenameImage:
23 d.CurrentQuestion = entities.QNewImageName
24 }
25}
26
27func (d *UserData) GetScene() entities.Scene {
28 return d.Scene

Callers 4

ContainerRenameMethod · 0.80
ImageTagMethod · 0.80
TestUserDataFunction · 0.80
TestNewSessionFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestUserDataFunction · 0.64
TestNewSessionFunction · 0.64