mirror of
https://github.com/containers/podman.git
synced 2025-06-23 10:38:20 +08:00
Merge pull request #15157 from cdoern/apiLog
fix LogConfig type for libpod API
This commit is contained in:
@ -11,9 +11,9 @@ import (
|
||||
func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
||||
// swagger:operation POST /containers/create compat ContainerCreate
|
||||
// ---
|
||||
// summary: Create a container
|
||||
// tags:
|
||||
// - containers (compat)
|
||||
// summary: Create a container
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
@ -678,9 +678,9 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
||||
|
||||
// swagger:operation POST /libpod/containers/create libpod ContainerCreateLibpod
|
||||
// ---
|
||||
// summary: Create a container
|
||||
// tags:
|
||||
// - containers
|
||||
// summary: Create a container
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
@ -689,6 +689,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
||||
// description: attributes for creating a container
|
||||
// schema:
|
||||
// $ref: "#/definitions/SpecGenerator"
|
||||
// required: true
|
||||
// responses:
|
||||
// 201:
|
||||
// $ref: "#/responses/containerCreateResponse"
|
||||
|
@ -13,7 +13,8 @@ import (
|
||||
spec "github.com/opencontainers/runtime-spec/specs-go"
|
||||
)
|
||||
|
||||
// LogConfig describes the logging characteristics for a container
|
||||
// LogConfig describes the logging characteristics for a container
|
||||
// swagger:model LogConfigLibpod
|
||||
type LogConfig struct {
|
||||
// LogDriver is the container's log driver.
|
||||
// Optional.
|
||||
|
Reference in New Issue
Block a user