Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions activatelayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions baselayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions callback.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions cgo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "C"
Expand Down
2 changes: 2 additions & 0 deletions container.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions createlayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions createsandboxlayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions deactivatelayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions destroylayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions expandsandboxsize.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions exportlayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions getlayermountpath.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions getsharedbaseimages.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions guid.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions hcsshim.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

// Shim for the Host Compute Service (HCS) to manage Windows Server
// containers and Hyper-V containers.

Expand Down
2 changes: 2 additions & 0 deletions hnsfuncs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions importlayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions layerexists.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions layerutils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

// This file contains utility functions to support storage (graph) related
Expand Down
2 changes: 2 additions & 0 deletions legacy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
3 changes: 3 additions & 0 deletions mksyscall_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
Expand Down Expand Up @@ -842,6 +844,7 @@ func main() {

// TODO: use println instead to print in the following template
const srcTemplate = `
// +build windows

{{define "main"}}// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT

Expand Down
2 changes: 2 additions & 0 deletions nametoguid.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions preparelayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions process.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions processimage.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "os"
Expand Down
2 changes: 2 additions & 0 deletions unpreparelayer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import "github.com/Sirupsen/logrus"
Expand Down
2 changes: 2 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
2 changes: 2 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

// IsTP4 returns whether the currently running Windows build is at least TP4.
Expand Down
2 changes: 2 additions & 0 deletions waithelper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build windows

package hcsshim

import (
Expand Down
1 change: 1 addition & 0 deletions zhcsshim.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// +build windows
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this file should be updated as it's autogenerated

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this contain windows only code? If so, we should keep it from compiling.

go generate should not affect the build tag.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see. I'll fix it.

// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT

package hcsshim
Expand Down