mirror of
				https://github.com/docker/compose.git
				synced 2025-11-04 05:34:09 +01:00 
			
		
		
		
	* implement a little azure backend * implement an example backend * use the right backend from the context
		
			
				
	
	
		
			23 lines
		
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package containers
 | 
						|
 | 
						|
import (
 | 
						|
	"context"
 | 
						|
)
 | 
						|
 | 
						|
type Container struct {
 | 
						|
	ID          string
 | 
						|
	Status      string
 | 
						|
	Image       string
 | 
						|
	Command     string
 | 
						|
	CpuTime     uint64
 | 
						|
	MemoryUsage uint64
 | 
						|
	MemoryLimit uint64
 | 
						|
	PidsCurrent uint64
 | 
						|
	PidsLimit   uint64
 | 
						|
	Labels      []string
 | 
						|
}
 | 
						|
 | 
						|
type ContainerService interface {
 | 
						|
	List(context.Context) ([]Container, error)
 | 
						|
}
 |