Update to major version v5
> gomove github.com/containers/image/v4 github.com/containers/image/v5
+ a manual edit of go.mod
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Miloslav Trmač
4 years ago
12 | 12 |
"sync"
|
13 | 13 |
"time"
|
14 | 14 |
|
15 | |
"github.com/containers/image/v4/docker/reference"
|
16 | |
"github.com/containers/image/v4/image"
|
17 | |
"github.com/containers/image/v4/manifest"
|
18 | |
"github.com/containers/image/v4/pkg/blobinfocache"
|
19 | |
"github.com/containers/image/v4/pkg/compression"
|
20 | |
"github.com/containers/image/v4/signature"
|
21 | |
"github.com/containers/image/v4/transports"
|
22 | |
"github.com/containers/image/v4/types"
|
|
15 |
"github.com/containers/image/v5/docker/reference"
|
|
16 |
"github.com/containers/image/v5/image"
|
|
17 |
"github.com/containers/image/v5/manifest"
|
|
18 |
"github.com/containers/image/v5/pkg/blobinfocache"
|
|
19 |
"github.com/containers/image/v5/pkg/compression"
|
|
20 |
"github.com/containers/image/v5/signature"
|
|
21 |
"github.com/containers/image/v5/transports"
|
|
22 |
"github.com/containers/image/v5/types"
|
23 | 23 |
digest "github.com/opencontainers/go-digest"
|
24 | 24 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
25 | 25 |
"github.com/pkg/errors"
|
8 | 8 |
|
9 | 9 |
"github.com/pkg/errors"
|
10 | 10 |
|
11 | |
"github.com/containers/image/v4/pkg/compression"
|
|
11 |
"github.com/containers/image/v5/pkg/compression"
|
12 | 12 |
"github.com/opencontainers/go-digest"
|
13 | 13 |
"github.com/stretchr/testify/assert"
|
14 | 14 |
"github.com/stretchr/testify/require"
|
3 | 3 |
"context"
|
4 | 4 |
"strings"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/manifest"
|
7 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/manifest"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/pkg/errors"
|
9 | 9 |
"github.com/sirupsen/logrus"
|
10 | 10 |
)
|
5 | 5 |
"fmt"
|
6 | 6 |
"testing"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker/reference"
|
9 | |
"github.com/containers/image/v4/manifest"
|
10 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/docker/reference"
|
|
9 |
"github.com/containers/image/v5/manifest"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/opencontainers/image-spec/specs-go/v1"
|
12 | 12 |
"github.com/stretchr/testify/assert"
|
13 | 13 |
"github.com/stretchr/testify/require"
|
3 | 3 |
"io"
|
4 | 4 |
"time"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
)
|
8 | 8 |
|
9 | 9 |
// progressReader is a reader that reports its progress on an interval.
|
0 | 0 |
package copy
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"github.com/containers/image/v4/signature"
|
4 | |
"github.com/containers/image/v4/transports"
|
|
3 |
"github.com/containers/image/v5/signature"
|
|
4 |
"github.com/containers/image/v5/transports"
|
5 | 5 |
"github.com/pkg/errors"
|
6 | 6 |
)
|
7 | 7 |
|
5 | 5 |
"os"
|
6 | 6 |
"testing"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/directory"
|
9 | |
"github.com/containers/image/v4/docker"
|
10 | |
"github.com/containers/image/v4/manifest"
|
11 | |
"github.com/containers/image/v4/signature"
|
12 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/directory"
|
|
9 |
"github.com/containers/image/v5/docker"
|
|
10 |
"github.com/containers/image/v5/manifest"
|
|
11 |
"github.com/containers/image/v5/signature"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
"github.com/stretchr/testify/assert"
|
14 | 14 |
"github.com/stretchr/testify/require"
|
15 | 15 |
)
|
6 | 6 |
"os"
|
7 | 7 |
"path/filepath"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
"github.com/opencontainers/go-digest"
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
"github.com/sirupsen/logrus"
|
5 | 5 |
"io/ioutil"
|
6 | 6 |
"os"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/manifest"
|
9 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/manifest"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
"github.com/opencontainers/go-digest"
|
11 | 11 |
)
|
12 | 12 |
|
6 | 6 |
"os"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/manifest"
|
10 | |
"github.com/containers/image/v4/pkg/blobinfocache/memory"
|
11 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/manifest"
|
|
10 |
"github.com/containers/image/v5/pkg/blobinfocache/memory"
|
|
11 |
"github.com/containers/image/v5/types"
|
12 | 12 |
"github.com/opencontainers/go-digest"
|
13 | 13 |
"github.com/pkg/errors"
|
14 | 14 |
"github.com/stretchr/testify/assert"
|
5 | 5 |
"path/filepath"
|
6 | 6 |
"strings"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/directory/explicitfilepath"
|
9 | |
"github.com/containers/image/v4/docker/reference"
|
10 | |
"github.com/containers/image/v4/image"
|
11 | |
"github.com/containers/image/v4/transports"
|
12 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/directory/explicitfilepath"
|
|
9 |
"github.com/containers/image/v5/docker/reference"
|
|
10 |
"github.com/containers/image/v5/image"
|
|
11 |
"github.com/containers/image/v5/transports"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
"github.com/opencontainers/go-digest"
|
14 | 14 |
"github.com/pkg/errors"
|
15 | 15 |
)
|
6 | 6 |
"path/filepath"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
|
10 | |
"github.com/containers/image/v4/types"
|
|
9 |
_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
digest "github.com/opencontainers/go-digest"
|
12 | 12 |
"github.com/stretchr/testify/assert"
|
13 | 13 |
"github.com/stretchr/testify/require"
|
6 | 6 |
"path/filepath"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
|
|
9 |
_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
|
10 | 10 |
"github.com/stretchr/testify/assert"
|
11 | 11 |
"github.com/stretchr/testify/require"
|
12 | 12 |
)
|
5 | 5 |
// "context"
|
6 | 6 |
// "fmt"
|
7 | 7 |
//
|
8 | |
// "github.com/containers/image/v4/docker"
|
|
8 |
// "github.com/containers/image/v5/docker"
|
9 | 9 |
// )
|
10 | 10 |
//
|
11 | 11 |
// func main() {
|
4 | 4 |
"io"
|
5 | 5 |
"os"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/tarfile"
|
8 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/docker/tarfile"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
"github.com/pkg/errors"
|
10 | 10 |
)
|
11 | 11 |
|
1 | 1 |
|
2 | 2 |
import (
|
3 | 3 |
"context"
|
4 | |
"github.com/containers/image/v4/docker/tarfile"
|
5 | |
"github.com/containers/image/v4/types"
|
|
4 |
"github.com/containers/image/v5/docker/tarfile"
|
|
5 |
"github.com/containers/image/v5/types"
|
6 | 6 |
"github.com/sirupsen/logrus"
|
7 | 7 |
)
|
8 | 8 |
|
4 | 4 |
"fmt"
|
5 | 5 |
"strings"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/reference"
|
8 | |
ctrImage "github.com/containers/image/v4/image"
|
9 | |
"github.com/containers/image/v4/transports"
|
10 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/docker/reference"
|
|
8 |
ctrImage "github.com/containers/image/v5/image"
|
|
9 |
"github.com/containers/image/v5/transports"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
)
|
13 | 13 |
|
7 | 7 |
"path/filepath"
|
8 | 8 |
"testing"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/docker/reference"
|
11 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/docker/reference"
|
|
11 |
"github.com/containers/image/v5/types"
|
12 | 12 |
"github.com/stretchr/testify/assert"
|
13 | 13 |
"github.com/stretchr/testify/require"
|
14 | 14 |
)
|
0 | 0 |
package docker
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"github.com/containers/image/v4/docker/reference"
|
4 | |
"github.com/containers/image/v4/types"
|
|
3 |
"github.com/containers/image/v5/docker/reference"
|
|
4 |
"github.com/containers/image/v5/types"
|
5 | 5 |
)
|
6 | 6 |
|
7 | 7 |
// bicTransportScope returns a BICTransportScope appropriate for ref.
|
3 | 3 |
"net/http"
|
4 | 4 |
"path/filepath"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
dockerclient "github.com/docker/docker/client"
|
8 | 8 |
"github.com/docker/go-connections/tlsconfig"
|
9 | 9 |
)
|
1 | 1 |
|
2 | 2 |
import "testing"
|
3 | 3 |
import (
|
4 | |
"github.com/containers/image/v4/types"
|
|
4 |
"github.com/containers/image/v5/types"
|
5 | 5 |
dockerclient "github.com/docker/docker/client"
|
6 | 6 |
"github.com/stretchr/testify/assert"
|
7 | 7 |
"net/http"
|
3 | 3 |
"context"
|
4 | 4 |
"io"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/docker/reference"
|
7 | |
"github.com/containers/image/v4/docker/tarfile"
|
8 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/docker/reference"
|
|
7 |
"github.com/containers/image/v5/docker/tarfile"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
"github.com/docker/docker/client"
|
10 | 10 |
"github.com/pkg/errors"
|
11 | 11 |
"github.com/sirupsen/logrus"
|
2 | 2 |
import (
|
3 | 3 |
"context"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/docker/tarfile"
|
6 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/docker/tarfile"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
"github.com/pkg/errors"
|
8 | 8 |
)
|
9 | 9 |
|
3 | 3 |
"context"
|
4 | 4 |
"fmt"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/docker/policyconfiguration"
|
7 | |
"github.com/containers/image/v4/docker/reference"
|
8 | |
"github.com/containers/image/v4/image"
|
9 | |
"github.com/containers/image/v4/transports"
|
10 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/docker/policyconfiguration"
|
|
7 |
"github.com/containers/image/v5/docker/reference"
|
|
8 |
"github.com/containers/image/v5/image"
|
|
9 |
"github.com/containers/image/v5/transports"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/opencontainers/go-digest"
|
12 | 12 |
"github.com/pkg/errors"
|
13 | 13 |
)
|
3 | 3 |
"context"
|
4 | 4 |
"testing"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/docker/reference"
|
7 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/docker/reference"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/opencontainers/go-digest"
|
9 | 9 |
"github.com/stretchr/testify/assert"
|
10 | 10 |
"github.com/stretchr/testify/require"
|
15 | 15 |
"sync"
|
16 | 16 |
"time"
|
17 | 17 |
|
18 | |
"github.com/containers/image/v4/docker/reference"
|
19 | |
"github.com/containers/image/v4/pkg/docker/config"
|
20 | |
"github.com/containers/image/v4/pkg/sysregistriesv2"
|
21 | |
"github.com/containers/image/v4/pkg/tlsclientconfig"
|
22 | |
"github.com/containers/image/v4/types"
|
|
18 |
"github.com/containers/image/v5/docker/reference"
|
|
19 |
"github.com/containers/image/v5/pkg/docker/config"
|
|
20 |
"github.com/containers/image/v5/pkg/sysregistriesv2"
|
|
21 |
"github.com/containers/image/v5/pkg/tlsclientconfig"
|
|
22 |
"github.com/containers/image/v5/types"
|
23 | 23 |
clientLib "github.com/docker/distribution/registry/client"
|
24 | 24 |
"github.com/docker/go-connections/tlsconfig"
|
25 | 25 |
digest "github.com/opencontainers/go-digest"
|
7 | 7 |
|
8 | 8 |
"github.com/stretchr/testify/require"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/stretchr/testify/assert"
|
12 | 12 |
)
|
13 | 13 |
|
6 | 6 |
"net/url"
|
7 | 7 |
"strings"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/docker/reference"
|
10 | |
"github.com/containers/image/v4/image"
|
11 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/docker/reference"
|
|
10 |
"github.com/containers/image/v5/image"
|
|
11 |
"github.com/containers/image/v5/types"
|
12 | 12 |
"github.com/pkg/errors"
|
13 | 13 |
)
|
14 | 14 |
|
13 | 13 |
"path/filepath"
|
14 | 14 |
"strings"
|
15 | 15 |
|
16 | |
"github.com/containers/image/v4/docker/reference"
|
17 | |
"github.com/containers/image/v4/manifest"
|
18 | |
"github.com/containers/image/v4/pkg/blobinfocache/none"
|
19 | |
"github.com/containers/image/v4/types"
|
|
16 |
"github.com/containers/image/v5/docker/reference"
|
|
17 |
"github.com/containers/image/v5/manifest"
|
|
18 |
"github.com/containers/image/v5/pkg/blobinfocache/none"
|
|
19 |
"github.com/containers/image/v5/types"
|
20 | 20 |
"github.com/docker/distribution/registry/api/errcode"
|
21 | 21 |
v2 "github.com/docker/distribution/registry/api/v2"
|
22 | 22 |
"github.com/docker/distribution/registry/client"
|
10 | 10 |
"os"
|
11 | 11 |
"strconv"
|
12 | 12 |
|
13 | |
"github.com/containers/image/v4/docker/reference"
|
14 | |
"github.com/containers/image/v4/manifest"
|
15 | |
"github.com/containers/image/v4/pkg/sysregistriesv2"
|
16 | |
"github.com/containers/image/v4/types"
|
|
13 |
"github.com/containers/image/v5/docker/reference"
|
|
14 |
"github.com/containers/image/v5/manifest"
|
|
15 |
"github.com/containers/image/v5/pkg/sysregistriesv2"
|
|
16 |
"github.com/containers/image/v5/types"
|
17 | 17 |
"github.com/docker/distribution/registry/client"
|
18 | 18 |
digest "github.com/opencontainers/go-digest"
|
19 | 19 |
"github.com/pkg/errors"
|
4 | 4 |
"fmt"
|
5 | 5 |
"strings"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/policyconfiguration"
|
8 | |
"github.com/containers/image/v4/docker/reference"
|
9 | |
"github.com/containers/image/v4/transports"
|
10 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/docker/policyconfiguration"
|
|
8 |
"github.com/containers/image/v5/docker/reference"
|
|
9 |
"github.com/containers/image/v5/transports"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
)
|
13 | 13 |
|
3 | 3 |
"context"
|
4 | 4 |
"testing"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/docker/reference"
|
7 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/docker/reference"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/stretchr/testify/assert"
|
9 | 9 |
"github.com/stretchr/testify/require"
|
10 | 10 |
)
|
8 | 8 |
"path/filepath"
|
9 | 9 |
"strings"
|
10 | 10 |
|
11 | |
"github.com/containers/image/v4/docker/reference"
|
12 | |
"github.com/containers/image/v4/types"
|
|
11 |
"github.com/containers/image/v5/docker/reference"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
"github.com/ghodss/yaml"
|
14 | 14 |
"github.com/opencontainers/go-digest"
|
15 | 15 |
"github.com/pkg/errors"
|
7 | 7 |
"path/filepath"
|
8 | 8 |
"testing"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/stretchr/testify/assert"
|
12 | 12 |
"github.com/stretchr/testify/require"
|
13 | 13 |
)
|
2 | 2 |
import (
|
3 | 3 |
"strings"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/docker/reference"
|
|
5 |
"github.com/containers/image/v5/docker/reference"
|
6 | 6 |
"github.com/pkg/errors"
|
7 | 7 |
)
|
8 | 8 |
|
4 | 4 |
"strings"
|
5 | 5 |
"testing"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/reference"
|
|
7 |
"github.com/containers/image/v5/docker/reference"
|
8 | 8 |
"github.com/stretchr/testify/assert"
|
9 | 9 |
"github.com/stretchr/testify/require"
|
10 | 10 |
)
|
11 | 11 |
"path/filepath"
|
12 | 12 |
"time"
|
13 | 13 |
|
14 | |
"github.com/containers/image/v4/docker/reference"
|
15 | |
"github.com/containers/image/v4/internal/tmpdir"
|
16 | |
"github.com/containers/image/v4/manifest"
|
17 | |
"github.com/containers/image/v4/types"
|
|
14 |
"github.com/containers/image/v5/docker/reference"
|
|
15 |
"github.com/containers/image/v5/internal/tmpdir"
|
|
16 |
"github.com/containers/image/v5/manifest"
|
|
17 |
"github.com/containers/image/v5/types"
|
18 | 18 |
"github.com/opencontainers/go-digest"
|
19 | 19 |
"github.com/pkg/errors"
|
20 | 20 |
"github.com/sirupsen/logrus"
|
10 | 10 |
"path"
|
11 | 11 |
"sync"
|
12 | 12 |
|
13 | |
"github.com/containers/image/v4/internal/tmpdir"
|
14 | |
"github.com/containers/image/v4/manifest"
|
15 | |
"github.com/containers/image/v4/pkg/compression"
|
16 | |
"github.com/containers/image/v4/types"
|
|
13 |
"github.com/containers/image/v5/internal/tmpdir"
|
|
14 |
"github.com/containers/image/v5/manifest"
|
|
15 |
"github.com/containers/image/v5/pkg/compression"
|
|
16 |
"github.com/containers/image/v5/types"
|
17 | 17 |
digest "github.com/opencontainers/go-digest"
|
18 | 18 |
"github.com/pkg/errors"
|
19 | 19 |
)
|
0 | 0 |
package tarfile
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"github.com/containers/image/v4/manifest"
|
|
3 |
"github.com/containers/image/v5/manifest"
|
4 | 4 |
"github.com/opencontainers/go-digest"
|
5 | 5 |
)
|
6 | 6 |
|
0 | |
module github.com/containers/image/v4
|
|
0 |
module github.com/containers/image/v5
|
1 | 1 |
|
2 | 2 |
go 1.11
|
3 | 3 |
|
2 | 2 |
import (
|
3 | 3 |
"context"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/manifest"
|
6 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/manifest"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
"github.com/pkg/errors"
|
8 | 8 |
)
|
9 | 9 |
|
2 | 2 |
import (
|
3 | 3 |
"context"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/docker/reference"
|
6 | |
"github.com/containers/image/v4/manifest"
|
7 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/docker/reference"
|
|
6 |
"github.com/containers/image/v5/manifest"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/opencontainers/go-digest"
|
9 | 9 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
10 | 10 |
"github.com/pkg/errors"
|
7 | 7 |
"testing"
|
8 | 8 |
"time"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/docker/reference"
|
11 | |
"github.com/containers/image/v4/manifest"
|
12 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/docker/reference"
|
|
11 |
"github.com/containers/image/v5/manifest"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
digest "github.com/opencontainers/go-digest"
|
14 | 14 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
15 | 15 |
"github.com/stretchr/testify/assert"
|
9 | 9 |
"io/ioutil"
|
10 | 10 |
"strings"
|
11 | 11 |
|
12 | |
"github.com/containers/image/v4/docker/reference"
|
13 | |
"github.com/containers/image/v4/manifest"
|
14 | |
"github.com/containers/image/v4/pkg/blobinfocache/none"
|
15 | |
"github.com/containers/image/v4/types"
|
|
12 |
"github.com/containers/image/v5/docker/reference"
|
|
13 |
"github.com/containers/image/v5/manifest"
|
|
14 |
"github.com/containers/image/v5/pkg/blobinfocache/none"
|
|
15 |
"github.com/containers/image/v5/types"
|
16 | 16 |
"github.com/opencontainers/go-digest"
|
17 | 17 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
18 | 18 |
"github.com/pkg/errors"
|
9 | 9 |
"testing"
|
10 | 10 |
"time"
|
11 | 11 |
|
12 | |
"github.com/containers/image/v4/docker/reference"
|
13 | |
"github.com/containers/image/v4/manifest"
|
14 | |
"github.com/containers/image/v4/types"
|
|
12 |
"github.com/containers/image/v5/docker/reference"
|
|
13 |
"github.com/containers/image/v5/manifest"
|
|
14 |
"github.com/containers/image/v5/types"
|
15 | 15 |
"github.com/opencontainers/go-digest"
|
16 | 16 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
17 | 17 |
"github.com/pkg/errors"
|
3 | 3 |
"context"
|
4 | 4 |
"fmt"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/docker/reference"
|
7 | |
"github.com/containers/image/v4/manifest"
|
8 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/docker/reference"
|
|
7 |
"github.com/containers/image/v5/manifest"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
10 | 10 |
)
|
11 | 11 |
|
2 | 2 |
import (
|
3 | 3 |
"testing"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/manifest"
|
6 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/manifest"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
"github.com/stretchr/testify/assert"
|
8 | 8 |
)
|
9 | 9 |
|
4 | 4 |
|
5 | 5 |
"github.com/pkg/errors"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
)
|
9 | 9 |
|
10 | 10 |
// memoryImage is a mostly-implementation of types.Image assembled from data
|
5 | 5 |
"fmt"
|
6 | 6 |
"io/ioutil"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker/reference"
|
9 | |
"github.com/containers/image/v4/manifest"
|
10 | |
"github.com/containers/image/v4/pkg/blobinfocache/none"
|
11 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/docker/reference"
|
|
9 |
"github.com/containers/image/v5/manifest"
|
|
10 |
"github.com/containers/image/v5/pkg/blobinfocache/none"
|
|
11 |
"github.com/containers/image/v5/types"
|
12 | 12 |
"github.com/opencontainers/go-digest"
|
13 | 13 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
14 | 14 |
"github.com/pkg/errors"
|
2 | 2 |
import (
|
3 | 3 |
"context"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/manifest"
|
6 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/manifest"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
"github.com/pkg/errors"
|
8 | 8 |
)
|
9 | 9 |
|
9 | 9 |
"testing"
|
10 | 10 |
"time"
|
11 | 11 |
|
12 | |
"github.com/containers/image/v4/docker/reference"
|
13 | |
"github.com/containers/image/v4/manifest"
|
14 | |
"github.com/containers/image/v4/types"
|
|
12 |
"github.com/containers/image/v5/docker/reference"
|
|
13 |
"github.com/containers/image/v5/manifest"
|
|
14 |
"github.com/containers/image/v5/types"
|
15 | 15 |
"github.com/opencontainers/go-digest"
|
16 | 16 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
17 | 17 |
"github.com/pkg/errors"
|
5 | 5 |
import (
|
6 | 6 |
"context"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
)
|
10 | 10 |
|
11 | 11 |
// imageCloser implements types.ImageCloser, perhaps allowing simple users
|
2 | 2 |
import (
|
3 | 3 |
"context"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/docker/reference"
|
6 | |
"github.com/containers/image/v4/manifest"
|
7 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/docker/reference"
|
|
6 |
"github.com/containers/image/v5/manifest"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/opencontainers/go-digest"
|
9 | 9 |
"github.com/pkg/errors"
|
10 | 10 |
)
|
0 | 0 |
package mocks
|
1 | 1 |
|
2 | |
import "github.com/containers/image/v4/types"
|
|
2 |
import "github.com/containers/image/v5/types"
|
3 | 3 |
|
4 | 4 |
// NameImageTransport is a mock of types.ImageTransport which returns itself in Name.
|
5 | 5 |
type NameImageTransport string
|
5 | 5 |
"strings"
|
6 | 6 |
"time"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker/reference"
|
9 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/docker/reference"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
"github.com/docker/docker/api/types/versions"
|
11 | 11 |
"github.com/opencontainers/go-digest"
|
12 | 12 |
"github.com/pkg/errors"
|
5 | 5 |
"testing"
|
6 | 6 |
"time"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
"github.com/stretchr/testify/assert"
|
10 | 10 |
"github.com/stretchr/testify/require"
|
11 | 11 |
)
|
4 | 4 |
"fmt"
|
5 | 5 |
"time"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/pkg/compression"
|
8 | |
"github.com/containers/image/v4/pkg/strslice"
|
9 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/pkg/compression"
|
|
8 |
"github.com/containers/image/v5/pkg/strslice"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
"github.com/opencontainers/go-digest"
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
"github.com/sirupsen/logrus"
|
4 | 4 |
"fmt"
|
5 | 5 |
"runtime"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/opencontainers/go-digest"
|
9 | 9 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
10 | 10 |
"github.com/pkg/errors"
|
3 | 3 |
"io/ioutil"
|
4 | 4 |
"testing"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/pkg/compression"
|
7 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/pkg/compression"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/stretchr/testify/assert"
|
9 | 9 |
)
|
10 | 10 |
|
2 | 2 |
import (
|
3 | 3 |
"fmt"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/types"
|
6 | 6 |
digest "github.com/opencontainers/go-digest"
|
7 | 7 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
8 | 8 |
)
|
4 | 4 |
"path/filepath"
|
5 | 5 |
"testing"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
digest "github.com/opencontainers/go-digest"
|
9 | 9 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
10 | 10 |
"github.com/stretchr/testify/assert"
|
3 | 3 |
"encoding/json"
|
4 | 4 |
"fmt"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
"github.com/containers/libtrust"
|
8 | 8 |
digest "github.com/opencontainers/go-digest"
|
9 | 9 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
4 | 4 |
"path/filepath"
|
5 | 5 |
"testing"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/containers/libtrust"
|
9 | 9 |
digest "github.com/opencontainers/go-digest"
|
10 | 10 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
3 | 3 |
"encoding/json"
|
4 | 4 |
"fmt"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/pkg/compression"
|
7 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/pkg/compression"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/opencontainers/go-digest"
|
9 | 9 |
"github.com/opencontainers/image-spec/specs-go"
|
10 | 10 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
4 | 4 |
"fmt"
|
5 | 5 |
"runtime"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/opencontainers/go-digest"
|
9 | 9 |
imgspec "github.com/opencontainers/image-spec/specs-go"
|
10 | 10 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
3 | 3 |
"io/ioutil"
|
4 | 4 |
"testing"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/pkg/compression"
|
7 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/pkg/compression"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
9 | 9 |
"github.com/stretchr/testify/assert"
|
10 | 10 |
)
|
4 | 4 |
"io"
|
5 | 5 |
"os"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/containers/storage/pkg/archive"
|
9 | 9 |
digest "github.com/opencontainers/go-digest"
|
10 | 10 |
"github.com/pkg/errors"
|
3 | 3 |
"context"
|
4 | 4 |
"io"
|
5 | 5 |
|
6 | |
ocilayout "github.com/containers/image/v4/oci/layout"
|
7 | |
"github.com/containers/image/v4/types"
|
|
6 |
ocilayout "github.com/containers/image/v5/oci/layout"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
digest "github.com/opencontainers/go-digest"
|
9 | 9 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
10 | 10 |
"github.com/pkg/errors"
|
6 | 6 |
"os"
|
7 | 7 |
"strings"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/directory/explicitfilepath"
|
10 | |
"github.com/containers/image/v4/docker/reference"
|
11 | |
"github.com/containers/image/v4/image"
|
12 | |
"github.com/containers/image/v4/internal/tmpdir"
|
13 | |
"github.com/containers/image/v4/oci/internal"
|
14 | |
ocilayout "github.com/containers/image/v4/oci/layout"
|
15 | |
"github.com/containers/image/v4/transports"
|
16 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/directory/explicitfilepath"
|
|
10 |
"github.com/containers/image/v5/docker/reference"
|
|
11 |
"github.com/containers/image/v5/image"
|
|
12 |
"github.com/containers/image/v5/internal/tmpdir"
|
|
13 |
"github.com/containers/image/v5/oci/internal"
|
|
14 |
ocilayout "github.com/containers/image/v5/oci/layout"
|
|
15 |
"github.com/containers/image/v5/transports"
|
|
16 |
"github.com/containers/image/v5/types"
|
17 | 17 |
"github.com/containers/storage/pkg/archive"
|
18 | 18 |
"github.com/pkg/errors"
|
19 | 19 |
)
|
6 | 6 |
"path/filepath"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
|
10 | |
"github.com/containers/image/v4/types"
|
|
9 |
_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/stretchr/testify/assert"
|
12 | 12 |
"github.com/stretchr/testify/require"
|
13 | 13 |
)
|
8 | 8 |
"path/filepath"
|
9 | 9 |
"runtime"
|
10 | 10 |
|
11 | |
"github.com/containers/image/v4/manifest"
|
12 | |
"github.com/containers/image/v4/types"
|
|
11 |
"github.com/containers/image/v5/manifest"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
digest "github.com/opencontainers/go-digest"
|
14 | 14 |
imgspec "github.com/opencontainers/image-spec/specs-go"
|
15 | 15 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
7 | 7 |
"path/filepath"
|
8 | 8 |
"testing"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/pkg/blobinfocache/memory"
|
11 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/pkg/blobinfocache/memory"
|
|
11 |
"github.com/containers/image/v5/types"
|
12 | 12 |
digest "github.com/opencontainers/go-digest"
|
13 | 13 |
"github.com/pkg/errors"
|
14 | 14 |
"github.com/stretchr/testify/assert"
|
7 | 7 |
"os"
|
8 | 8 |
"strconv"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/manifest"
|
11 | |
"github.com/containers/image/v4/pkg/tlsclientconfig"
|
12 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/manifest"
|
|
11 |
"github.com/containers/image/v5/pkg/tlsclientconfig"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
"github.com/docker/go-connections/tlsconfig"
|
14 | 14 |
"github.com/opencontainers/go-digest"
|
15 | 15 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
11 | 11 |
"strings"
|
12 | 12 |
"testing"
|
13 | 13 |
|
14 | |
"github.com/containers/image/v4/pkg/blobinfocache/memory"
|
15 | |
"github.com/containers/image/v4/types"
|
|
14 |
"github.com/containers/image/v5/pkg/blobinfocache/memory"
|
|
15 |
"github.com/containers/image/v5/types"
|
16 | 16 |
digest "github.com/opencontainers/go-digest"
|
17 | 17 |
"github.com/stretchr/testify/assert"
|
18 | 18 |
"github.com/stretchr/testify/require"
|
7 | 7 |
"path/filepath"
|
8 | 8 |
"strings"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/directory/explicitfilepath"
|
11 | |
"github.com/containers/image/v4/docker/reference"
|
12 | |
"github.com/containers/image/v4/image"
|
13 | |
"github.com/containers/image/v4/oci/internal"
|
14 | |
"github.com/containers/image/v4/transports"
|
15 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/directory/explicitfilepath"
|
|
11 |
"github.com/containers/image/v5/docker/reference"
|
|
12 |
"github.com/containers/image/v5/image"
|
|
13 |
"github.com/containers/image/v5/oci/internal"
|
|
14 |
"github.com/containers/image/v5/transports"
|
|
15 |
"github.com/containers/image/v5/types"
|
16 | 16 |
"github.com/opencontainers/go-digest"
|
17 | 17 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
18 | 18 |
"github.com/pkg/errors"
|
6 | 6 |
"path/filepath"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
|
10 | |
"github.com/containers/image/v4/types"
|
|
9 |
_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/stretchr/testify/assert"
|
12 | 12 |
"github.com/stretchr/testify/require"
|
13 | 13 |
)
|
11 | 11 |
"net/url"
|
12 | 12 |
"strings"
|
13 | 13 |
|
14 | |
"github.com/containers/image/v4/docker"
|
15 | |
"github.com/containers/image/v4/docker/reference"
|
16 | |
"github.com/containers/image/v4/manifest"
|
17 | |
"github.com/containers/image/v4/types"
|
18 | |
"github.com/containers/image/v4/version"
|
|
14 |
"github.com/containers/image/v5/docker"
|
|
15 |
"github.com/containers/image/v5/docker/reference"
|
|
16 |
"github.com/containers/image/v5/manifest"
|
|
17 |
"github.com/containers/image/v5/types"
|
|
18 |
"github.com/containers/image/v5/version"
|
19 | 19 |
"github.com/opencontainers/go-digest"
|
20 | 20 |
"github.com/pkg/errors"
|
21 | 21 |
"github.com/sirupsen/logrus"
|
5 | 5 |
"regexp"
|
6 | 6 |
"strings"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker/policyconfiguration"
|
9 | |
"github.com/containers/image/v4/docker/reference"
|
10 | |
genericImage "github.com/containers/image/v4/image"
|
11 | |
"github.com/containers/image/v4/transports"
|
12 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/docker/policyconfiguration"
|
|
9 |
"github.com/containers/image/v5/docker/reference"
|
|
10 |
genericImage "github.com/containers/image/v5/image"
|
|
11 |
"github.com/containers/image/v5/transports"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
"github.com/pkg/errors"
|
14 | 14 |
)
|
15 | 15 |
|
3 | 3 |
"context"
|
4 | 4 |
"testing"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/docker/reference"
|
|
6 |
"github.com/containers/image/v5/docker/reference"
|
7 | 7 |
"github.com/stretchr/testify/assert"
|
8 | 8 |
"github.com/stretchr/testify/require"
|
9 | 9 |
)
|
19 | 19 |
"time"
|
20 | 20 |
"unsafe"
|
21 | 21 |
|
22 | |
"github.com/containers/image/v4/manifest"
|
23 | |
"github.com/containers/image/v4/types"
|
|
22 |
"github.com/containers/image/v5/manifest"
|
|
23 |
"github.com/containers/image/v5/types"
|
24 | 24 |
"github.com/containers/storage/pkg/archive"
|
25 | 25 |
"github.com/klauspost/pgzip"
|
26 | 26 |
"github.com/opencontainers/go-digest"
|
12 | 12 |
"strings"
|
13 | 13 |
"unsafe"
|
14 | 14 |
|
15 | |
"github.com/containers/image/v4/manifest"
|
16 | |
"github.com/containers/image/v4/types"
|
|
15 |
"github.com/containers/image/v5/manifest"
|
|
16 |
"github.com/containers/image/v5/types"
|
17 | 17 |
"github.com/containers/storage/pkg/ioutils"
|
18 | 18 |
"github.com/klauspost/pgzip"
|
19 | 19 |
digest "github.com/opencontainers/go-digest"
|
10 | 10 |
"regexp"
|
11 | 11 |
"strings"
|
12 | 12 |
|
13 | |
"github.com/containers/image/v4/directory/explicitfilepath"
|
14 | |
"github.com/containers/image/v4/docker/reference"
|
15 | |
"github.com/containers/image/v4/image"
|
16 | |
"github.com/containers/image/v4/transports"
|
17 | |
"github.com/containers/image/v4/types"
|
|
13 |
"github.com/containers/image/v5/directory/explicitfilepath"
|
|
14 |
"github.com/containers/image/v5/docker/reference"
|
|
15 |
"github.com/containers/image/v5/image"
|
|
16 |
"github.com/containers/image/v5/transports"
|
|
17 |
"github.com/containers/image/v5/types"
|
18 | 18 |
"github.com/pkg/errors"
|
19 | 19 |
)
|
20 | 20 |
|
10 | 10 |
"strings"
|
11 | 11 |
"testing"
|
12 | 12 |
|
13 | |
_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
|
14 | |
"github.com/containers/image/v4/types"
|
|
13 |
_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
|
|
14 |
"github.com/containers/image/v5/types"
|
15 | 15 |
"github.com/stretchr/testify/assert"
|
16 | 16 |
"github.com/stretchr/testify/require"
|
17 | 17 |
)
|
6 | 6 |
"sync"
|
7 | 7 |
"time"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/pkg/blobinfocache/internal/prioritize"
|
10 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/pkg/blobinfocache/internal/prioritize"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
bolt "github.com/etcd-io/bbolt"
|
12 | 12 |
"github.com/opencontainers/go-digest"
|
13 | 13 |
"github.com/sirupsen/logrus"
|
5 | 5 |
"path/filepath"
|
6 | 6 |
"testing"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/pkg/blobinfocache/internal/test"
|
9 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/pkg/blobinfocache/internal/test"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
"github.com/stretchr/testify/require"
|
11 | 11 |
)
|
12 | 12 |
|
5 | 5 |
"path/filepath"
|
6 | 6 |
"strconv"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/pkg/blobinfocache/boltdb"
|
9 | |
"github.com/containers/image/v4/pkg/blobinfocache/memory"
|
10 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/pkg/blobinfocache/boltdb"
|
|
9 |
"github.com/containers/image/v5/pkg/blobinfocache/memory"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/sirupsen/logrus"
|
12 | 12 |
)
|
13 | 13 |
|
8 | 8 |
"github.com/sirupsen/logrus"
|
9 | 9 |
"github.com/stretchr/testify/require"
|
10 | 10 |
|
11 | |
"github.com/containers/image/v4/pkg/blobinfocache/boltdb"
|
12 | |
"github.com/containers/image/v4/pkg/blobinfocache/memory"
|
13 | |
"github.com/containers/image/v4/types"
|
|
11 |
"github.com/containers/image/v5/pkg/blobinfocache/boltdb"
|
|
12 |
"github.com/containers/image/v5/pkg/blobinfocache/memory"
|
|
13 |
"github.com/containers/image/v5/types"
|
14 | 14 |
"github.com/stretchr/testify/assert"
|
15 | 15 |
)
|
16 | 16 |
|
5 | 5 |
"sort"
|
6 | 6 |
"time"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
"github.com/opencontainers/go-digest"
|
10 | 10 |
)
|
11 | 11 |
|
4 | 4 |
"testing"
|
5 | 5 |
"time"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/opencontainers/go-digest"
|
9 | 9 |
"github.com/stretchr/testify/assert"
|
10 | 10 |
)
|
3 | 3 |
import (
|
4 | 4 |
"testing"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/internal/testing/mocks"
|
|
6 |
"github.com/containers/image/v5/internal/testing/mocks"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
digest "github.com/opencontainers/go-digest"
|
10 | 10 |
"github.com/stretchr/testify/assert"
|
11 | 11 |
)
|
4 | 4 |
"sync"
|
5 | 5 |
"time"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/pkg/blobinfocache/internal/prioritize"
|
8 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/pkg/blobinfocache/internal/prioritize"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
digest "github.com/opencontainers/go-digest"
|
10 | 10 |
"github.com/sirupsen/logrus"
|
11 | 11 |
)
|
2 | 2 |
import (
|
3 | 3 |
"testing"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/pkg/blobinfocache/internal/test"
|
6 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/pkg/blobinfocache/internal/test"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
)
|
8 | 8 |
|
9 | 9 |
func newTestCache(t *testing.T) (types.BlobInfoCache, func(t *testing.T)) {
|
1 | 1 |
package none
|
2 | 2 |
|
3 | 3 |
import (
|
4 | |
"github.com/containers/image/v4/types"
|
|
4 |
"github.com/containers/image/v5/types"
|
5 | 5 |
"github.com/opencontainers/go-digest"
|
6 | 6 |
)
|
7 | 7 |
|
6 | 6 |
"io"
|
7 | 7 |
"io/ioutil"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/pkg/compression/internal"
|
10 | |
"github.com/containers/image/v4/pkg/compression/types"
|
|
9 |
"github.com/containers/image/v5/pkg/compression/internal"
|
|
10 |
"github.com/containers/image/v5/pkg/compression/types"
|
11 | 11 |
"github.com/klauspost/pgzip"
|
12 | 12 |
"github.com/pkg/errors"
|
13 | 13 |
"github.com/sirupsen/logrus"
|
0 | 0 |
package types
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"github.com/containers/image/v4/pkg/compression/internal"
|
|
3 |
"github.com/containers/image/v5/pkg/compression/internal"
|
4 | 4 |
)
|
5 | 5 |
|
6 | 6 |
// DecompressorFunc returns the decompressed stream, given a compressed stream.
|
8 | 8 |
"path/filepath"
|
9 | 9 |
"strings"
|
10 | 10 |
|
11 | |
"github.com/containers/image/v4/types"
|
|
11 |
"github.com/containers/image/v5/types"
|
12 | 12 |
helperclient "github.com/docker/docker-credential-helpers/client"
|
13 | 13 |
"github.com/docker/docker-credential-helpers/credentials"
|
14 | 14 |
"github.com/docker/docker/pkg/homedir"
|
3 | 3 |
"fmt"
|
4 | 4 |
"strings"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/internal/pkg/keyctl"
|
|
6 |
"github.com/containers/image/v5/internal/pkg/keyctl"
|
7 | 7 |
"github.com/pkg/errors"
|
8 | 8 |
"github.com/sirupsen/logrus"
|
9 | 9 |
)
|
7 | 7 |
"path/filepath"
|
8 | 8 |
"testing"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/containers/storage/pkg/homedir"
|
12 | 12 |
"github.com/pkg/errors"
|
13 | 13 |
"github.com/stretchr/testify/assert"
|
9 | 9 |
"sync"
|
10 | 10 |
|
11 | 11 |
"github.com/BurntSushi/toml"
|
12 | |
"github.com/containers/image/v4/types"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
"github.com/pkg/errors"
|
14 | 14 |
"github.com/sirupsen/logrus"
|
15 | 15 |
|
16 | |
"github.com/containers/image/v4/docker/reference"
|
|
16 |
"github.com/containers/image/v5/docker/reference"
|
17 | 17 |
)
|
18 | 18 |
|
19 | 19 |
// systemRegistriesConfPath is the path to the system-wide registry
|
6 | 6 |
"path/filepath"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
"github.com/stretchr/testify/assert"
|
11 | 11 |
"github.com/stretchr/testify/require"
|
12 | 12 |
|
13 | |
"github.com/containers/image/v4/docker/reference"
|
|
13 |
"github.com/containers/image/v5/docker/reference"
|
14 | 14 |
)
|
15 | 15 |
|
16 | 16 |
func TestParseLocation(t *testing.T) {
|
4 | 4 |
import (
|
5 | 5 |
"fmt"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/reference"
|
8 | |
"github.com/containers/image/v4/manifest"
|
|
7 |
"github.com/containers/image/v5/docker/reference"
|
|
8 |
"github.com/containers/image/v5/manifest"
|
9 | 9 |
"github.com/opencontainers/go-digest"
|
10 | 10 |
)
|
11 | 11 |
|
18 | 18 |
"io/ioutil"
|
19 | 19 |
"path/filepath"
|
20 | 20 |
|
21 | |
"github.com/containers/image/v4/docker/reference"
|
22 | |
"github.com/containers/image/v4/transports"
|
23 | |
"github.com/containers/image/v4/types"
|
|
21 |
"github.com/containers/image/v5/docker/reference"
|
|
22 |
"github.com/containers/image/v5/transports"
|
|
23 |
"github.com/containers/image/v5/types"
|
24 | 24 |
"github.com/pkg/errors"
|
25 | 25 |
)
|
26 | 26 |
|
6 | 6 |
"path/filepath"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/directory"
|
10 | |
"github.com/containers/image/v4/docker"
|
|
9 |
"github.com/containers/image/v5/directory"
|
|
10 |
"github.com/containers/image/v5/docker"
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
// this import is needed where we use the "atomic" transport in TestPolicyUnmarshalJSON
|
13 | |
_ "github.com/containers/image/v4/openshift"
|
14 | |
"github.com/containers/image/v4/types"
|
|
13 |
_ "github.com/containers/image/v5/openshift"
|
|
14 |
"github.com/containers/image/v5/types"
|
15 | 15 |
"github.com/stretchr/testify/assert"
|
16 | 16 |
"github.com/stretchr/testify/require"
|
17 | 17 |
)
|
7 | 7 |
import (
|
8 | 8 |
"context"
|
9 | 9 |
|
10 | |
"github.com/containers/image/v4/types"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
"github.com/sirupsen/logrus"
|
13 | 13 |
)
|
4 | 4 |
import (
|
5 | 5 |
"context"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
"github.com/sirupsen/logrus"
|
9 | 9 |
)
|
10 | 10 |
|
9 | 9 |
|
10 | 10 |
"github.com/pkg/errors"
|
11 | 11 |
|
12 | |
"github.com/containers/image/v4/manifest"
|
13 | |
"github.com/containers/image/v4/types"
|
|
12 |
"github.com/containers/image/v5/manifest"
|
|
13 |
"github.com/containers/image/v5/types"
|
14 | 14 |
"github.com/opencontainers/go-digest"
|
15 | 15 |
)
|
16 | 16 |
|
6 | 6 |
"path"
|
7 | 7 |
"testing"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/directory"
|
10 | |
"github.com/containers/image/v4/docker/reference"
|
11 | |
"github.com/containers/image/v4/image"
|
12 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/directory"
|
|
10 |
"github.com/containers/image/v5/docker/reference"
|
|
11 |
"github.com/containers/image/v5/image"
|
|
12 |
"github.com/containers/image/v5/types"
|
13 | 13 |
"github.com/stretchr/testify/assert"
|
14 | 14 |
"github.com/stretchr/testify/require"
|
15 | 15 |
)
|
5 | 5 |
"context"
|
6 | 6 |
"fmt"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/transports"
|
9 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/transports"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
)
|
11 | 11 |
|
12 | 12 |
func (pr *prInsecureAcceptAnything) isSignatureAuthorAccepted(ctx context.Context, image types.UnparsedImage, sig []byte) (signatureAcceptanceResult, *Signature, error) {
|
3 | 3 |
"context"
|
4 | 4 |
"testing"
|
5 | 5 |
|
6 | |
"github.com/containers/image/v4/docker/reference"
|
7 | |
"github.com/containers/image/v4/internal/testing/mocks"
|
8 | |
"github.com/containers/image/v4/types"
|
|
6 |
"github.com/containers/image/v5/docker/reference"
|
|
7 |
"github.com/containers/image/v5/internal/testing/mocks"
|
|
8 |
"github.com/containers/image/v5/types"
|
9 | 9 |
)
|
10 | 10 |
|
11 | 11 |
// nameOnlyImageMock is a mock of types.UnparsedImage which only allows transports.ImageName to work
|
5 | 5 |
"os"
|
6 | 6 |
"testing"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker"
|
9 | |
"github.com/containers/image/v4/docker/policyconfiguration"
|
10 | |
"github.com/containers/image/v4/docker/reference"
|
11 | |
"github.com/containers/image/v4/internal/testing/mocks"
|
12 | |
"github.com/containers/image/v4/transports"
|
13 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/docker"
|
|
9 |
"github.com/containers/image/v5/docker/policyconfiguration"
|
|
10 |
"github.com/containers/image/v5/docker/reference"
|
|
11 |
"github.com/containers/image/v5/internal/testing/mocks"
|
|
12 |
"github.com/containers/image/v5/transports"
|
|
13 |
"github.com/containers/image/v5/types"
|
14 | 14 |
"github.com/stretchr/testify/assert"
|
15 | 15 |
"github.com/stretchr/testify/require"
|
16 | 16 |
)
|
4 | 4 |
import (
|
5 | 5 |
"fmt"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/reference"
|
8 | |
"github.com/containers/image/v4/transports"
|
9 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/docker/reference"
|
|
8 |
"github.com/containers/image/v5/transports"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
)
|
11 | 11 |
|
12 | 12 |
// parseImageAndDockerReference converts an image and a reference string into two parsed entities, failing on any error and handling unidentified images.
|
4 | 4 |
"fmt"
|
5 | 5 |
"testing"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/reference"
|
8 | |
"github.com/containers/image/v4/internal/testing/mocks"
|
9 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/docker/reference"
|
|
8 |
"github.com/containers/image/v5/internal/testing/mocks"
|
|
9 |
"github.com/containers/image/v5/types"
|
10 | 10 |
"github.com/stretchr/testify/assert"
|
11 | 11 |
"github.com/stretchr/testify/require"
|
12 | 12 |
)
|
10 | 10 |
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
|
13 | |
"github.com/containers/image/v4/version"
|
|
13 |
"github.com/containers/image/v5/version"
|
14 | 14 |
"github.com/opencontainers/go-digest"
|
15 | 15 |
)
|
16 | 16 |
|
6 | 6 |
"testing"
|
7 | 7 |
"time"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/version"
|
|
9 |
"github.com/containers/image/v5/version"
|
10 | 10 |
"github.com/opencontainers/go-digest"
|
11 | 11 |
"github.com/pkg/errors"
|
12 | 12 |
"github.com/stretchr/testify/assert"
|
14 | 14 |
"sync"
|
15 | 15 |
"sync/atomic"
|
16 | 16 |
|
17 | |
"github.com/containers/image/v4/docker/reference"
|
18 | |
"github.com/containers/image/v4/image"
|
19 | |
"github.com/containers/image/v4/internal/tmpdir"
|
20 | |
"github.com/containers/image/v4/manifest"
|
21 | |
"github.com/containers/image/v4/pkg/blobinfocache/none"
|
22 | |
"github.com/containers/image/v4/types"
|
|
17 |
"github.com/containers/image/v5/docker/reference"
|
|
18 |
"github.com/containers/image/v5/image"
|
|
19 |
"github.com/containers/image/v5/internal/tmpdir"
|
|
20 |
"github.com/containers/image/v5/manifest"
|
|
21 |
"github.com/containers/image/v5/pkg/blobinfocache/none"
|
|
22 |
"github.com/containers/image/v5/types"
|
23 | 23 |
"github.com/containers/storage"
|
24 | 24 |
"github.com/containers/storage/pkg/archive"
|
25 | 25 |
"github.com/containers/storage/pkg/ioutils"
|
2 | 2 |
import (
|
3 | 3 |
"testing"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/manifest"
|
6 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/manifest"
|
|
6 |
"github.com/containers/image/v5/types"
|
7 | 7 |
"github.com/stretchr/testify/assert"
|
8 | 8 |
"github.com/stretchr/testify/require"
|
9 | 9 |
)
|
5 | 5 |
"context"
|
6 | 6 |
"strings"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker/reference"
|
9 | |
"github.com/containers/image/v4/manifest"
|
10 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/docker/reference"
|
|
9 |
"github.com/containers/image/v5/manifest"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
"github.com/containers/storage"
|
12 | 12 |
digest "github.com/opencontainers/go-digest"
|
13 | 13 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
18 | 18 |
"testing"
|
19 | 19 |
"time"
|
20 | 20 |
|
21 | |
imanifest "github.com/containers/image/v4/manifest"
|
22 | |
"github.com/containers/image/v4/pkg/blobinfocache/memory"
|
23 | |
"github.com/containers/image/v4/types"
|
|
21 |
imanifest "github.com/containers/image/v5/manifest"
|
|
22 |
"github.com/containers/image/v5/pkg/blobinfocache/memory"
|
|
23 |
"github.com/containers/image/v5/types"
|
24 | 24 |
"github.com/containers/storage"
|
25 | 25 |
"github.com/containers/storage/pkg/archive"
|
26 | 26 |
"github.com/containers/storage/pkg/idtools"
|
8 | 8 |
|
9 | 9 |
"github.com/pkg/errors"
|
10 | 10 |
|
11 | |
"github.com/containers/image/v4/docker/reference"
|
12 | |
"github.com/containers/image/v4/transports"
|
13 | |
"github.com/containers/image/v4/types"
|
|
11 |
"github.com/containers/image/v5/docker/reference"
|
|
12 |
"github.com/containers/image/v5/transports"
|
|
13 |
"github.com/containers/image/v5/types"
|
14 | 14 |
"github.com/containers/storage"
|
15 | 15 |
"github.com/containers/storage/pkg/idtools"
|
16 | 16 |
digest "github.com/opencontainers/go-digest"
|
5 | 5 |
"fmt"
|
6 | 6 |
"testing"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker/reference"
|
|
8 |
"github.com/containers/image/v5/docker/reference"
|
9 | 9 |
"github.com/stretchr/testify/assert"
|
10 | 10 |
"github.com/stretchr/testify/require"
|
11 | 11 |
)
|
6 | 6 |
// import (
|
7 | 7 |
// "fmt"
|
8 | 8 |
//
|
9 | |
// cp "github.com/containers/image/v4/copy"
|
10 | |
// "github.com/containers/image/v4/tarball"
|
11 | |
// "github.com/containers/image/v4/transports/alltransports"
|
|
9 |
// cp "github.com/containers/image/v5/copy"
|
|
10 |
// "github.com/containers/image/v5/tarball"
|
|
11 |
// "github.com/containers/image/v5/transports/alltransports"
|
12 | 12 |
//
|
13 | |
// imgspecv1 "github.com/containers/image/v4/transports/alltransports"
|
|
13 |
// imgspecv1 "github.com/containers/image/v5/transports/alltransports"
|
14 | 14 |
// )
|
15 | 15 |
//
|
16 | 16 |
// func imageFromTarball() {
|
5 | 5 |
"os"
|
6 | 6 |
"strings"
|
7 | 7 |
|
8 | |
"github.com/containers/image/v4/docker/reference"
|
9 | |
"github.com/containers/image/v4/image"
|
10 | |
"github.com/containers/image/v4/types"
|
|
8 |
"github.com/containers/image/v5/docker/reference"
|
|
9 |
"github.com/containers/image/v5/image"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
|
12 | 12 |
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
13 | 13 |
)
|
11 | 11 |
"strings"
|
12 | 12 |
"time"
|
13 | 13 |
|
14 | |
"github.com/containers/image/v4/types"
|
|
14 |
"github.com/containers/image/v5/types"
|
15 | 15 |
"github.com/klauspost/pgzip"
|
16 | 16 |
digest "github.com/opencontainers/go-digest"
|
17 | 17 |
imgspecs "github.com/opencontainers/image-spec/specs-go"
|
6 | 6 |
"os"
|
7 | 7 |
"strings"
|
8 | 8 |
|
9 | |
"github.com/containers/image/v4/transports"
|
10 | |
"github.com/containers/image/v4/types"
|
|
9 |
"github.com/containers/image/v5/transports"
|
|
10 |
"github.com/containers/image/v5/types"
|
11 | 11 |
)
|
12 | 12 |
|
13 | 13 |
const (
|
5 | 5 |
// register all known transports
|
6 | 6 |
// NOTE: Make sure docs/containers-policy.json.5.md is updated when adding or updating
|
7 | 7 |
// a transport.
|
8 | |
_ "github.com/containers/image/v4/directory"
|
9 | |
_ "github.com/containers/image/v4/docker"
|
10 | |
_ "github.com/containers/image/v4/docker/archive"
|
11 | |
_ "github.com/containers/image/v4/oci/archive"
|
12 | |
_ "github.com/containers/image/v4/oci/layout"
|
13 | |
_ "github.com/containers/image/v4/openshift"
|
14 | |
_ "github.com/containers/image/v4/tarball"
|
|
8 |
_ "github.com/containers/image/v5/directory"
|
|
9 |
_ "github.com/containers/image/v5/docker"
|
|
10 |
_ "github.com/containers/image/v5/docker/archive"
|
|
11 |
_ "github.com/containers/image/v5/oci/archive"
|
|
12 |
_ "github.com/containers/image/v5/oci/layout"
|
|
13 |
_ "github.com/containers/image/v5/openshift"
|
|
14 |
_ "github.com/containers/image/v5/tarball"
|
15 | 15 |
// The ostree transport is registered by ostree*.go
|
16 | 16 |
// The storage transport is registered by storage*.go
|
17 | |
"github.com/containers/image/v4/transports"
|
18 | |
"github.com/containers/image/v4/types"
|
|
17 |
"github.com/containers/image/v5/transports"
|
|
18 |
"github.com/containers/image/v5/types"
|
19 | 19 |
"github.com/pkg/errors"
|
20 | 20 |
)
|
21 | 21 |
|
2 | 2 |
import (
|
3 | 3 |
"testing"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/directory"
|
6 | |
"github.com/containers/image/v4/transports"
|
|
5 |
"github.com/containers/image/v5/directory"
|
|
6 |
"github.com/containers/image/v5/transports"
|
7 | 7 |
"github.com/stretchr/testify/assert"
|
8 | 8 |
"github.com/stretchr/testify/require"
|
9 | 9 |
)
|
3 | 3 |
|
4 | 4 |
import (
|
5 | 5 |
// Register the docker-daemon transport
|
6 | |
_ "github.com/containers/image/v4/docker/daemon"
|
|
6 |
_ "github.com/containers/image/v5/docker/daemon"
|
7 | 7 |
)
|
1 | 1 |
|
2 | 2 |
package alltransports
|
3 | 3 |
|
4 | |
import "github.com/containers/image/v4/transports"
|
|
4 |
import "github.com/containers/image/v5/transports"
|
5 | 5 |
|
6 | 6 |
func init() {
|
7 | 7 |
transports.Register(transports.NewStubTransport("docker-daemon"))
|
3 | 3 |
|
4 | 4 |
import (
|
5 | 5 |
// Register the ostree transport
|
6 | |
_ "github.com/containers/image/v4/ostree"
|
|
6 |
_ "github.com/containers/image/v5/ostree"
|
7 | 7 |
)
|
1 | 1 |
|
2 | 2 |
package alltransports
|
3 | 3 |
|
4 | |
import "github.com/containers/image/v4/transports"
|
|
4 |
import "github.com/containers/image/v5/transports"
|
5 | 5 |
|
6 | 6 |
func init() {
|
7 | 7 |
transports.Register(transports.NewStubTransport("ostree"))
|
3 | 3 |
|
4 | 4 |
import (
|
5 | 5 |
// Register the storage transport
|
6 | |
_ "github.com/containers/image/v4/storage"
|
|
6 |
_ "github.com/containers/image/v5/storage"
|
7 | 7 |
)
|
1 | 1 |
|
2 | 2 |
package alltransports
|
3 | 3 |
|
4 | |
import "github.com/containers/image/v4/transports"
|
|
4 |
import "github.com/containers/image/v5/transports"
|
5 | 5 |
|
6 | 6 |
func init() {
|
7 | 7 |
transports.Register(transports.NewStubTransport("containers-storage"))
|
2 | 2 |
import (
|
3 | 3 |
"fmt"
|
4 | 4 |
|
5 | |
"github.com/containers/image/v4/types"
|
|
5 |
"github.com/containers/image/v5/types"
|
6 | 6 |
)
|
7 | 7 |
|
8 | 8 |
// stubTransport is an implementation of types.ImageTransport which has a name, but rejects any references with “the transport $name: is not supported in this build”.
|
4 | 4 |
"sort"
|
5 | 5 |
"sync"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/types"
|
|
7 |
"github.com/containers/image/v5/types"
|
8 | 8 |
)
|
9 | 9 |
|
10 | 10 |
// knownTransports is a registry of known ImageTransport instances.
|
4 | 4 |
"io"
|
5 | 5 |
"time"
|
6 | 6 |
|
7 | |
"github.com/containers/image/v4/docker/reference"
|
8 | |
compression "github.com/containers/image/v4/pkg/compression/types"
|
|
7 |
"github.com/containers/image/v5/docker/reference"
|
|
8 |
compression "github.com/containers/image/v5/pkg/compression/types"
|
9 | 9 |
digest "github.com/opencontainers/go-digest"
|
10 | 10 |
v1 "github.com/opencontainers/image-spec/specs-go/v1"
|
11 | 11 |
)
|