mirror of https://github.com/containrrr/watchtower
				
				
				
			refactor: extract types and pkgs to new files
							parent
							
								
									4a92a03f31
								
							
						
					
					
						commit
						e109a7a6ce
					
				@ -0,0 +1,5 @@
 | 
			
		||||
package types
 | 
			
		||||
 | 
			
		||||
// A Filter is a prototype for a function that can be used to filter the
 | 
			
		||||
// results from a call to the ListContainers() method on the Client.
 | 
			
		||||
type Filter func(FilterableContainer) bool
 | 
			
		||||
@ -0,0 +1,9 @@
 | 
			
		||||
package types
 | 
			
		||||
 | 
			
		||||
// A FilterableContainer is the interface which is used to filter
 | 
			
		||||
// containers.
 | 
			
		||||
type FilterableContainer interface {
 | 
			
		||||
	Name() string
 | 
			
		||||
	IsWatchtower() bool
 | 
			
		||||
	Enabled() (bool, bool)
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,6 @@
 | 
			
		||||
package types
 | 
			
		||||
 | 
			
		||||
type Notifier interface {
 | 
			
		||||
	StartNotification()
 | 
			
		||||
	SendNotification()
 | 
			
		||||
}
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue