diff --git a/go.mod b/go.mod index ac8d34ce..2727c9b7 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.16 require ( github.com/Masterminds/semver v1.4.2 github.com/dgrijalva/jwt-go v3.2.0+incompatible - github.com/golang/mock v1.4.0 + github.com/golang/mock v1.6.0 github.com/google/go-github v0.0.0-20180716180158-c0b63e2f9bb1 github.com/google/uuid v1.1.1 github.com/hashicorp/go-version v1.2.0 @@ -18,7 +18,7 @@ require ( github.com/spf13/cobra v0.0.5 github.com/spf13/pflag v1.0.3 github.com/stretchr/testify v1.2.2 - golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 + golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 gopkg.in/yaml.v2 v2.2.8 sigs.k8s.io/yaml v1.2.0 ) @@ -34,6 +34,7 @@ require ( golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 // indirect golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20191105091915-95d230a53780 // indirect + rsc.io/quote/v3 v3.1.0 // indirect ) // use this version for fixes to formatting of end header diff --git a/go.sum b/go.sum index 8dde0886..7d385ae5 100644 --- a/go.sum +++ b/go.sum @@ -29,6 +29,8 @@ github.com/golang/lint v0.0.0-20181026193005-c67002cb31c3 h1:I4BOK3PBMjhWfQM2zPJ github.com/golang/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= github.com/golang/mock v1.4.0 h1:Rd1kQnQu0Hq3qvJppYSG0HtP+f5LPPUiDswTLiEegLg= github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/google/go-github v0.0.0-20180716180158-c0b63e2f9bb1 h1:tV3a8xSFYfQgA9b54eOE0A6Db//aeD+SQWawHfhaoLs= github.com/google/go-github v0.0.0-20180716180158-c0b63e2f9bb1/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= @@ -102,28 +104,49 @@ github.com/tsenart/deadcode v0.0.0-20160724212837-210d2dc333e9 h1:vY5WqiEon0ZSTG github.com/tsenart/deadcode v0.0.0-20160724212837-210d2dc333e9/go.mod h1:q+QjxYvZ+fpjMXqs+XEriussHjSYqeXVnAdSV1tkMYk= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 h1:XQyxROzUlZH+WIQwySDgnISgOivlhjIEwaQaJEJrrN0= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181122213734-04b5d21e00f1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262 h1:qsl9y/CJx34tuA7QCPNp86JNJe4spst6Ff8MjvPUdPg= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.1 h1:wGiQel/hW0NnEkJUk8lbzkX2gFJU6PFxf1v5OlCfuOs= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20191105091915-95d230a53780 h1:CEBpW6C191eozfEuWdUmIAHn7lwlLxJ7HVdr2e2Tsrw= gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20191105091915-95d230a53780/go.mod h1:3HH7i1SgMqlzxCcBmUHW657sD4Kvv9sC3HpL3YukzwA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/internal/lagoon/client/_lgraphql/projectByName.graphql b/internal/lagoon/client/_lgraphql/projectByName.graphql index ef4ba8da..37d317d3 100644 --- a/internal/lagoon/client/_lgraphql/projectByName.graphql +++ b/internal/lagoon/client/_lgraphql/projectByName.graphql @@ -14,6 +14,8 @@ query ( developmentEnvironmentsLimit gitUrl autoIdle + factsUi + problemsUi groups{ ... on Group { __typename diff --git a/internal/lagoon/client/lgraphql/lgraphql.go b/internal/lagoon/client/lgraphql/lgraphql.go index 228402fa..ced6f90f 100644 --- a/internal/lagoon/client/lgraphql/lgraphql.go +++ b/internal/lagoon/client/lgraphql/lgraphql.go @@ -1,49 +1,51 @@ -// Code generated for package lgraphql by go-bindata DO NOT EDIT. (@generated) +// Code generated by go-bindata. DO NOT EDIT. // sources: -// _lgraphql/addDeployTarget.graphql -// _lgraphql/addDeployTargetConfig.graphql -// _lgraphql/addEnvVariable.graphql -// _lgraphql/addGroup.graphql -// _lgraphql/addGroupsToProject.graphql -// _lgraphql/addNotificationEmail.graphql -// _lgraphql/addNotificationMicrosoftTeams.graphql -// _lgraphql/addNotificationRocketChat.graphql -// _lgraphql/addNotificationSlack.graphql -// _lgraphql/addNotificationToProject.graphql -// _lgraphql/addOrUpdateEnvironment.graphql -// _lgraphql/addProject.graphql -// _lgraphql/addRestore.graphql -// _lgraphql/addSshKey.graphql -// _lgraphql/addUser.graphql -// _lgraphql/addUserToGroup.graphql -// _lgraphql/backupsForEnvironmentByName.graphql -// _lgraphql/deleteDeployTarget.graphql -// _lgraphql/deleteDeployTargetConfig.graphql -// _lgraphql/deployEnvironmentBranch.graphql -// _lgraphql/deployEnvironmentLatest.graphql -// _lgraphql/deployEnvironmentPromote.graphql -// _lgraphql/deployEnvironmentPullrequest.graphql -// _lgraphql/deployTargetConfigsByProjectId.graphql -// _lgraphql/environmentByName.graphql -// _lgraphql/lagoonSchema.graphql -// _lgraphql/lagoonVersion.graphql -// _lgraphql/listDeployTargets.graphql -// _lgraphql/me.graphql -// _lgraphql/minimalProjectByName.graphql -// _lgraphql/projectByName.graphql -// _lgraphql/projectByNameMetadata.graphql -// _lgraphql/projectsByMetadata.graphql -// _lgraphql/removeProjectMetadataByKey.graphql -// _lgraphql/switchActiveStandby.graphql -// _lgraphql/taskByID.graphql -// _lgraphql/updateDeployTarget.graphql -// _lgraphql/updateDeployTargetConfig.graphql -// _lgraphql/updateProjectMetadata.graphql +// _lgraphql/addDeployTarget.graphql (869B) +// _lgraphql/addDeployTargetConfig.graphql (1.325kB) +// _lgraphql/addEnvVariable.graphql (292B) +// _lgraphql/addGroup.graphql (110B) +// _lgraphql/addGroupsToProject.graphql (184B) +// _lgraphql/addNotificationEmail.graphql (183B) +// _lgraphql/addNotificationMicrosoftTeams.graphql (177B) +// _lgraphql/addNotificationRocketChat.graphql (219B) +// _lgraphql/addNotificationSlack.graphql (214B) +// _lgraphql/addNotificationToProject.graphql (289B) +// _lgraphql/addOrUpdateEnvironment.graphql (566B) +// _lgraphql/addProject.graphql (802B) +// _lgraphql/addRestore.graphql (101B) +// _lgraphql/addSshKey.graphql (279B) +// _lgraphql/addUser.graphql (254B) +// _lgraphql/addUserToGroup.graphql (243B) +// _lgraphql/backupsForEnvironmentByName.graphql (403B) +// _lgraphql/deleteDeployTarget.graphql (102B) +// _lgraphql/deleteDeployTargetConfig.graphql (134B) +// _lgraphql/deployEnvironmentBranch.graphql (282B) +// _lgraphql/deployEnvironmentLatest.graphql (181B) +// _lgraphql/deployEnvironmentPromote.graphql (427B) +// _lgraphql/deployEnvironmentPullrequest.graphql (509B) +// _lgraphql/deployTargetConfigsByProjectId.graphql (253B) +// _lgraphql/environmentByName.graphql (306B) +// _lgraphql/lagoonSchema.graphql (126B) +// _lgraphql/lagoonVersion.graphql (25B) +// _lgraphql/listDeployTargets.graphql (231B) +// _lgraphql/me.graphql (232B) +// _lgraphql/minimalProjectByName.graphql (332B) +// _lgraphql/projectByName.graphql (1.779kB) +// _lgraphql/projectByNameMetadata.graphql (121B) +// _lgraphql/projectsByMetadata.graphql (486B) +// _lgraphql/removeProjectMetadataByKey.graphql (254B) +// _lgraphql/switchActiveStandby.graphql (198B) +// _lgraphql/taskByID.graphql (216B) +// _lgraphql/updateDeployTarget.graphql (944B) +// _lgraphql/updateDeployTargetConfig.graphql (661B) +// _lgraphql/updateProjectMetadata.graphql (337B) + package lgraphql import ( "bytes" "compress/gzip" + "crypto/sha256" "fmt" "io" "io/ioutil" @@ -56,7 +58,7 @@ import ( func bindataRead(data []byte, name string) ([]byte, error) { gz, err := gzip.NewReader(bytes.NewBuffer(data)) if err != nil { - return nil, fmt.Errorf("Read %q: %v", name, err) + return nil, fmt.Errorf("read %q: %w", name, err) } var buf bytes.Buffer @@ -64,7 +66,7 @@ func bindataRead(data []byte, name string) ([]byte, error) { clErr := gz.Close() if err != nil { - return nil, fmt.Errorf("Read %q: %v", name, err) + return nil, fmt.Errorf("read %q: %w", name, err) } if clErr != nil { return nil, err @@ -74,8 +76,9 @@ func bindataRead(data []byte, name string) ([]byte, error) { } type asset struct { - bytes []byte - info os.FileInfo + bytes []byte + info os.FileInfo + digest [sha256.Size]byte } type bindataFileInfo struct { @@ -85,32 +88,21 @@ type bindataFileInfo struct { modTime time.Time } -// Name return file name func (fi bindataFileInfo) Name() string { return fi.name } - -// Size return file size func (fi bindataFileInfo) Size() int64 { return fi.size } - -// Mode return file mode func (fi bindataFileInfo) Mode() os.FileMode { return fi.mode } - -// Mode return file modify time func (fi bindataFileInfo) ModTime() time.Time { return fi.modTime } - -// IsDir return file whether a directory func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 + return false } - -// Sys return file is sys mode func (fi bindataFileInfo) Sys() interface{} { return nil } @@ -131,7 +123,7 @@ func _lgraphqlAdddeploytargetGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addDeployTarget.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc3, 0x39, 0x6d, 0xa8, 0xbd, 0x8c, 0xfa, 0xea, 0x46, 0x56, 0xa4, 0x60, 0x6a, 0x30, 0x79, 0xc7, 0xb, 0x1, 0x74, 0xbf, 0xe1, 0x1a, 0x3b, 0x6f, 0xd9, 0x2b, 0xb0, 0x19, 0xfd, 0x19, 0xb1, 0x1c}} return a, nil } @@ -151,7 +143,7 @@ func _lgraphqlAdddeploytargetconfigGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addDeployTargetConfig.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9, 0x71, 0x8c, 0x5f, 0x57, 0x90, 0x44, 0xc6, 0xd, 0xe, 0xd5, 0x8f, 0x6f, 0x52, 0xdb, 0x34, 0x4, 0xb5, 0x8b, 0x4, 0x49, 0x23, 0x29, 0x7b, 0xbe, 0x48, 0x25, 0xf3, 0x8d, 0xe0, 0xfc, 0x3d}} return a, nil } @@ -171,7 +163,7 @@ func _lgraphqlAddenvvariableGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addEnvVariable.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa4, 0xdf, 0xcc, 0xed, 0x24, 0x54, 0xb9, 0xf9, 0xe9, 0x47, 0xac, 0x18, 0xd2, 0xd4, 0x34, 0x44, 0x55, 0x2b, 0x61, 0x38, 0xb4, 0xbb, 0x34, 0x48, 0x3d, 0xa8, 0xaf, 0xfa, 0x11, 0x11, 0x22, 0xf3}} return a, nil } @@ -191,7 +183,7 @@ func _lgraphqlAddgroupGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addGroup.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x77, 0x26, 0xa3, 0x90, 0xe9, 0x6a, 0x92, 0x6f, 0x20, 0x1a, 0x31, 0x4b, 0x59, 0xd1, 0xd, 0x8a, 0x7a, 0x48, 0xa0, 0xa3, 0x83, 0x94, 0xf9, 0xc2, 0xae, 0x2e, 0x70, 0x6d, 0xad, 0x63, 0xf6, 0x97}} return a, nil } @@ -211,7 +203,7 @@ func _lgraphqlAddgroupstoprojectGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addGroupsToProject.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbd, 0x87, 0xa7, 0x9e, 0x69, 0x59, 0xa2, 0x82, 0x97, 0xff, 0x4b, 0x84, 0xf, 0x3e, 0x87, 0x6c, 0xb5, 0xa4, 0x4e, 0x2, 0x7f, 0x58, 0x6b, 0x69, 0x45, 0x9, 0xe2, 0x53, 0x6, 0xc9, 0xa1, 0xac}} return a, nil } @@ -231,7 +223,7 @@ func _lgraphqlAddnotificationemailGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addNotificationEmail.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6, 0x8d, 0xcc, 0x2d, 0x55, 0xe4, 0xe2, 0x6d, 0x59, 0x6b, 0x9a, 0xe9, 0x33, 0xad, 0x32, 0x3d, 0x2a, 0x8b, 0xe6, 0x36, 0x6d, 0x82, 0x6d, 0x57, 0x1d, 0x38, 0x7a, 0x61, 0xdd, 0x7, 0xae, 0xb5}} return a, nil } @@ -251,7 +243,7 @@ func _lgraphqlAddnotificationmicrosoftteamsGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addNotificationMicrosoftTeams.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x38, 0x57, 0x95, 0x3f, 0x2d, 0xec, 0x3d, 0x39, 0x8b, 0xf0, 0x86, 0x71, 0x13, 0xe9, 0x11, 0x57, 0x16, 0x27, 0x9c, 0x57, 0x8d, 0x96, 0xfc, 0xf0, 0x6, 0xce, 0xe1, 0x63, 0x5d, 0x40, 0x13, 0xfe}} return a, nil } @@ -271,7 +263,7 @@ func _lgraphqlAddnotificationrocketchatGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addNotificationRocketChat.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x78, 0x1, 0x8, 0x7d, 0xb2, 0x2c, 0x6d, 0xf8, 0xa7, 0xa4, 0xec, 0xe0, 0x6d, 0x4c, 0x2a, 0x43, 0x69, 0xbf, 0xe1, 0x6a, 0xa6, 0x3a, 0x51, 0x58, 0x2e, 0xb0, 0xf9, 0x24, 0x50, 0xc, 0xef, 0xba}} return a, nil } @@ -291,7 +283,7 @@ func _lgraphqlAddnotificationslackGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addNotificationSlack.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf2, 0xd4, 0x90, 0x44, 0x41, 0x48, 0x21, 0xe7, 0x30, 0x6b, 0x0, 0xed, 0x73, 0x6c, 0x1, 0xd, 0xdb, 0xb, 0x83, 0x2, 0x31, 0x7d, 0x79, 0xea, 0xce, 0x87, 0x37, 0x10, 0x4d, 0x1e, 0xfe, 0x3a}} return a, nil } @@ -311,7 +303,7 @@ func _lgraphqlAddnotificationtoprojectGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addNotificationToProject.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x44, 0x34, 0x3f, 0x65, 0x51, 0xda, 0x1b, 0xe9, 0xd3, 0x3c, 0xbe, 0x8b, 0x47, 0x7, 0x43, 0xfa, 0x61, 0xba, 0x8d, 0x95, 0x2d, 0xdc, 0xda, 0x47, 0x7a, 0x1f, 0xa7, 0xa3, 0xd4, 0x27, 0xaa, 0x75}} return a, nil } @@ -331,7 +323,7 @@ func _lgraphqlAddorupdateenvironmentGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addOrUpdateEnvironment.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9b, 0xa1, 0xe4, 0x5f, 0x61, 0x1e, 0xc1, 0xe, 0x16, 0xa5, 0xbd, 0x25, 0x26, 0x8a, 0x99, 0x77, 0x62, 0x77, 0xb1, 0x9b, 0xa, 0xe8, 0xe4, 0xd1, 0xa7, 0xb9, 0x28, 0xde, 0x9a, 0x88, 0x30, 0xec}} return a, nil } @@ -351,7 +343,7 @@ func _lgraphqlAddprojectGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addProject.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x80, 0x2a, 0x37, 0xa1, 0x42, 0xa6, 0xc4, 0x11, 0x18, 0x79, 0x1e, 0xfb, 0x4f, 0x47, 0x37, 0x1b, 0xf9, 0x12, 0xce, 0xfe, 0x2f, 0x4f, 0xa2, 0xbe, 0x97, 0x59, 0x59, 0xf4, 0x1, 0x2a, 0xc1, 0xa7}} return a, nil } @@ -371,7 +363,7 @@ func _lgraphqlAddrestoreGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addRestore.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9a, 0xc1, 0xb5, 0xb5, 0xff, 0xbf, 0x11, 0xc3, 0xe, 0xe1, 0x1e, 0x7f, 0xc6, 0xb6, 0x3b, 0xc5, 0xfb, 0x8b, 0x1a, 0x71, 0xdc, 0xf, 0xe0, 0x3b, 0x80, 0xf8, 0xd7, 0x2c, 0x34, 0x18, 0x91, 0x35}} return a, nil } @@ -391,7 +383,7 @@ func _lgraphqlAddsshkeyGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addSshKey.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x82, 0xea, 0xa0, 0xea, 0xaf, 0x19, 0xca, 0xeb, 0x1c, 0x4d, 0x51, 0x9f, 0x9a, 0xb7, 0x86, 0xc8, 0x29, 0x48, 0xa9, 0x6c, 0x3, 0x4a, 0x70, 0x77, 0xa, 0x79, 0x3, 0x16, 0x56, 0x99, 0xba, 0x29}} return a, nil } @@ -411,7 +403,7 @@ func _lgraphqlAdduserGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addUser.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x33, 0x99, 0xcc, 0x6c, 0xa, 0x18, 0x88, 0x14, 0x92, 0xc5, 0x0, 0xbc, 0xc2, 0xb4, 0xc1, 0xa7, 0x3f, 0x87, 0xc0, 0x67, 0x13, 0xcc, 0xb7, 0xca, 0xec, 0xde, 0xdf, 0x93, 0x61, 0x6a, 0x4d, 0xe0}} return a, nil } @@ -431,7 +423,7 @@ func _lgraphqlAddusertogroupGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/addUserToGroup.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x51, 0xb1, 0xe3, 0xcf, 0x2, 0xfa, 0x37, 0x3c, 0xfb, 0x73, 0x93, 0xf9, 0x16, 0xd4, 0x56, 0x41, 0x23, 0x54, 0x4e, 0x12, 0xc9, 0xda, 0xab, 0x6d, 0x85, 0x14, 0x75, 0xb9, 0xba, 0xc5, 0xd4, 0x46}} return a, nil } @@ -451,7 +443,7 @@ func _lgraphqlBackupsforenvironmentbynameGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/backupsForEnvironmentByName.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x71, 0x3d, 0xa0, 0xdb, 0xe0, 0x75, 0x3f, 0x29, 0x6, 0x43, 0xf6, 0x56, 0xf2, 0xf4, 0x54, 0x62, 0xe8, 0x76, 0x63, 0x7, 0xff, 0xb8, 0xab, 0x16, 0xc8, 0xf4, 0x4a, 0x75, 0x5d, 0x3b, 0x44, 0xf5}} return a, nil } @@ -471,7 +463,7 @@ func _lgraphqlDeletedeploytargetGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/deleteDeployTarget.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf8, 0x2a, 0x26, 0x25, 0xa0, 0xd0, 0xb0, 0x69, 0xff, 0xac, 0xb1, 0x57, 0xda, 0x80, 0x21, 0x8c, 0x14, 0x58, 0xac, 0x62, 0xac, 0x35, 0x80, 0x42, 0xca, 0x44, 0xb0, 0xee, 0x51, 0x30, 0x79, 0x67}} return a, nil } @@ -491,7 +483,7 @@ func _lgraphqlDeletedeploytargetconfigGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/deleteDeployTargetConfig.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xca, 0xa2, 0x13, 0x6e, 0x82, 0xf5, 0xb, 0xf5, 0xac, 0xa3, 0xd0, 0x4b, 0x45, 0xa4, 0x40, 0xfa, 0xd8, 0x35, 0xcf, 0x4e, 0xc4, 0xe4, 0x30, 0x81, 0x31, 0x26, 0xe4, 0x66, 0xa5, 0xa2, 0x56, 0x6a}} return a, nil } @@ -511,7 +503,7 @@ func _lgraphqlDeployenvironmentbranchGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/deployEnvironmentBranch.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc8, 0xa8, 0x5e, 0x79, 0x81, 0x2d, 0x60, 0xf3, 0x0, 0xed, 0xf0, 0x55, 0xca, 0xd0, 0xec, 0xf, 0x6c, 0x2d, 0x5a, 0x4d, 0x5f, 0xf6, 0xb2, 0x51, 0xd3, 0x23, 0x63, 0xba, 0x7c, 0x61, 0xfc, 0x37}} return a, nil } @@ -531,7 +523,7 @@ func _lgraphqlDeployenvironmentlatestGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/deployEnvironmentLatest.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x19, 0x8f, 0xd2, 0xeb, 0x73, 0x78, 0xc7, 0xea, 0xb3, 0x5e, 0x1f, 0xbb, 0x52, 0x5d, 0x35, 0xf4, 0xf, 0xf1, 0x52, 0x47, 0xe6, 0x11, 0x1a, 0xf4, 0x15, 0xc6, 0xcb, 0xc2, 0x18, 0xc9, 0xbb, 0xe1}} return a, nil } @@ -551,7 +543,7 @@ func _lgraphqlDeployenvironmentpromoteGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/deployEnvironmentPromote.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc7, 0x3b, 0x67, 0xc6, 0xa1, 0xb2, 0xa1, 0xb8, 0xe0, 0xbe, 0xbe, 0xe6, 0xbc, 0x44, 0xe0, 0xb2, 0x91, 0xe1, 0xd5, 0x11, 0x92, 0x2a, 0x36, 0x12, 0x8, 0xbf, 0x2c, 0x12, 0xa2, 0xc, 0xd5, 0xec}} return a, nil } @@ -571,7 +563,7 @@ func _lgraphqlDeployenvironmentpullrequestGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/deployEnvironmentPullrequest.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa3, 0x63, 0x4a, 0x5f, 0xc4, 0x3e, 0x27, 0x74, 0x38, 0xa1, 0x44, 0x98, 0x53, 0x8c, 0x1f, 0x80, 0x9c, 0x47, 0xf9, 0x2d, 0x72, 0x25, 0x8f, 0xbd, 0xbe, 0xd1, 0x54, 0xb5, 0xda, 0xac, 0x8b, 0xdd}} return a, nil } @@ -591,7 +583,7 @@ func _lgraphqlDeploytargetconfigsbyprojectidGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/deployTargetConfigsByProjectId.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x58, 0xad, 0x98, 0xe1, 0xb7, 0x12, 0x27, 0x3e, 0xe9, 0xf4, 0xac, 0xa5, 0xbb, 0xf7, 0x64, 0xd1, 0xce, 0x4a, 0x8a, 0x3f, 0xb2, 0xf9, 0x27, 0xb0, 0xd6, 0xd2, 0xca, 0x47, 0x22, 0x1d, 0xd7, 0xb5}} return a, nil } @@ -611,7 +603,7 @@ func _lgraphqlEnvironmentbynameGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/environmentByName.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x74, 0x15, 0x91, 0x1a, 0x1e, 0xf5, 0x4, 0x2c, 0x41, 0x27, 0xd3, 0x65, 0x58, 0x69, 0xff, 0x82, 0x37, 0xe4, 0x77, 0x89, 0xf0, 0x8d, 0xfd, 0xb3, 0x9c, 0x22, 0x4, 0xa2, 0xe8, 0x90, 0xc6, 0xe3}} return a, nil } @@ -631,7 +623,7 @@ func _lgraphqlLagoonschemaGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/lagoonSchema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9e, 0xe, 0xea, 0x54, 0xa2, 0xc2, 0x50, 0x45, 0x52, 0xa3, 0x2d, 0xb7, 0x51, 0xef, 0xb, 0x16, 0x78, 0xb0, 0xc8, 0xab, 0xf6, 0x57, 0x59, 0x73, 0xb7, 0x32, 0x67, 0x9a, 0x14, 0x52, 0x5b, 0xd5}} return a, nil } @@ -651,7 +643,7 @@ func _lgraphqlLagoonversionGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/lagoonVersion.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xdd, 0x6d, 0x26, 0x13, 0xe1, 0x87, 0x3, 0xf2, 0x97, 0xc1, 0x80, 0x76, 0xf3, 0xf, 0xa8, 0xea, 0x82, 0xb6, 0x64, 0x5c, 0xcc, 0x41, 0x3f, 0x40, 0x95, 0x3c, 0x46, 0xa5, 0x22, 0x1f, 0x8f, 0xb0}} return a, nil } @@ -671,7 +663,7 @@ func _lgraphqlListdeploytargetsGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/listDeployTargets.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xfb, 0x1d, 0xee, 0x66, 0xa6, 0x75, 0xc6, 0x3b, 0x70, 0xd5, 0xbc, 0xee, 0x68, 0xe4, 0x17, 0xab, 0x9, 0xd, 0x85, 0x58, 0x5f, 0xdb, 0x57, 0x1b, 0xdb, 0xf1, 0xf8, 0x96, 0x14, 0xf, 0x88, 0x19}} return a, nil } @@ -691,7 +683,7 @@ func _lgraphqlMeGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/me.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x41, 0x6a, 0x4a, 0x7d, 0x6e, 0xb1, 0xa2, 0xea, 0x22, 0xdd, 0xff, 0x81, 0x6e, 0x8d, 0x2a, 0x8a, 0x33, 0x61, 0x21, 0xdc, 0xfe, 0xcf, 0xab, 0x1, 0x5e, 0x31, 0xc8, 0x83, 0xb2, 0x8a, 0xbe, 0x9a}} return a, nil } @@ -711,11 +703,11 @@ func _lgraphqlMinimalprojectbynameGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/minimalProjectByName.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf0, 0x9d, 0x3e, 0x8d, 0xa6, 0x4b, 0xb2, 0xed, 0x30, 0xce, 0x1a, 0x58, 0xa2, 0xbe, 0x3d, 0xd, 0x72, 0xd2, 0x56, 0xd7, 0x39, 0xce, 0xe6, 0xc9, 0xa0, 0xc3, 0xbf, 0xd9, 0x70, 0xe3, 0xd5, 0xa8}} return a, nil } -var __lgraphqlProjectbynameGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x54\xc1\x6e\xdb\x30\x0c\xbd\xe7\x2b\xb8\x62\x87\xee\x62\x6c\x3b\xee\xb6\x16\x41\x37\x74\xcb\x8a\x36\xcb\xb5\x60\x64\x3a\xd6\x22\x4b\x0e\x45\x7b\x30\x82\xfc\xfb\xe0\x04\xb3\x65\xd9\x4d\x73\x18\xa6\x4b\x94\x47\xfa\xf1\xe9\x49\xe4\xae\x22\x6e\xe0\x7a\x06\xf0\xd6\x62\x41\x9f\xe0\x49\x58\xdb\xcd\x9b\x77\xb0\x9f\x01\x00\x94\xec\x7e\x91\x92\x9b\x66\x81\x05\x5d\x1f\x21\x80\x53\xe6\xf1\x83\xbf\x79\xed\xd2\x69\xb7\x6d\x43\xdd\x1f\xac\xc4\x7d\x4d\x4d\x0f\xac\x19\xad\xca\xc9\x77\x40\x59\x19\xc3\xb4\xab\xc8\x4b\x00\xb2\xae\x51\xe8\x9e\x9a\x00\x72\x69\xa5\x44\x3b\x3b\xb7\xb5\x66\x67\x0b\xb2\xd2\x45\xbd\x38\xc6\x0d\xdd\xa2\x51\x1d\xe6\x4a\xb2\x3e\xd7\x99\x3c\x9c\x0e\xf2\x80\x22\xc4\xb6\x8b\xa7\x54\x93\x71\x65\xcb\x13\x50\xfa\x6f\xba\xd0\x3d\xf1\x46\xcb\x4f\x36\x2f\x9f\x67\xc3\xae\x2a\x7d\x6f\x04\x40\x92\x24\xe0\x2c\xdc\xb5\x01\x08\x03\x00\xcf\xcf\xd2\x94\x34\x30\x68\xe4\x58\xbb\x0a\x2a\xd6\xc4\x7e\xf8\x31\x40\xe5\x89\x63\x0c\x80\x0a\xd4\x66\x84\x7a\x9f\xdf\x53\x33\xa2\x98\x2c\x77\x5a\x5b\x6a\x96\x4d\xf9\x42\x64\x85\xa6\x1a\x87\x0e\x23\x24\xd3\xec\x65\x31\x55\xc0\xe0\x64\x20\xa6\x60\x67\x86\x29\x61\x42\xbf\xef\x77\xd6\x89\xce\xb4\xc2\xf6\x65\x78\x98\xb8\x88\x45\x90\xf0\x64\x50\x6d\x2f\xbb\x94\xdf\xb4\xce\x9d\xdb\x9e\xbf\x28\x95\xa3\xb5\x64\x26\x25\x4e\x0a\x78\x74\x6a\x4b\x72\x9b\xa3\xfc\x37\x15\xfb\x3d\xe8\x0c\xb0\xd4\x2b\xe2\x3b\x26\x14\xe2\x65\x8e\xf6\x07\xcf\x77\x15\x1a\x48\xe0\xea\x43\xf2\x31\x79\x7f\x05\x87\x57\xb4\xcf\xdb\x87\x76\x99\xec\xe3\x9b\xfc\x9c\xa6\x4c\xde\x9f\xd3\xfe\x4a\xc5\xef\x5a\xb1\xf3\x2e\x93\x25\x61\xe1\xff\x99\x63\x91\x3b\x64\xd3\xf0\xec\x87\xf1\x00\x09\x0b\x07\x93\xae\xcf\x24\x5b\xaf\x90\x35\xae\x0d\x0d\x65\x46\x95\xbd\x72\x83\x0e\xab\x07\x6d\x35\xe0\xeb\xe6\xd1\x39\xbe\x94\x4a\xe3\xe2\xb6\x3d\x81\x37\xe8\xe9\x91\xb2\x11\xfe\x85\x30\x9d\xc2\x97\x5a\x06\x9d\x17\x48\x88\xf8\xe3\xb9\x1a\x75\xf5\x68\x44\x9e\xb1\x67\xe2\x31\xc7\x16\xc5\x26\x4d\x4d\x81\xf6\xf7\x30\xfb\x13\x00\x00\xff\xff\x9c\x62\xa4\x1d\xd0\x06\x00\x00") +var __lgraphqlProjectbynameGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x54\xc1\x6e\xdb\x30\x0c\xbd\xe7\x2b\xb8\x62\x87\xee\x62\x6c\x3b\xee\xb6\x16\x41\x37\x74\xcb\x8a\x36\xcd\xb5\x60\x64\x3a\xd6\x22\x4b\x0e\x45\x7b\x30\x82\xfc\xfb\xe0\x04\xb3\x65\xd9\x4d\x7b\x18\xaa\x4b\x94\x47\xfa\xf1\xe9\x49\xe4\xae\x22\x6e\xe0\x72\x06\xf0\xde\x62\x41\x5f\xe0\x41\x58\xdb\xcd\xbb\x0f\xb0\x9f\x01\x00\x94\xec\x7e\x93\x92\xab\x66\x81\x05\x5d\x1e\x21\x80\x53\xe6\xf1\x83\x7f\x79\xed\xd2\x69\xb7\x6d\x43\xdd\x1f\xac\xc4\x7d\x4f\x4d\x0f\xac\x19\xad\xca\xc9\x77\x40\x59\x19\xc3\xb4\xab\xc8\x4b\x00\xb2\xae\x51\xe8\x96\x9a\x00\x72\x69\xa5\x44\x3b\x3b\xb7\xb5\x66\x67\x0b\xb2\xd2\x45\xbd\x38\xc6\x0d\x5d\xa3\x51\x1d\xe6\x4a\xb2\x3e\xd7\x99\xdc\x9d\x0e\x72\x87\x22\xc4\xb6\x8b\xa7\x54\x93\x71\x65\xcb\x13\x50\xfa\x1f\xba\xd0\x3d\xf1\x46\xcb\x23\x9b\xe7\xcf\x93\xa1\x12\xff\xa8\x43\x99\x6b\x43\x45\x08\x6d\xd8\x55\xa5\xef\xbd\x02\x48\x92\x04\x9c\x85\x9b\x36\x00\x61\x00\xe0\xe9\x49\x9a\x92\x06\x1e\x8e\x4c\x6d\x57\x41\xc5\x9a\xd8\x0f\x3f\x06\xa8\x3c\x71\x8c\x01\x50\x81\xda\x8c\x50\xef\xf3\x5b\x6a\x46\x14\x93\xe5\x4e\x6b\x4b\xcd\xb2\x29\x9f\x89\xac\xd0\x54\xe3\xd0\x61\x84\x64\x9a\xbd\x2c\xa6\x0a\x18\x9c\x0c\xc4\x14\xec\xcc\x30\x25\x4c\xe8\xf7\xfd\xce\x3a\xd1\x99\x56\xd8\x3e\x1e\x0f\x13\x17\xb1\x08\x12\x1e\x0c\xaa\xed\xeb\x2e\xe5\x0f\xad\x73\xe7\xb6\xe7\x2f\x4a\xe5\x68\x2d\x99\x49\x89\x93\x02\xee\x9d\xda\x92\x5c\xe7\x28\x6f\xa6\x62\xbf\x07\x9d\x01\x96\x7a\x45\x7c\xc3\x84\x42\xbc\xcc\xd1\xfe\xe2\xf9\xae\x42\x03\x09\x5c\x7c\x4a\x3e\x27\x1f\x2f\xe0\xf0\x82\xf6\x79\xfb\xd0\x5e\x27\xfb\xf8\x26\xbf\xa6\x29\x93\xf7\xe7\xb4\xbf\x50\xf1\xa7\x56\xec\xbc\xcb\x64\x49\x58\xf8\xff\xe6\x58\xe4\x0e\xd9\x34\x3c\xfb\x61\x3c\x63\xc2\xc2\xc1\x30\xec\x33\xc9\xd6\x2b\x64\x8d\x6b\x43\x43\x99\x51\x65\xaf\xdc\xa0\xc3\xea\x41\x5b\x0d\xf8\xba\x91\x75\x8e\x2f\xa5\xd2\xb8\xb8\x6d\x4f\xe0\x15\x7a\xba\xa7\x6c\x84\x7f\x23\x4c\xa7\xf0\xa5\x96\x41\xe7\x05\x12\x22\xfe\x78\xf4\x46\x5d\x3d\x9a\xa2\x67\xec\x99\x78\xcc\xb1\x45\xb1\x49\x53\x53\xa0\xfd\x3d\xcc\xfe\x06\x00\x00\xff\xff\x6c\x32\x0c\xee\xf3\x06\x00\x00") func _lgraphqlProjectbynameGraphqlBytes() ([]byte, error) { return bindataRead( @@ -731,7 +723,7 @@ func _lgraphqlProjectbynameGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/projectByName.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa8, 0xec, 0x7e, 0xd4, 0xa, 0x7e, 0xb7, 0xf7, 0x1c, 0xd9, 0x41, 0xe8, 0xa7, 0xe5, 0x6e, 0x93, 0xe2, 0x4b, 0xaf, 0x2f, 0xdb, 0x7, 0x84, 0x68, 0x5d, 0x29, 0x11, 0x1b, 0xed, 0x3, 0x5a, 0x73}} return a, nil } @@ -751,7 +743,7 @@ func _lgraphqlProjectbynamemetadataGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/projectByNameMetadata.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x11, 0xcb, 0xca, 0xaf, 0x5d, 0xe3, 0x4, 0x41, 0x92, 0xee, 0xbf, 0x3f, 0xeb, 0x91, 0x7, 0xdb, 0xca, 0x4, 0x3e, 0x42, 0x4a, 0xbf, 0xf2, 0x1a, 0x2b, 0xb, 0x7, 0xa6, 0xff, 0x43, 0x58, 0x51}} return a, nil } @@ -771,7 +763,7 @@ func _lgraphqlProjectsbymetadataGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/projectsByMetadata.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbb, 0x7a, 0xc9, 0x5e, 0x44, 0x76, 0xfe, 0xb3, 0x69, 0x39, 0x98, 0xd6, 0x69, 0xb1, 0x33, 0x61, 0xc8, 0x89, 0x1c, 0xe0, 0x35, 0xdd, 0xcd, 0x72, 0xb0, 0x98, 0xcc, 0x47, 0x6f, 0x9d, 0x96, 0x8b}} return a, nil } @@ -791,7 +783,7 @@ func _lgraphqlRemoveprojectmetadatabykeyGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/removeProjectMetadataByKey.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x51, 0x5f, 0x3b, 0x9d, 0xd7, 0xe2, 0xc3, 0x44, 0x77, 0xc5, 0xee, 0xd3, 0xf3, 0x0, 0x12, 0x85, 0xf3, 0xc2, 0x63, 0x4e, 0xb3, 0xd3, 0xe3, 0x3, 0xfe, 0x4d, 0x53, 0x0, 0x39, 0xfc, 0x63, 0x76}} return a, nil } @@ -811,7 +803,7 @@ func _lgraphqlSwitchactivestandbyGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/switchActiveStandby.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb3, 0xeb, 0xd9, 0x14, 0xd, 0xb4, 0xf0, 0x79, 0xd5, 0x30, 0x22, 0x3, 0xa9, 0x7b, 0x73, 0xc8, 0xc6, 0xe0, 0x9e, 0xe2, 0xdb, 0x58, 0x38, 0x94, 0xe2, 0x22, 0xde, 0x93, 0x3a, 0x8c, 0xc7, 0x56}} return a, nil } @@ -831,7 +823,7 @@ func _lgraphqlTaskbyidGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/taskByID.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7, 0x21, 0xe7, 0x4b, 0x30, 0x2a, 0x2e, 0x7, 0xac, 0x75, 0xd, 0xdc, 0x51, 0x75, 0x53, 0xa, 0x48, 0x5, 0xbe, 0x8e, 0x29, 0x2, 0x90, 0xe, 0xd3, 0xa6, 0xc7, 0xba, 0x1c, 0x46, 0xa4, 0x82}} return a, nil } @@ -851,7 +843,7 @@ func _lgraphqlUpdatedeploytargetGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/updateDeployTarget.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9, 0x62, 0x2f, 0x4f, 0xad, 0xa9, 0x52, 0x1f, 0x88, 0xf0, 0xdf, 0x1f, 0xb6, 0x14, 0xd9, 0x12, 0xa0, 0x81, 0xad, 0xf, 0x1f, 0x7, 0x40, 0x6c, 0x90, 0x1e, 0x3c, 0xe7, 0x21, 0x5c, 0xf2, 0xc3}} return a, nil } @@ -871,7 +863,7 @@ func _lgraphqlUpdatedeploytargetconfigGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/updateDeployTargetConfig.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x52, 0xc1, 0xcf, 0x85, 0xc0, 0x74, 0x58, 0x4d, 0xc2, 0xc8, 0x90, 0x77, 0xc0, 0x42, 0xca, 0x9f, 0xfa, 0xf9, 0x26, 0x36, 0x3, 0x3, 0x66, 0x85, 0x83, 0xe3, 0xc1, 0xf6, 0x52, 0xfc, 0x68, 0xc1}} return a, nil } @@ -891,7 +883,7 @@ func _lgraphqlUpdateprojectmetadataGraphql() (*asset, error) { } info := bindataFileInfo{name: "_lgraphql/updateProjectMetadata.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1e, 0x5c, 0x79, 0x65, 0xb3, 0x80, 0xef, 0xe5, 0x67, 0x82, 0x41, 0xba, 0x50, 0x62, 0x30, 0x52, 0xcb, 0x80, 0x62, 0xf1, 0xf6, 0xbb, 0xb7, 0x8c, 0xd9, 0xc5, 0xd7, 0xff, 0xca, 0x96, 0xcc, 0x66}} return a, nil } @@ -899,8 +891,8 @@ func _lgraphqlUpdateprojectmetadataGraphql() (*asset, error) { // It returns an error if the asset could not be found or // could not be loaded. func Asset(name string) ([]byte, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { + canonicalName := strings.Replace(name, "\\", "/", -1) + if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) @@ -910,6 +902,12 @@ func Asset(name string) ([]byte, error) { return nil, fmt.Errorf("Asset %s not found", name) } +// AssetString returns the asset contents as a string (instead of a []byte). +func AssetString(name string) (string, error) { + data, err := Asset(name) + return string(data), err +} + // MustAsset is like Asset but panics when Asset would return an error. // It simplifies safe initialization of global variables. func MustAsset(name string) []byte { @@ -921,12 +919,18 @@ func MustAsset(name string) []byte { return a } +// MustAssetString is like AssetString but panics when Asset would return an +// error. It simplifies safe initialization of global variables. +func MustAssetString(name string) string { + return string(MustAsset(name)) +} + // AssetInfo loads and returns the asset info for the given name. // It returns an error if the asset could not be found or // could not be loaded. func AssetInfo(name string) (os.FileInfo, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { + canonicalName := strings.Replace(name, "\\", "/", -1) + if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) @@ -936,6 +940,33 @@ func AssetInfo(name string) (os.FileInfo, error) { return nil, fmt.Errorf("AssetInfo %s not found", name) } +// AssetDigest returns the digest of the file with the given name. It returns an +// error if the asset could not be found or the digest could not be loaded. +func AssetDigest(name string) ([sha256.Size]byte, error) { + canonicalName := strings.Replace(name, "\\", "/", -1) + if f, ok := _bindata[canonicalName]; ok { + a, err := f() + if err != nil { + return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s can't read by error: %v", name, err) + } + return a.digest, nil + } + return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s not found", name) +} + +// Digests returns a map of all known files and their checksums. +func Digests() (map[string][sha256.Size]byte, error) { + mp := make(map[string][sha256.Size]byte, len(_bindata)) + for name := range _bindata { + a, err := _bindata[name]() + if err != nil { + return nil, err + } + mp[name] = a.digest + } + return mp, nil +} + // AssetNames returns the names of the assets. func AssetNames() []string { names := make([]string, 0, len(_bindata)) @@ -988,6 +1019,9 @@ var _bindata = map[string]func() (*asset, error){ "_lgraphql/updateProjectMetadata.graphql": _lgraphqlUpdateprojectmetadataGraphql, } +// AssetDebug is true if the assets were built with the debug flag enabled. +const AssetDebug = false + // AssetDir returns the file names below a certain // directory embedded in the file by go-bindata. // For example if you run go-bindata on data/... and data contains the @@ -997,15 +1031,15 @@ var _bindata = map[string]func() (*asset, error){ // img/ // a.png // b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("notexist") would return an error +// then AssetDir("data") would return []string{"foo.txt", "img"}, +// AssetDir("data/img") would return []string{"a.png", "b.png"}, +// AssetDir("foo.txt") and AssetDir("notexist") would return an error, and // AssetDir("") will return []string{"data"}. func AssetDir(name string) ([]string, error) { node := _bintree if len(name) != 0 { - cannonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(cannonicalName, "/") + canonicalName := strings.Replace(name, "\\", "/", -1) + pathList := strings.Split(canonicalName, "/") for _, p := range pathList { node = node.Children[p] if node == nil { @@ -1029,50 +1063,50 @@ type bintree struct { } var _bintree = &bintree{nil, map[string]*bintree{ - "_lgraphql": &bintree{nil, map[string]*bintree{ - "addDeployTarget.graphql": &bintree{_lgraphqlAdddeploytargetGraphql, map[string]*bintree{}}, - "addDeployTargetConfig.graphql": &bintree{_lgraphqlAdddeploytargetconfigGraphql, map[string]*bintree{}}, - "addEnvVariable.graphql": &bintree{_lgraphqlAddenvvariableGraphql, map[string]*bintree{}}, - "addGroup.graphql": &bintree{_lgraphqlAddgroupGraphql, map[string]*bintree{}}, - "addGroupsToProject.graphql": &bintree{_lgraphqlAddgroupstoprojectGraphql, map[string]*bintree{}}, - "addNotificationEmail.graphql": &bintree{_lgraphqlAddnotificationemailGraphql, map[string]*bintree{}}, - "addNotificationMicrosoftTeams.graphql": &bintree{_lgraphqlAddnotificationmicrosoftteamsGraphql, map[string]*bintree{}}, - "addNotificationRocketChat.graphql": &bintree{_lgraphqlAddnotificationrocketchatGraphql, map[string]*bintree{}}, - "addNotificationSlack.graphql": &bintree{_lgraphqlAddnotificationslackGraphql, map[string]*bintree{}}, - "addNotificationToProject.graphql": &bintree{_lgraphqlAddnotificationtoprojectGraphql, map[string]*bintree{}}, - "addOrUpdateEnvironment.graphql": &bintree{_lgraphqlAddorupdateenvironmentGraphql, map[string]*bintree{}}, - "addProject.graphql": &bintree{_lgraphqlAddprojectGraphql, map[string]*bintree{}}, - "addRestore.graphql": &bintree{_lgraphqlAddrestoreGraphql, map[string]*bintree{}}, - "addSshKey.graphql": &bintree{_lgraphqlAddsshkeyGraphql, map[string]*bintree{}}, - "addUser.graphql": &bintree{_lgraphqlAdduserGraphql, map[string]*bintree{}}, - "addUserToGroup.graphql": &bintree{_lgraphqlAddusertogroupGraphql, map[string]*bintree{}}, - "backupsForEnvironmentByName.graphql": &bintree{_lgraphqlBackupsforenvironmentbynameGraphql, map[string]*bintree{}}, - "deleteDeployTarget.graphql": &bintree{_lgraphqlDeletedeploytargetGraphql, map[string]*bintree{}}, - "deleteDeployTargetConfig.graphql": &bintree{_lgraphqlDeletedeploytargetconfigGraphql, map[string]*bintree{}}, - "deployEnvironmentBranch.graphql": &bintree{_lgraphqlDeployenvironmentbranchGraphql, map[string]*bintree{}}, - "deployEnvironmentLatest.graphql": &bintree{_lgraphqlDeployenvironmentlatestGraphql, map[string]*bintree{}}, - "deployEnvironmentPromote.graphql": &bintree{_lgraphqlDeployenvironmentpromoteGraphql, map[string]*bintree{}}, - "deployEnvironmentPullrequest.graphql": &bintree{_lgraphqlDeployenvironmentpullrequestGraphql, map[string]*bintree{}}, - "deployTargetConfigsByProjectId.graphql": &bintree{_lgraphqlDeploytargetconfigsbyprojectidGraphql, map[string]*bintree{}}, - "environmentByName.graphql": &bintree{_lgraphqlEnvironmentbynameGraphql, map[string]*bintree{}}, - "lagoonSchema.graphql": &bintree{_lgraphqlLagoonschemaGraphql, map[string]*bintree{}}, - "lagoonVersion.graphql": &bintree{_lgraphqlLagoonversionGraphql, map[string]*bintree{}}, - "listDeployTargets.graphql": &bintree{_lgraphqlListdeploytargetsGraphql, map[string]*bintree{}}, - "me.graphql": &bintree{_lgraphqlMeGraphql, map[string]*bintree{}}, - "minimalProjectByName.graphql": &bintree{_lgraphqlMinimalprojectbynameGraphql, map[string]*bintree{}}, - "projectByName.graphql": &bintree{_lgraphqlProjectbynameGraphql, map[string]*bintree{}}, - "projectByNameMetadata.graphql": &bintree{_lgraphqlProjectbynamemetadataGraphql, map[string]*bintree{}}, - "projectsByMetadata.graphql": &bintree{_lgraphqlProjectsbymetadataGraphql, map[string]*bintree{}}, - "removeProjectMetadataByKey.graphql": &bintree{_lgraphqlRemoveprojectmetadatabykeyGraphql, map[string]*bintree{}}, - "switchActiveStandby.graphql": &bintree{_lgraphqlSwitchactivestandbyGraphql, map[string]*bintree{}}, - "taskByID.graphql": &bintree{_lgraphqlTaskbyidGraphql, map[string]*bintree{}}, - "updateDeployTarget.graphql": &bintree{_lgraphqlUpdatedeploytargetGraphql, map[string]*bintree{}}, - "updateDeployTargetConfig.graphql": &bintree{_lgraphqlUpdatedeploytargetconfigGraphql, map[string]*bintree{}}, - "updateProjectMetadata.graphql": &bintree{_lgraphqlUpdateprojectmetadataGraphql, map[string]*bintree{}}, + "_lgraphql": {nil, map[string]*bintree{ + "addDeployTarget.graphql": {_lgraphqlAdddeploytargetGraphql, map[string]*bintree{}}, + "addDeployTargetConfig.graphql": {_lgraphqlAdddeploytargetconfigGraphql, map[string]*bintree{}}, + "addEnvVariable.graphql": {_lgraphqlAddenvvariableGraphql, map[string]*bintree{}}, + "addGroup.graphql": {_lgraphqlAddgroupGraphql, map[string]*bintree{}}, + "addGroupsToProject.graphql": {_lgraphqlAddgroupstoprojectGraphql, map[string]*bintree{}}, + "addNotificationEmail.graphql": {_lgraphqlAddnotificationemailGraphql, map[string]*bintree{}}, + "addNotificationMicrosoftTeams.graphql": {_lgraphqlAddnotificationmicrosoftteamsGraphql, map[string]*bintree{}}, + "addNotificationRocketChat.graphql": {_lgraphqlAddnotificationrocketchatGraphql, map[string]*bintree{}}, + "addNotificationSlack.graphql": {_lgraphqlAddnotificationslackGraphql, map[string]*bintree{}}, + "addNotificationToProject.graphql": {_lgraphqlAddnotificationtoprojectGraphql, map[string]*bintree{}}, + "addOrUpdateEnvironment.graphql": {_lgraphqlAddorupdateenvironmentGraphql, map[string]*bintree{}}, + "addProject.graphql": {_lgraphqlAddprojectGraphql, map[string]*bintree{}}, + "addRestore.graphql": {_lgraphqlAddrestoreGraphql, map[string]*bintree{}}, + "addSshKey.graphql": {_lgraphqlAddsshkeyGraphql, map[string]*bintree{}}, + "addUser.graphql": {_lgraphqlAdduserGraphql, map[string]*bintree{}}, + "addUserToGroup.graphql": {_lgraphqlAddusertogroupGraphql, map[string]*bintree{}}, + "backupsForEnvironmentByName.graphql": {_lgraphqlBackupsforenvironmentbynameGraphql, map[string]*bintree{}}, + "deleteDeployTarget.graphql": {_lgraphqlDeletedeploytargetGraphql, map[string]*bintree{}}, + "deleteDeployTargetConfig.graphql": {_lgraphqlDeletedeploytargetconfigGraphql, map[string]*bintree{}}, + "deployEnvironmentBranch.graphql": {_lgraphqlDeployenvironmentbranchGraphql, map[string]*bintree{}}, + "deployEnvironmentLatest.graphql": {_lgraphqlDeployenvironmentlatestGraphql, map[string]*bintree{}}, + "deployEnvironmentPromote.graphql": {_lgraphqlDeployenvironmentpromoteGraphql, map[string]*bintree{}}, + "deployEnvironmentPullrequest.graphql": {_lgraphqlDeployenvironmentpullrequestGraphql, map[string]*bintree{}}, + "deployTargetConfigsByProjectId.graphql": {_lgraphqlDeploytargetconfigsbyprojectidGraphql, map[string]*bintree{}}, + "environmentByName.graphql": {_lgraphqlEnvironmentbynameGraphql, map[string]*bintree{}}, + "lagoonSchema.graphql": {_lgraphqlLagoonschemaGraphql, map[string]*bintree{}}, + "lagoonVersion.graphql": {_lgraphqlLagoonversionGraphql, map[string]*bintree{}}, + "listDeployTargets.graphql": {_lgraphqlListdeploytargetsGraphql, map[string]*bintree{}}, + "me.graphql": {_lgraphqlMeGraphql, map[string]*bintree{}}, + "minimalProjectByName.graphql": {_lgraphqlMinimalprojectbynameGraphql, map[string]*bintree{}}, + "projectByName.graphql": {_lgraphqlProjectbynameGraphql, map[string]*bintree{}}, + "projectByNameMetadata.graphql": {_lgraphqlProjectbynamemetadataGraphql, map[string]*bintree{}}, + "projectsByMetadata.graphql": {_lgraphqlProjectsbymetadataGraphql, map[string]*bintree{}}, + "removeProjectMetadataByKey.graphql": {_lgraphqlRemoveprojectmetadatabykeyGraphql, map[string]*bintree{}}, + "switchActiveStandby.graphql": {_lgraphqlSwitchactivestandbyGraphql, map[string]*bintree{}}, + "taskByID.graphql": {_lgraphqlTaskbyidGraphql, map[string]*bintree{}}, + "updateDeployTarget.graphql": {_lgraphqlUpdatedeploytargetGraphql, map[string]*bintree{}}, + "updateDeployTargetConfig.graphql": {_lgraphqlUpdatedeploytargetconfigGraphql, map[string]*bintree{}}, + "updateProjectMetadata.graphql": {_lgraphqlUpdateprojectmetadataGraphql, map[string]*bintree{}}, }}, }} -// RestoreAsset restores an asset under the given directory +// RestoreAsset restores an asset under the given directory. func RestoreAsset(dir, name string) error { data, err := Asset(name) if err != nil { @@ -1090,14 +1124,10 @@ func RestoreAsset(dir, name string) error { if err != nil { return err } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil + return os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) } -// RestoreAssets restores an asset under the given directory recursively +// RestoreAssets restores an asset under the given directory recursively. func RestoreAssets(dir, name string) error { children, err := AssetDir(name) // File @@ -1115,6 +1145,6 @@ func RestoreAssets(dir, name string) error { } func _filePath(dir, name string) string { - cannonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) + canonicalName := strings.Replace(name, "\\", "/", -1) + return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) } diff --git a/pkg/api/types.go b/pkg/api/types.go index 12d5cb22..29070bfe 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -248,6 +248,7 @@ type Project struct { Deployments []Deployment `json:"deployments,omitempty"` Notifications []interface{} `json:"notifications,omitempty"` FactsUI *int `json:"factsUi,omitempty"` + ProblemsUI *int `json:"problemsUi,omitempty"` } // ProjectPatch struct. diff --git a/pkg/graphql/main.go b/pkg/graphql/main.go index 9f15cf9d..908d954b 100644 --- a/pkg/graphql/main.go +++ b/pkg/graphql/main.go @@ -50,6 +50,8 @@ var ProjectByNameFragment = `fragment Project on Project { routerPattern branches pullrequests + problemsUi + factsUi productionEnvironment environments { id diff --git a/pkg/lagoon/projects/main.go b/pkg/lagoon/projects/main.go index 16d7d2a0..d59f724d 100644 --- a/pkg/lagoon/projects/main.go +++ b/pkg/lagoon/projects/main.go @@ -138,7 +138,7 @@ func processProjectInfo(projectByName []byte) ([]byte, error) { var data []output.Data data = append(data, projectData) dataMain := output.Table{ - Header: []string{"ID", "ProjectName", "GitURL", "Branches", "PullRequests", "ProductionRoute", "DevEnvironments", "DevEnvLimit", "ProductionEnv", "RouterPattern", "AutoIdle"}, + Header: []string{"ID", "ProjectName", "GitURL", "Branches", "PullRequests", "ProductionRoute", "DevEnvironments", "DevEnvLimit", "ProductionEnv", "RouterPattern", "AutoIdle", "FactsUI", "ProblemsUI"}, Data: data, } return json.Marshal(dataMain) @@ -168,6 +168,8 @@ func processProjectExtra(project api.Project) []string { fmt.Sprintf("%v", project.ProductionEnvironment), fmt.Sprintf("%s", project.RouterPattern), fmt.Sprintf("%v", *project.AutoIdle), + fmt.Sprintf("%v", *project.FactsUI), + fmt.Sprintf("%v", *project.ProblemsUI), } return data } diff --git a/pkg/lagoon/projects/main_test.go b/pkg/lagoon/projects/main_test.go index 4cd3c83d..16bc93d9 100644 --- a/pkg/lagoon/projects/main_test.go +++ b/pkg/lagoon/projects/main_test.go @@ -74,14 +74,14 @@ func TestProjectEnvironmentList(t *testing.T) { func TestProjectInfo(t *testing.T) { var projectInfo = ` - {"autoIdle":1,"branches":"false","developmentEnvironmentsLimit":5,"environments":[ + {"autoIdle":1,"branches":"false","developmentEnvironmentsLimit":5,"factsUI":0,"problemsUI":0,"environments":[ {"deployType":"branch","environmentType":"production","id":3,"name":"Master","openshiftProjectName":"high-cotton-master","route":"http://highcotton.org"}, {"deployType":"branch","environmentType":"development","id":4,"name":"Staging","openshiftProjectName":"high-cotton-staging","route":"https://varnish-highcotton-org-staging.us.amazee.io"}, {"deployType":"branch","environmentType":"development","id":5,"name":"Development","openshiftProjectName":"high-cotton-development","route":"https://varnish-highcotton-org-development.us.amazee.io"}, {"deployType":"pullrequest","environmentType":"development","id":6,"name":"PR-175","openshiftProjectName":"high-cotton-pr-175","route":""}, {"deployType":"branch","environmentType":"development","id":10,"name":"high-cotton","openshiftProjectName":"high-cotton-high-cotton","route":null}], "gitUrl":"test","id":18,"name":"high-cotton","productionEnvironment":"doopdd","routerPattern":"${environment}-${project}.lagoon.example.com","pullrequests":"false","storageCalc":1,"subfolder":null}` - var projectInfoSuccess = `{"header":["ID","ProjectName","GitURL","Branches","PullRequests","ProductionRoute","DevEnvironments","DevEnvLimit","ProductionEnv","RouterPattern","AutoIdle"],"data":[["18","high-cotton","test","false","false","http://highcotton.org","4/5","5","doopdd","${environment}-${project}.lagoon.example.com","1"]]}` + var projectInfoSuccess = `{"header":["ID","ProjectName","GitURL","Branches","PullRequests","ProductionRoute","DevEnvironments","DevEnvLimit","ProductionEnv","RouterPattern","AutoIdle","FactsUI","ProblemsUI"],"data":[["18","high-cotton","test","false","false","http://highcotton.org","4/5","5","doopdd","${environment}-${project}.lagoon.example.com","1","0","0"]]}` returnResult, err := processProjectInfo([]byte(projectInfo)) if err != nil {