mirror of https://github.com/containers/image.git
sif: limit platform to linux
Signed-off-by: Yannick Cote <ycote@redhat.com>
This commit is contained in:
parent
9b33dd16c3
commit
1757663cc4
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
// LICENSE file distributed with the sources of this project regarding your
|
||||
// rights to use or distribute this software.
|
||||
|
||||
// +build linux
|
||||
|
||||
package sif
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
// LICENSE file distributed with the sources of this project regarding your
|
||||
// rights to use or distribute this software.
|
||||
|
||||
// +build linux
|
||||
|
||||
package sif
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
// LICENSE file distributed with the sources of this project regarding your
|
||||
// rights to use or distribute this software.
|
||||
|
||||
// +build linux
|
||||
|
||||
package sif
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
// LICENSE file distributed with the sources of this project regarding your
|
||||
// rights to use or distribute this software.
|
||||
|
||||
// +build linux
|
||||
|
||||
package sif
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
// LICENSE file distributed with the sources of this project regarding your
|
||||
// rights to use or distribute this software.
|
||||
|
||||
// +build linux
|
||||
|
||||
// Package sif implements data structures and routines to create
|
||||
// and access SIF files.
|
||||
// - sif.go contains the data definition the file format.
|
||||
|
|
@ -18,8 +20,9 @@ package sif
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/satori/go.uuid"
|
||||
"os"
|
||||
|
||||
uuid "github.com/satori/go.uuid"
|
||||
)
|
||||
|
||||
// Layout of a SIF file (example)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package sifimage
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package sifimage
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ import (
|
|||
_ "github.com/containers/image/v5/oci/archive"
|
||||
_ "github.com/containers/image/v5/oci/layout"
|
||||
_ "github.com/containers/image/v5/openshift"
|
||||
_ "github.com/containers/image/v5/sif"
|
||||
_ "github.com/containers/image/v5/tarball"
|
||||
|
||||
// The sif transport is registered by sif*.go
|
||||
// The ostree transport is registered by ostree*.go
|
||||
// The storage transport is registered by storage*.go
|
||||
"github.com/containers/image/v5/transports"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
// +build linux
|
||||
|
||||
package alltransports
|
||||
|
||||
import (
|
||||
// Register the sif transport
|
||||
_ "github.com/containers/image/v5/sif"
|
||||
)
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// +build !linux
|
||||
|
||||
package alltransports
|
||||
|
||||
import "github.com/containers/image/v5/transports"
|
||||
|
||||
func init() {
|
||||
transports.Register(transports.NewStubTransport("sif"))
|
||||
}
|
||||
Loading…
Reference in New Issue