diff options
author | haircommander <pehunt@redhat.com> | 2018-08-17 10:36:51 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-23 18:16:28 +0000 |
commit | 2a7449362f2884d9ae6a783c0ce38979d882e2cf (patch) | |
tree | 6e7b8ab33505d210201e62faba6a50f98c0a4ea7 /libpod/container_ffjson.go | |
parent | 697b46430a8a7c2c7231078911dcec51f0c6fab5 (diff) | |
download | podman-2a7449362f2884d9ae6a783c0ce38979d882e2cf.tar.gz podman-2a7449362f2884d9ae6a783c0ce38979d882e2cf.tar.bz2 podman-2a7449362f2884d9ae6a783c0ce38979d882e2cf.zip |
Change pause container to infra container
Signed-off-by: haircommander <pehunt@redhat.com>
Closes: #1187
Approved by: mheon
Diffstat (limited to 'libpod/container_ffjson.go')
-rw-r--r-- | libpod/container_ffjson.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libpod/container_ffjson.go b/libpod/container_ffjson.go index 02dc10e68..c35a72cb7 100644 --- a/libpod/container_ffjson.go +++ b/libpod/container_ffjson.go @@ -1,5 +1,5 @@ // Code generated by ffjson <https://github.com/pquerna/ffjson>. DO NOT EDIT. -// source: libpod/container.go +// source: /home/pehunt/go/src/github.com/containers/libpod/libpod/container.go package libpod @@ -517,7 +517,7 @@ func (j *ContainerConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error { } else { buf.WriteString(`null`) } - if j.IsPause { + if j.IsInfra { buf.WriteString(`,"pause":true`) } else { buf.WriteString(`,"pause":false`) @@ -640,7 +640,7 @@ const ( ffjtContainerConfigLocalVolumes - ffjtContainerConfigIsPause + ffjtContainerConfigIsInfra ) var ffjKeyContainerConfigSpec = []byte("spec") @@ -753,7 +753,7 @@ var ffjKeyContainerConfigExitCommand = []byte("exitCommand") var ffjKeyContainerConfigLocalVolumes = []byte("LocalVolumes") -var ffjKeyContainerConfigIsPause = []byte("pause") +var ffjKeyContainerConfigIsInfra = []byte("pause") // UnmarshalJSON umarshall json - template of ffjson func (j *ContainerConfig) UnmarshalJSON(input []byte) error { @@ -1060,8 +1060,8 @@ mainparse: state = fflib.FFParse_want_colon goto mainparse - } else if bytes.Equal(ffjKeyContainerConfigIsPause, kn) { - currentKey = ffjtContainerConfigIsPause + } else if bytes.Equal(ffjKeyContainerConfigIsInfra, kn) { + currentKey = ffjtContainerConfigIsInfra state = fflib.FFParse_want_colon goto mainparse } @@ -1152,8 +1152,8 @@ mainparse: } - if fflib.EqualFoldRight(ffjKeyContainerConfigIsPause, kn) { - currentKey = ffjtContainerConfigIsPause + if fflib.EqualFoldRight(ffjKeyContainerConfigIsInfra, kn) { + currentKey = ffjtContainerConfigIsInfra state = fflib.FFParse_want_colon goto mainparse } @@ -1670,8 +1670,8 @@ mainparse: case ffjtContainerConfigLocalVolumes: goto handle_LocalVolumes - case ffjtContainerConfigIsPause: - goto handle_IsPause + case ffjtContainerConfigIsInfra: + goto handle_IsInfra case ffjtContainerConfignosuchkey: err = fs.SkipField(tok) @@ -3973,9 +3973,9 @@ handle_LocalVolumes: state = fflib.FFParse_after_value goto mainparse -handle_IsPause: +handle_IsInfra: - /* handler: j.IsPause type=bool kind=bool quoted=false*/ + /* handler: j.IsInfra type=bool kind=bool quoted=false*/ { if tok != fflib.FFTok_bool && tok != fflib.FFTok_null { @@ -3991,11 +3991,11 @@ handle_IsPause: if bytes.Compare([]byte{'t', 'r', 'u', 'e'}, tmpb) == 0 { - j.IsPause = true + j.IsInfra = true } else if bytes.Compare([]byte{'f', 'a', 'l', 's', 'e'}, tmpb) == 0 { - j.IsPause = false + j.IsInfra = false } else { err = errors.New("unexpected bytes for true/false value") |