-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhandler.go
More file actions
38 lines (30 loc) · 743 Bytes
/
handler.go
File metadata and controls
38 lines (30 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package dira
type CommandEntity struct {
rae ExecutionAbstraction
containerId string
err error
}
func Command() CommandAbstraction {
return &CommandEntity{}
}
func (ce *CommandEntity) SetRemoteAccess(rae ExecutionAbstraction) CommandAbstraction {
ce.rae = rae
return ce
}
func (ce *CommandEntity) GetRemoteAccess() ExecutionAbstraction {
return ce.rae
}
func (ce *CommandEntity) SetContainerId(containerId string) CommandAbstraction {
ce.containerId = containerId
return ce
}
func (ce *CommandEntity) GetContainerId() string {
return ce.containerId
}
func (ce *CommandEntity) SetError(error error) CommandAbstraction {
ce.err = error
return ce
}
func (ce *CommandEntity) GetError() error {
return ce.err
}