aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/fsouza/go-dockerclient/change.go
diff options
context:
space:
mode:
authorAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:22 -0500
committerAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:22 -0500
commit07971ca38143c5faf951d152fba370ddcbe26ad5 (patch)
tree09af1ef91c782de921efc83113907184c8adecee /vendor/github.com/fsouza/go-dockerclient/change.go
parent9b6f05970a001f683b9c886c652de81f00cd5f00 (diff)
downloadterraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.gz
terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.zst
terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.zip
deps: use go modules for dep mgmt
run go mod tidy remove govendor from makefile and travis config set appropriate env vars for go modules
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/change.go')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/change.go43
1 files changed, 0 insertions, 43 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/change.go b/vendor/github.com/fsouza/go-dockerclient/change.go
deleted file mode 100644
index d133594..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/change.go
+++ /dev/null
@@ -1,43 +0,0 @@
1// Copyright 2014 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import "fmt"
8
9// ChangeType is a type for constants indicating the type of change
10// in a container
11type ChangeType int
12
13const (
14 // ChangeModify is the ChangeType for container modifications
15 ChangeModify ChangeType = iota
16
17 // ChangeAdd is the ChangeType for additions to a container
18 ChangeAdd
19
20 // ChangeDelete is the ChangeType for deletions from a container
21 ChangeDelete
22)
23
24// Change represents a change in a container.
25//
26// See https://goo.gl/9GsTIF for more details.
27type Change struct {
28 Path string
29 Kind ChangeType
30}
31
32func (change *Change) String() string {
33 var kind string
34 switch change.Kind {
35 case ChangeModify:
36 kind = "C"
37 case ChangeAdd:
38 kind = "A"
39 case ChangeDelete:
40 kind = "D"
41 }
42 return fmt.Sprintf("%s %s", kind, change.Path)
43}