Because of a side-effect import, we have the possibility of pulling in several unnecessary packages that are used by the plugin and not at runtime to implement protobuf structures. Setting these imports to `weak` prevents this from happening, reducing the total import set, reducing memory usage and binary size. Signed-off-by: Stephen J Day <stephen.day@docker.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			426 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			426 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
 | 
						|
package containerd.events;
 | 
						|
 | 
						|
import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";
 | 
						|
 | 
						|
option go_package = "github.com/containerd/containerd/api/events;events";
 | 
						|
option (containerd.plugin.fieldpath_all) = true;
 | 
						|
 | 
						|
message SnapshotPrepare {
 | 
						|
	string key = 1;
 | 
						|
	string parent = 2;
 | 
						|
}
 | 
						|
 | 
						|
message SnapshotCommit {
 | 
						|
	string key = 1;
 | 
						|
	string name = 2;
 | 
						|
}
 | 
						|
 | 
						|
message SnapshotRemove {
 | 
						|
	string key = 1;
 | 
						|
}
 |