13 lines
		
	
	
		
			229 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			229 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package containerd
 | 
						|
 | 
						|
type GetContainersEvent struct {
 | 
						|
	s *Supervisor
 | 
						|
}
 | 
						|
 | 
						|
func (h *GetContainersEvent) Handle(e *Event) error {
 | 
						|
	for _, i := range h.s.containers {
 | 
						|
		e.Containers = append(e.Containers, i.container)
 | 
						|
	}
 | 
						|
	return nil
 | 
						|
}
 |