~themue/juju-core/go-worker-firewaller-machineunits

« back to all changes in this revision

Viewing changes to container/container.go

  • Committer: Roger Peppe
  • Date: 2012-06-14 15:31:41 UTC
  • mto: (223.2.8 machine-agent)
  • mto: This revision was merged to the branch mainline in revision 242.
  • Revision ID: roger.peppe@canonical.com-20120614153141-fbjqaz2uxifeevp3
container: new package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package container
 
2
 
 
3
// Container contains running juju service units.
 
4
type Container interface {
 
5
        Deploy(unit *state.Unit) error
 
6
        Destroy() error
 
7
}
 
8
 
 
9
// TODO:
 
10
//type lxc struct {
 
11
//      name string
 
12
//}
 
13
//
 
14
//func LXC(name string) Container {
 
15
//}
 
16
 
 
17
type simple struct {
 
18
        name string
 
19
}
 
20
 
 
21
func Simple(name string) Container {
 
22
        return &simple{name}
 
23
}
 
24
 
 
25
func (s *simple) Deploy(u *unit.Unit) error {
 
26
        up := &upstart.Config{
 
27
                Service: upstart.Service {
 
28
                        Name:
 
29
                },
 
30
                Desc: "juju unit agent for " + u.Name(),
 
31
                
 
32
        }
 
33
}
 
 
b'\\ No newline at end of file'