mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-29 17:05:46 +08:00
vendor: github.com/docker/docker v23.0.0
full diff: https://github.com/docker/docker/compare/v23.0.0-rc.1...v23.0.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
73dca749ca
commit
260117289b
2
go.mod
2
go.mod
@ -10,7 +10,7 @@ require (
|
|||||||
github.com/docker/cli v23.0.0-rc.1+incompatible
|
github.com/docker/cli v23.0.0-rc.1+incompatible
|
||||||
github.com/docker/cli-docs-tool v0.5.1
|
github.com/docker/cli-docs-tool v0.5.1
|
||||||
github.com/docker/distribution v2.8.1+incompatible
|
github.com/docker/distribution v2.8.1+incompatible
|
||||||
github.com/docker/docker v23.0.0-rc.1+incompatible
|
github.com/docker/docker v23.0.0+incompatible
|
||||||
github.com/docker/go-units v0.5.0
|
github.com/docker/go-units v0.5.0
|
||||||
github.com/gofrs/flock v0.8.1
|
github.com/gofrs/flock v0.8.1
|
||||||
github.com/gogo/protobuf v1.3.2
|
github.com/gogo/protobuf v1.3.2
|
||||||
|
4
go.sum
4
go.sum
@ -169,8 +169,8 @@ github.com/docker/cli-docs-tool v0.5.1 h1:jIk/cCZurZERhALPVKhqlNxTQGxn2kcI+56gE5
|
|||||||
github.com/docker/cli-docs-tool v0.5.1/go.mod h1:zMjqTFCU361PRh8apiXzeAZ1Q/xupbIwTusYpzCXS/o=
|
github.com/docker/cli-docs-tool v0.5.1/go.mod h1:zMjqTFCU361PRh8apiXzeAZ1Q/xupbIwTusYpzCXS/o=
|
||||||
github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68=
|
github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68=
|
||||||
github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||||
github.com/docker/docker v23.0.0-rc.1+incompatible h1:Dmn88McWuHc7BSNN1s6RtfhMmt6ZPQAYUEf7FhqpiQI=
|
github.com/docker/docker v23.0.0+incompatible h1:L6c28tNyqZ4/ub9AZC9d5QUuunoHHfEH4/Ue+h/E5nE=
|
||||||
github.com/docker/docker v23.0.0-rc.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
github.com/docker/docker v23.0.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||||
github.com/docker/docker-credential-helpers v0.7.0 h1:xtCHsjxogADNZcdv1pKUHXryefjlVRqWqIhk/uXJp0A=
|
github.com/docker/docker-credential-helpers v0.7.0 h1:xtCHsjxogADNZcdv1pKUHXryefjlVRqWqIhk/uXJp0A=
|
||||||
github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0=
|
github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0=
|
||||||
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=
|
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=
|
||||||
|
6
vendor/github.com/docker/docker/api/swagger.yaml
generated
vendored
6
vendor/github.com/docker/docker/api/swagger.yaml
generated
vendored
@ -2343,6 +2343,8 @@ definitions:
|
|||||||
type: "string"
|
type: "string"
|
||||||
error:
|
error:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
errorDetail:
|
||||||
|
$ref: "#/definitions/ErrorDetail"
|
||||||
status:
|
status:
|
||||||
type: "string"
|
type: "string"
|
||||||
progress:
|
progress:
|
||||||
@ -8725,6 +8727,10 @@ paths:
|
|||||||
IdentityToken: "9cbaf023786cd7..."
|
IdentityToken: "9cbaf023786cd7..."
|
||||||
204:
|
204:
|
||||||
description: "No error"
|
description: "No error"
|
||||||
|
401:
|
||||||
|
description: "Auth error"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ErrorResponse"
|
||||||
500:
|
500:
|
||||||
description: "Server error"
|
description: "Server error"
|
||||||
schema:
|
schema:
|
||||||
|
5
vendor/github.com/docker/docker/api/types/filters/parse.go
generated
vendored
5
vendor/github.com/docker/docker/api/types/filters/parse.go
generated
vendored
@ -50,7 +50,7 @@ func (args Args) Keys() []string {
|
|||||||
// MarshalJSON returns a JSON byte representation of the Args
|
// MarshalJSON returns a JSON byte representation of the Args
|
||||||
func (args Args) MarshalJSON() ([]byte, error) {
|
func (args Args) MarshalJSON() ([]byte, error) {
|
||||||
if len(args.fields) == 0 {
|
if len(args.fields) == 0 {
|
||||||
return []byte{}, nil
|
return []byte("{}"), nil
|
||||||
}
|
}
|
||||||
return json.Marshal(args.fields)
|
return json.Marshal(args.fields)
|
||||||
}
|
}
|
||||||
@ -108,9 +108,6 @@ func FromJSON(p string) (Args, error) {
|
|||||||
|
|
||||||
// UnmarshalJSON populates the Args from JSON encode bytes
|
// UnmarshalJSON populates the Args from JSON encode bytes
|
||||||
func (args Args) UnmarshalJSON(raw []byte) error {
|
func (args Args) UnmarshalJSON(raw []byte) error {
|
||||||
if len(raw) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return json.Unmarshal(raw, &args.fields)
|
return json.Unmarshal(raw, &args.fields)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
23
vendor/github.com/docker/docker/client/container_wait.go
generated
vendored
23
vendor/github.com/docker/docker/client/container_wait.go
generated
vendored
@ -1,14 +1,19 @@
|
|||||||
package client // import "github.com/docker/docker/client"
|
package client // import "github.com/docker/docker/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"errors"
|
||||||
|
"io"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types/container"
|
"github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/api/types/versions"
|
"github.com/docker/docker/api/types/versions"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const containerWaitErrorMsgLimit = 2 * 1024 /* Max: 2KiB */
|
||||||
|
|
||||||
// ContainerWait waits until the specified container is in a certain state
|
// ContainerWait waits until the specified container is in a certain state
|
||||||
// indicated by the given condition, either "not-running" (default),
|
// indicated by the given condition, either "not-running" (default),
|
||||||
// "next-exit", or "removed".
|
// "next-exit", or "removed".
|
||||||
@ -46,9 +51,23 @@ func (cli *Client) ContainerWait(ctx context.Context, containerID string, condit
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer ensureReaderClosed(resp)
|
defer ensureReaderClosed(resp)
|
||||||
|
|
||||||
|
body := resp.body
|
||||||
|
responseText := bytes.NewBuffer(nil)
|
||||||
|
stream := io.TeeReader(body, responseText)
|
||||||
|
|
||||||
var res container.WaitResponse
|
var res container.WaitResponse
|
||||||
if err := json.NewDecoder(resp.body).Decode(&res); err != nil {
|
if err := json.NewDecoder(stream).Decode(&res); err != nil {
|
||||||
errC <- err
|
// NOTE(nicks): The /wait API does not work well with HTTP proxies.
|
||||||
|
// At any time, the proxy could cut off the response stream.
|
||||||
|
//
|
||||||
|
// But because the HTTP status has already been written, the proxy's
|
||||||
|
// only option is to write a plaintext error message.
|
||||||
|
//
|
||||||
|
// If there's a JSON parsing error, read the real error message
|
||||||
|
// off the body and send it to the client.
|
||||||
|
_, _ = io.ReadAll(io.LimitReader(stream, containerWaitErrorMsgLimit))
|
||||||
|
errC <- errors.New(responseText.String())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
9
vendor/github.com/docker/docker/pkg/homedir/homedir_linux.go
generated
vendored
9
vendor/github.com/docker/docker/pkg/homedir/homedir_linux.go
generated
vendored
@ -91,3 +91,12 @@ func GetConfigHome() (string, error) {
|
|||||||
}
|
}
|
||||||
return filepath.Join(home, ".config"), nil
|
return filepath.Join(home, ".config"), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetLibHome returns $HOME/.local/lib
|
||||||
|
func GetLibHome() (string, error) {
|
||||||
|
home := os.Getenv("HOME")
|
||||||
|
if home == "" {
|
||||||
|
return "", errors.New("could not get HOME")
|
||||||
|
}
|
||||||
|
return filepath.Join(home, ".local/lib"), nil
|
||||||
|
}
|
||||||
|
5
vendor/github.com/docker/docker/pkg/homedir/homedir_others.go
generated
vendored
5
vendor/github.com/docker/docker/pkg/homedir/homedir_others.go
generated
vendored
@ -26,3 +26,8 @@ func GetDataHome() (string, error) {
|
|||||||
func GetConfigHome() (string, error) {
|
func GetConfigHome() (string, error) {
|
||||||
return "", errors.New("homedir.GetConfigHome() is not supported on this system")
|
return "", errors.New("homedir.GetConfigHome() is not supported on this system")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetLibHome is unsupported on non-linux system.
|
||||||
|
func GetLibHome() (string, error) {
|
||||||
|
return "", errors.New("homedir.GetLibHome() is not supported on this system")
|
||||||
|
}
|
||||||
|
16
vendor/github.com/docker/docker/pkg/ioutils/bytespipe.go
generated
vendored
16
vendor/github.com/docker/docker/pkg/ioutils/bytespipe.go
generated
vendored
@ -29,11 +29,12 @@ var (
|
|||||||
// and releases new byte slices to adjust to current needs, so the buffer
|
// and releases new byte slices to adjust to current needs, so the buffer
|
||||||
// won't be overgrown after peak loads.
|
// won't be overgrown after peak loads.
|
||||||
type BytesPipe struct {
|
type BytesPipe struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
wait *sync.Cond
|
wait *sync.Cond
|
||||||
buf []*fixedBuffer
|
buf []*fixedBuffer
|
||||||
bufLen int
|
bufLen int
|
||||||
closeErr error // error to return from next Read. set to nil if not closed.
|
closeErr error // error to return from next Read. set to nil if not closed.
|
||||||
|
readBlock bool // check read BytesPipe is Wait() or not
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBytesPipe creates new BytesPipe, initialized by specified slice.
|
// NewBytesPipe creates new BytesPipe, initialized by specified slice.
|
||||||
@ -85,6 +86,9 @@ loop0:
|
|||||||
|
|
||||||
// make sure the buffer doesn't grow too big from this write
|
// make sure the buffer doesn't grow too big from this write
|
||||||
for bp.bufLen >= blockThreshold {
|
for bp.bufLen >= blockThreshold {
|
||||||
|
if bp.readBlock {
|
||||||
|
bp.wait.Broadcast()
|
||||||
|
}
|
||||||
bp.wait.Wait()
|
bp.wait.Wait()
|
||||||
if bp.closeErr != nil {
|
if bp.closeErr != nil {
|
||||||
continue loop0
|
continue loop0
|
||||||
@ -129,7 +133,9 @@ func (bp *BytesPipe) Read(p []byte) (n int, err error) {
|
|||||||
if bp.closeErr != nil {
|
if bp.closeErr != nil {
|
||||||
return 0, bp.closeErr
|
return 0, bp.closeErr
|
||||||
}
|
}
|
||||||
|
bp.readBlock = true
|
||||||
bp.wait.Wait()
|
bp.wait.Wait()
|
||||||
|
bp.readBlock = false
|
||||||
if bp.bufLen == 0 && bp.closeErr != nil {
|
if bp.bufLen == 0 && bp.closeErr != nil {
|
||||||
return 0, bp.closeErr
|
return 0, bp.closeErr
|
||||||
}
|
}
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -242,7 +242,7 @@ github.com/docker/distribution/registry/client/transport
|
|||||||
github.com/docker/distribution/registry/storage/cache
|
github.com/docker/distribution/registry/storage/cache
|
||||||
github.com/docker/distribution/registry/storage/cache/memory
|
github.com/docker/distribution/registry/storage/cache/memory
|
||||||
github.com/docker/distribution/uuid
|
github.com/docker/distribution/uuid
|
||||||
# github.com/docker/docker v23.0.0-rc.1+incompatible
|
# github.com/docker/docker v23.0.0+incompatible
|
||||||
## explicit
|
## explicit
|
||||||
github.com/docker/docker/api
|
github.com/docker/docker/api
|
||||||
github.com/docker/docker/api/types
|
github.com/docker/docker/api/types
|
||||||
|
Loading…
x
Reference in New Issue
Block a user