mirror of
				https://github.com/containers/podman.git
				synced 2025-10-27 11:15:38 +08:00 
			
		
		
		
	 5b79cf15a0
			
		
	
	5b79cf15a0
	
	
	
		
			
			* Remove duplicate or unused types and constants * Move all documetation-only models and responses into swagger package * Remove all unecessary names, go-swagger will determine names from struct declarations * Use Libpod suffix to differentiate between compat and libpod models and responses. Taken from swagger:operation declarations. * Models and responses that start with lowercase are for swagger use only while uppercase are used "as is" in the code and swagger comments * Used gofumpt on new code ```release-note ``` Signed-off-by: Jhon Honce <jhonce@redhat.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| //nolint:deadcode,unused // these types are used to wire generated swagger to API code
 | |
| package swagger
 | |
| 
 | |
| import (
 | |
| 	"github.com/containers/podman/v4/pkg/domain/entities"
 | |
| 	"github.com/docker/docker/api/types"
 | |
| )
 | |
| 
 | |
| // Details for creating a volume
 | |
| // swagger:model
 | |
| type volumeCreate struct {
 | |
| 	// Name of the volume driver to use.
 | |
| 	// Required: true
 | |
| 	Driver string `json:"Driver"`
 | |
| 
 | |
| 	// A mapping of driver options and values. These options are
 | |
| 	// passed directly to the driver and are driver specific.
 | |
| 	//
 | |
| 	// Required: true
 | |
| 	DriverOpts map[string]string `json:"DriverOpts"`
 | |
| 
 | |
| 	// User-defined key/value metadata.
 | |
| 	// Required: true
 | |
| 	Labels map[string]string `json:"Labels"`
 | |
| 
 | |
| 	// The new volume's name. If not specified, Docker generates a name.
 | |
| 	//
 | |
| 	// Required: true
 | |
| 	Name string `json:"Name"`
 | |
| }
 | |
| 
 | |
| // Network create
 | |
| // swagger:model
 | |
| type networkCreate types.NetworkCreateRequest
 | |
| 
 | |
| // Network connect
 | |
| // swagger:model
 | |
| type networkConnectRequest types.NetworkConnect
 | |
| 
 | |
| // Network disconnect
 | |
| // swagger:model
 | |
| type networkDisconnectRequest types.NetworkDisconnect
 | |
| 
 | |
| // Network connect
 | |
| // swagger:model
 | |
| type networkConnectRequestLibpod entities.NetworkConnectOptions
 |