├── vendor ├── github.com │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── go_below_17.go │ │ │ ├── go_above_17.go │ │ │ ├── go_below_19.go │ │ │ └── go_above_19.go │ │ └── concurrent │ │ │ ├── go_above_19.go │ │ │ ├── log.go │ │ │ └── executor.go │ ├── gogo │ │ └── protobuf │ │ │ ├── test │ │ │ ├── oneof │ │ │ │ └── doc.go │ │ │ ├── issue270 │ │ │ │ └── doc.go │ │ │ ├── oneof3 │ │ │ │ └── doc.go │ │ │ ├── packed │ │ │ │ └── doc.go │ │ │ ├── mapsproto2 │ │ │ │ └── doc.go │ │ │ ├── theproto3 │ │ │ │ └── doc.go │ │ │ ├── dashfilename │ │ │ │ └── doc.go │ │ │ ├── embedconflict │ │ │ │ └── doc.go │ │ │ ├── sizerconflict │ │ │ │ └── doc.go │ │ │ ├── defaultconflict │ │ │ │ └── doc.go │ │ │ ├── jsonpb-gogo │ │ │ │ └── jsonpb_gogo.go │ │ │ ├── enumdecl │ │ │ │ └── models.go │ │ │ ├── enumdecl_all │ │ │ │ └── models.go │ │ │ ├── typedeclimport │ │ │ │ └── models.go │ │ │ └── issue330 │ │ │ │ └── type.go │ │ │ ├── vanity │ │ │ └── test │ │ │ │ └── doc.go │ │ │ ├── proto │ │ │ └── test_proto │ │ │ │ └── deterministic.go │ │ │ ├── GOLANG_CONTRIBUTORS │ │ │ ├── jsonpb │ │ │ └── jsonpb_test_proto │ │ │ │ └── bytes.go │ │ │ ├── gogoreplace │ │ │ └── main.go │ │ │ └── AUTHORS │ ├── pborman │ │ └── uuid │ │ │ ├── CONTRIBUTORS │ │ │ └── doc.go │ ├── mailru │ │ └── easyjson │ │ │ ├── tests │ │ │ ├── nothing.go │ │ │ ├── disallow_unknown.go │ │ │ ├── snake.go │ │ │ ├── omitempty.go │ │ │ ├── embedded_type.go │ │ │ ├── errors.go │ │ │ ├── nested_easy.go │ │ │ └── named_type.go │ │ │ └── jlexer │ │ │ ├── error.go │ │ │ └── bytestostr_nounsafe.go │ ├── imdario │ │ └── mergo │ │ │ └── testdata │ │ │ └── license.yml │ ├── petar │ │ └── GoLLRB │ │ │ ├── AUTHORS │ │ │ ├── llrb │ │ │ └── util.go │ │ │ └── example │ │ │ └── ex1.go │ ├── google │ │ └── uuid │ │ │ ├── CONTRIBUTORS │ │ │ ├── doc.go │ │ │ └── node_js.go │ ├── go-openapi │ │ └── swag │ │ │ ├── post_go18.go │ │ │ ├── pre_go18.go │ │ │ └── net.go │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── emicklei │ │ └── go-restful │ │ │ ├── json.go │ │ │ ├── jsoniter.go │ │ │ └── examples │ │ │ ├── google_app_engine │ │ │ └── restful-appstats-integration.go │ │ │ ├── restful-hello-world.go │ │ │ └── restful-no-cache-filter.go │ ├── googleapis │ │ └── gnostic │ │ │ └── plugins │ │ │ └── gnostic-go-generator │ │ │ └── examples │ │ │ └── v2.0 │ │ │ └── xkcd │ │ │ └── main.go │ └── peterbourgon │ │ └── diskv │ │ └── examples │ │ └── super-simple-store │ │ └── super-simple-store.go ├── golang.org │ └── x │ │ ├── tools │ │ ├── go │ │ │ ├── loader │ │ │ │ └── testdata │ │ │ │ │ ├── a.go │ │ │ │ │ ├── b.go │ │ │ │ │ └── badpkgdecl.go │ │ │ ├── packages │ │ │ │ ├── testdata │ │ │ │ │ ├── TestName_Modules │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ └── b │ │ │ │ │ │ │ │ └── pkg │ │ │ │ │ │ │ │ └── pkg.go │ │ │ │ │ │ └── pkg │ │ │ │ │ │ │ └── mod │ │ │ │ │ │ │ └── github.com │ │ │ │ │ │ │ └── heschik │ │ │ │ │ │ │ ├── tools-testrepo │ │ │ │ │ │ │ └── v2@v2.0.0 │ │ │ │ │ │ │ │ └── pkg │ │ │ │ │ │ │ │ └── pkg.go │ │ │ │ │ │ │ └── tools-testrepo@v1.0.0 │ │ │ │ │ │ │ └── pkg │ │ │ │ │ │ │ └── pkg.go │ │ │ │ │ └── TestName_ModulesDedup │ │ │ │ │ │ └── pkg │ │ │ │ │ │ └── mod │ │ │ │ │ │ └── github.com │ │ │ │ │ │ └── heschik │ │ │ │ │ │ ├── tools-testrepo │ │ │ │ │ │ ├── v2@v2.0.1 │ │ │ │ │ │ │ └── pkg │ │ │ │ │ │ │ │ └── pkg.go │ │ │ │ │ │ └── v2@v2.0.2 │ │ │ │ │ │ │ └── pkg │ │ │ │ │ │ │ └── pkg.go │ │ │ │ │ │ └── tools-testrepo@v1.0.0 │ │ │ │ │ │ └── pkg │ │ │ │ │ │ └── pkg.go │ │ │ │ └── packagestest │ │ │ │ │ └── modules_111.go │ │ │ ├── analysis │ │ │ │ └── passes │ │ │ │ │ ├── tests │ │ │ │ │ └── testdata │ │ │ │ │ │ └── src │ │ │ │ │ │ ├── a │ │ │ │ │ │ └── a.go │ │ │ │ │ │ └── divergent │ │ │ │ │ │ └── buf.go │ │ │ │ │ ├── pkgfact │ │ │ │ │ └── testdata │ │ │ │ │ │ └── src │ │ │ │ │ │ ├── b │ │ │ │ │ │ └── b.go │ │ │ │ │ │ ├── a │ │ │ │ │ │ └── a.go │ │ │ │ │ │ └── c │ │ │ │ │ │ └── c.go │ │ │ │ │ ├── ctrlflow │ │ │ │ │ └── testdata │ │ │ │ │ │ └── src │ │ │ │ │ │ └── lib │ │ │ │ │ │ └── lib.go │ │ │ │ │ ├── findcall │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── src │ │ │ │ │ │ │ └── a │ │ │ │ │ │ │ └── a.go │ │ │ │ │ └── cmd │ │ │ │ │ │ └── findcall │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── cgocall │ │ │ │ │ └── testdata │ │ │ │ │ │ └── src │ │ │ │ │ │ ├── a │ │ │ │ │ │ ├── cgo3.go │ │ │ │ │ │ ├── cgo2.go │ │ │ │ │ │ └── cgo4.go │ │ │ │ │ │ └── b │ │ │ │ │ │ └── b.go │ │ │ │ │ ├── buildssa │ │ │ │ │ └── testdata │ │ │ │ │ │ └── src │ │ │ │ │ │ └── a │ │ │ │ │ │ └── a.go │ │ │ │ │ ├── nilness │ │ │ │ │ └── cmd │ │ │ │ │ │ └── nilness │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── lostcancel │ │ │ │ │ └── cmd │ │ │ │ │ │ └── lostcancel │ │ │ │ │ │ └── main.go │ │ │ │ │ └── asmdecl │ │ │ │ │ └── testdata │ │ │ │ │ └── src │ │ │ │ │ └── a │ │ │ │ │ └── asm4.s │ │ │ ├── internal │ │ │ │ ├── gccgoimporter │ │ │ │ │ ├── testdata │ │ │ │ │ │ ├── pointer.go │ │ │ │ │ │ ├── conversions.go │ │ │ │ │ │ ├── imports.go │ │ │ │ │ │ ├── issue27856.go │ │ │ │ │ │ ├── complexnums.go │ │ │ │ │ │ └── escapeinfo.go │ │ │ │ │ └── newInterface11.go │ │ │ │ └── gcimporter │ │ │ │ │ ├── testdata │ │ │ │ │ ├── issue20046.go │ │ │ │ │ ├── b.go │ │ │ │ │ ├── p.go │ │ │ │ │ ├── a.go │ │ │ │ │ ├── issue25301.go │ │ │ │ │ └── issue15920.go │ │ │ │ │ └── newInterface11.go │ │ │ ├── ssa │ │ │ │ ├── identical_17.go │ │ │ │ ├── identical.go │ │ │ │ └── interp │ │ │ │ │ └── testdata │ │ │ │ │ └── reflect.go │ │ │ ├── pointer │ │ │ │ └── testdata │ │ │ │ │ ├── recur.go │ │ │ │ │ ├── extended.go │ │ │ │ │ ├── timer.go │ │ │ │ │ ├── issue9002.go │ │ │ │ │ └── hello.go │ │ │ ├── ast │ │ │ │ └── astutil │ │ │ │ │ └── util.go │ │ │ └── callgraph │ │ │ │ └── cha │ │ │ │ └── testdata │ │ │ │ ├── func.go │ │ │ │ └── recv.go │ │ ├── cmd │ │ │ ├── guru │ │ │ │ ├── testdata │ │ │ │ │ └── src │ │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── sublib │ │ │ │ │ │ │ └── sublib.go │ │ │ │ │ │ └── lib.go │ │ │ │ │ │ ├── definition-json │ │ │ │ │ │ ├── type.go │ │ │ │ │ │ └── main19.go │ │ │ │ │ │ ├── main │ │ │ │ │ │ └── multi.go │ │ │ │ │ │ ├── what-json │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── peers-json │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── what │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── calls-json │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── describe │ │ │ │ │ │ └── main19.go │ │ │ │ │ │ ├── softerrs │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── referrers-json │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── pointsto-json │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── whicherrs │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── alias │ │ │ │ │ │ └── alias.go │ │ │ │ ├── isAlias19.go │ │ │ │ └── isAlias18.go │ │ │ ├── fiximports │ │ │ │ └── testdata │ │ │ │ │ └── src │ │ │ │ │ ├── new.com │ │ │ │ │ └── one │ │ │ │ │ │ └── one.go │ │ │ │ │ ├── old.com │ │ │ │ │ ├── one │ │ │ │ │ │ └── one.go │ │ │ │ │ └── bad │ │ │ │ │ │ └── bad.go │ │ │ │ │ ├── fruit.io │ │ │ │ │ ├── pear │ │ │ │ │ │ └── pear.go │ │ │ │ │ ├── orange │ │ │ │ │ │ └── orange.go │ │ │ │ │ └── banana │ │ │ │ │ │ └── banana.go │ │ │ │ │ └── titanic.biz │ │ │ │ │ ├── foo │ │ │ │ │ └── foo.go │ │ │ │ │ └── bar │ │ │ │ │ └── bar.go │ │ │ ├── bundle │ │ │ │ └── testdata │ │ │ │ │ └── src │ │ │ │ │ ├── domain.name │ │ │ │ │ └── importdecl │ │ │ │ │ │ └── p.go │ │ │ │ │ └── initial │ │ │ │ │ ├── c.go │ │ │ │ │ ├── b.go │ │ │ │ │ └── a.go │ │ │ ├── stringer │ │ │ │ ├── testdata │ │ │ │ │ ├── tag_tag.go │ │ │ │ │ ├── tag_main.go │ │ │ │ │ ├── unum2.go │ │ │ │ │ └── num.go │ │ │ │ ├── importer18.go │ │ │ │ └── importer19.go │ │ │ ├── goimports │ │ │ │ ├── goimports_not_gc.go │ │ │ │ └── goimports_gc.go │ │ │ ├── godex │ │ │ │ ├── isAlias19.go │ │ │ │ ├── gc.go │ │ │ │ ├── isAlias18.go │ │ │ │ └── source.go │ │ │ ├── godoc │ │ │ │ ├── index.go │ │ │ │ ├── play.go │ │ │ │ └── dl.go │ │ │ ├── callgraph │ │ │ │ └── testdata │ │ │ │ │ └── src │ │ │ │ │ └── pkg │ │ │ │ │ └── pkg.go │ │ │ ├── gotype │ │ │ │ └── sizesFor19.go │ │ │ ├── heapview │ │ │ │ └── internal │ │ │ │ │ └── core │ │ │ │ │ └── mmapfile_other.go │ │ │ └── goyacc │ │ │ │ └── testdata │ │ │ │ └── expr │ │ │ │ └── main.go │ │ ├── refactor │ │ │ └── eg │ │ │ │ └── testdata │ │ │ │ ├── E1.go │ │ │ │ ├── I1.go │ │ │ │ ├── J1.go │ │ │ │ ├── A2.go │ │ │ │ ├── G1.go │ │ │ │ ├── H1.go │ │ │ │ ├── D1.go │ │ │ │ ├── B1.go │ │ │ │ └── C1.go │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── container │ │ │ └── intsets │ │ │ │ ├── popcnt_gccgo.go │ │ │ │ ├── popcnt_amd64.go │ │ │ │ └── popcnt_gccgo_c.c │ │ ├── internal │ │ │ ├── fastwalk │ │ │ │ ├── fastwalk_dirent_fileno.go │ │ │ │ ├── fastwalk_dirent_ino.go │ │ │ │ └── fastwalk_dirent_namlen_bsd.go │ │ │ └── lsp │ │ │ │ └── protocol │ │ │ │ └── diagnostics.go │ │ ├── godoc │ │ │ └── static │ │ │ │ └── doc.go │ │ └── present │ │ │ └── caption.go │ │ ├── net │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── internal │ │ │ ├── socket │ │ │ │ ├── sys_darwin.go │ │ │ │ ├── sys_dragonfly.go │ │ │ │ ├── sys_linux_amd64.go │ │ │ │ ├── sys_linux_arm.go │ │ │ │ ├── sys_linux_arm64.go │ │ │ │ ├── sys_linux_mips.go │ │ │ │ ├── sys_linux_ppc64.go │ │ │ │ ├── sys_linux_mips64.go │ │ │ │ ├── sys_linux_mips64le.go │ │ │ │ ├── sys_linux_mipsle.go │ │ │ │ ├── sys_linux_ppc64le.go │ │ │ │ ├── iovec_stub.go │ │ │ │ ├── msghdr_openbsd.go │ │ │ │ ├── sys_linux_386.s │ │ │ │ ├── sys_bsdvar.go │ │ │ │ ├── sys_linux_s390x.s │ │ │ │ ├── sys_solaris_amd64.s │ │ │ │ ├── cmsghdr_bsd.go │ │ │ │ ├── cmsghdr_solaris_64bit.go │ │ │ │ ├── cmsghdr_linux_32bit.go │ │ │ │ ├── msghdr_bsdvar.go │ │ │ │ ├── cmsghdr_linux_64bit.go │ │ │ │ ├── cmsghdr.go │ │ │ │ ├── iovec_solaris_64bit.go │ │ │ │ ├── iovec_32bit.go │ │ │ │ ├── iovec_64bit.go │ │ │ │ ├── rawconn_nommsg.go │ │ │ │ ├── sys_bsd.go │ │ │ │ ├── cmsghdr_stub.go │ │ │ │ ├── rawconn_nomsg.go │ │ │ │ ├── msghdr_linux_32bit.go │ │ │ │ ├── msghdr_linux_64bit.go │ │ │ │ ├── mmsghdr_stub.go │ │ │ │ └── msghdr_stub.go │ │ │ └── nettest │ │ │ │ ├── rlimit.go │ │ │ │ └── helper_nobsd.go │ │ ├── lif │ │ │ ├── sys_solaris_amd64.s │ │ │ └── sys.go │ │ ├── icmp │ │ │ ├── sys_freebsd.go │ │ │ └── ipv6.go │ │ ├── bpf │ │ │ └── setter.go │ │ ├── webdav │ │ │ ├── file_go1.7.go │ │ │ └── file_go1.6.go │ │ ├── ipv4 │ │ │ ├── sys_stub.go │ │ │ ├── sys_bpf_stub.go │ │ │ ├── control_windows.go │ │ │ ├── control_stub.go │ │ │ ├── icmp_stub.go │ │ │ ├── sys_asmreqn_stub.go │ │ │ ├── sys_ssmreq_stub.go │ │ │ ├── icmp_linux.go │ │ │ ├── sys_bpf.go │ │ │ └── payload.go │ │ ├── ipv6 │ │ │ ├── sys_stub.go │ │ │ ├── sys_bpf_stub.go │ │ │ ├── control_windows.go │ │ │ ├── control_stub.go │ │ │ ├── sys_asmreq_stub.go │ │ │ ├── icmp_stub.go │ │ │ ├── sys_ssmreq_stub.go │ │ │ ├── icmp_windows.go │ │ │ ├── sys_bpf.go │ │ │ └── payload.go │ │ ├── http2 │ │ │ ├── not_go19.go │ │ │ ├── go16.go │ │ │ ├── go19.go │ │ │ ├── not_go16.go │ │ │ └── not_go111.go │ │ ├── proxy │ │ │ └── direct.go │ │ ├── websocket │ │ │ └── dial.go │ │ └── trace │ │ │ └── trace_go17.go │ │ ├── sys │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── cpu │ │ │ ├── cpu_arm.go │ │ │ ├── cpu_arm64.go │ │ │ ├── cpu_s390x.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_ppc64x.go │ │ │ └── cpu_gc_x86.go │ │ ├── plan9 │ │ │ ├── asm.s │ │ │ ├── pwd_go15_plan9.go │ │ │ ├── pwd_plan9.go │ │ │ ├── race0.go │ │ │ └── str.go │ │ ├── unix │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── constants.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── aliases.go │ │ │ ├── pagesize_unix.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── race0.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ └── syscall_unix_gc.go │ │ └── windows │ │ │ ├── svc │ │ │ ├── go12.go │ │ │ ├── example │ │ │ │ └── beep.go │ │ │ └── go12.c │ │ │ ├── registry │ │ │ └── mksyscall.go │ │ │ ├── mksyscall.go │ │ │ ├── aliases.go │ │ │ ├── asm_windows_arm.s │ │ │ ├── asm_windows_386.s │ │ │ ├── asm_windows_amd64.s │ │ │ ├── race0.go │ │ │ ├── types_windows_386.go │ │ │ ├── types_windows_amd64.go │ │ │ ├── types_windows_arm.go │ │ │ └── str.go │ │ ├── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── language │ │ │ ├── go1_2.go │ │ │ ├── common.go │ │ │ └── gen_common.go │ │ ├── secure │ │ │ ├── doc.go │ │ │ └── bidirule │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ └── bidirule9.0.0.go │ │ ├── encoding │ │ │ ├── japanese │ │ │ │ └── all.go │ │ │ └── simplifiedchinese │ │ │ │ └── all.go │ │ ├── unicode │ │ │ └── doc.go │ │ ├── internal │ │ │ ├── testtext │ │ │ │ ├── gc.go │ │ │ │ ├── gccgo.go │ │ │ │ └── go1_7.go │ │ │ └── number │ │ │ │ └── roundingmode_string.go │ │ ├── cmd │ │ │ └── gotext │ │ │ │ └── examples │ │ │ │ ├── extract_http │ │ │ │ └── main.go │ │ │ │ └── rewrite │ │ │ │ └── printer.go │ │ ├── width │ │ │ └── kind_string.go │ │ ├── message │ │ │ └── catalog │ │ │ │ ├── go19.go │ │ │ │ └── gopre19.go │ │ └── doc.go │ │ ├── time │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── crypto │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── ssh │ │ │ ├── test │ │ │ │ └── doc.go │ │ │ ├── terminal │ │ │ │ ├── util_linux.go │ │ │ │ └── util_bsd.go │ │ │ └── testdata │ │ │ │ └── doc.go │ │ ├── sha3 │ │ │ ├── keccakf_amd64.go │ │ │ ├── xor.go │ │ │ ├── register.go │ │ │ └── shake_generic.go │ │ ├── curve25519 │ │ │ └── const_amd64.h │ │ ├── blake2b │ │ │ ├── blake2b_ref.go │ │ │ └── blake2b_amd64.go │ │ ├── internal │ │ │ └── chacha20 │ │ │ │ └── chacha_noasm.go │ │ ├── argon2 │ │ │ └── blamka_ref.go │ │ ├── blake2s │ │ │ ├── register.go │ │ │ └── blake2s_ref.go │ │ ├── poly1305 │ │ │ └── sum_noasm.go │ │ └── chacha20poly1305 │ │ │ └── chacha20poly1305_noasm.go │ │ └── oauth2 │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── internal │ │ ├── doc.go │ │ └── client_appengine.go │ │ ├── google │ │ ├── appengineflex_hook.go │ │ └── appengine_hook.go │ │ ├── amazon │ │ └── amazon.go │ │ ├── vk │ │ └── vk.go │ │ ├── mailru │ │ └── mailru.go │ │ ├── gitlab │ │ └── gitlab.go │ │ ├── slack │ │ └── slack.go │ │ ├── uber │ │ └── uber.go │ │ ├── kakao │ │ └── kakao.go │ │ ├── bitbucket │ │ └── bitbucket.go │ │ ├── cern │ │ └── cern.go │ │ ├── heroku │ │ └── heroku.go │ │ ├── yandex │ │ └── yandex.go │ │ ├── github │ │ └── github.go │ │ ├── spotify │ │ └── spotify.go │ │ ├── fitbit │ │ └── fitbit.go │ │ ├── facebook │ │ └── facebook.go │ │ ├── foursquare │ │ └── foursquare.go │ │ ├── instagram │ │ └── instagram.go │ │ ├── linkedin │ │ └── linkedin.go │ │ ├── nokiahealth │ │ └── nokiahealth.go │ │ ├── stackoverflow │ │ └── stackoverflow.go │ │ ├── odnoklassniki │ │ └── odnoklassniki.go │ │ ├── yahoo │ │ └── yahoo.go │ │ └── twitch │ │ └── twitch.go ├── k8s.io │ ├── code-generator │ │ ├── cmd │ │ │ ├── set-gen │ │ │ │ └── .gitignore │ │ │ ├── import-boss │ │ │ │ └── .gitignore │ │ │ ├── lister-gen │ │ │ │ └── .import-restrictions │ │ │ ├── go-to-protobuf │ │ │ │ ├── .gitignore │ │ │ │ └── OWNERS │ │ │ └── client-gen │ │ │ │ ├── OWNERS │ │ │ │ └── README.md │ │ ├── Godeps │ │ │ ├── OWNERS │ │ │ └── Readme │ │ ├── OWNERS │ │ ├── code-of-conduct.md │ │ ├── .github │ │ │ └── PULL_REQUEST_TEMPLATE.md │ │ └── hack │ │ │ └── boilerplate.go.txt │ └── kube-openapi │ │ └── test │ │ └── integration │ │ └── testdata │ │ └── listtype │ │ ├── set-list.go │ │ ├── atomic-list.go │ │ └── map-list.go ├── cloud.google.com │ └── go │ │ ├── cmd │ │ └── go-cloud-debug-agent │ │ │ └── internal │ │ │ └── debug │ │ │ ├── elf │ │ │ └── testdata │ │ │ │ └── hello.c │ │ │ └── gosym │ │ │ └── pclinetest.h │ │ └── AUTHORS ├── google.golang.org │ └── appengine │ │ ├── internal │ │ ├── main.go │ │ └── identity.go │ │ ├── cloudsql │ │ ├── cloudsql_classic.go │ │ └── cloudsql_vm.go │ │ ├── socket │ │ └── doc.go │ │ ├── delay │ │ ├── delay_pre17.go │ │ └── delay_go17.go │ │ ├── timeout.go │ │ └── appengine_vm.go ├── sigs.k8s.io │ └── controller-runtime │ │ └── pkg │ │ └── envtest │ │ └── ginkgo.go └── gopkg.in │ └── yaml.v2 │ └── NOTICE ├── version └── version.go ├── deploy ├── service_account.yaml ├── cr.yaml ├── role_binding.yaml └── crds │ └── crd.yaml ├── test └── e2e │ └── main_test.go ├── pkg ├── apis │ ├── integreatly │ │ └── v1alpha1 │ │ │ └── doc.go │ ├── addtoscheme_integreatly_v1alpha1.go │ └── apis.go └── controller │ ├── add_gitea.go │ ├── controller.go │ └── gitea │ └── resourceHelper_test.go ├── templates ├── gitea-service-account.yaml ├── gitea-postgres-pvc.yaml ├── gitea-repos-pvc.yaml ├── gitea-postgres-service.yaml ├── gitea-ingress.yaml └── gitea-service.yaml └── .github └── ISSUE_TEMPLATE.md /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/loader/testdata/a.go: -------------------------------------------------------------------------------- 1 | package P 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/loader/testdata/b.go: -------------------------------------------------------------------------------- 1 | package P 2 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/cmd/set-gen/.gitignore: -------------------------------------------------------------------------------- 1 | set-gen 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/oneof/doc.go: -------------------------------------------------------------------------------- 1 | package one 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/vanity/test/doc.go: -------------------------------------------------------------------------------- 1 | package test 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/issue270/doc.go: -------------------------------------------------------------------------------- 1 | package issue270 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/oneof3/doc.go: -------------------------------------------------------------------------------- 1 | package oneof3 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/packed/doc.go: -------------------------------------------------------------------------------- 1 | package packed 2 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/cmd/import-boss/.gitignore: -------------------------------------------------------------------------------- 1 | import-boss 2 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/cmd/lister-gen/.import-restrictions: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/mapsproto2/doc.go: -------------------------------------------------------------------------------- 1 | package mapsproto2 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/theproto3/doc.go: -------------------------------------------------------------------------------- 1 | package theproto3 2 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/Godeps/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - dep-approvers 3 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/cmd/go-to-protobuf/.gitignore: -------------------------------------------------------------------------------- 1 | go-to-protobuf 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/dashfilename/doc.go: -------------------------------------------------------------------------------- 1 | package dashfilename 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/embedconflict/doc.go: -------------------------------------------------------------------------------- 1 | package embedconflict 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/sizerconflict/doc.go: -------------------------------------------------------------------------------- 1 | package sizerconflict 2 | -------------------------------------------------------------------------------- /vendor/github.com/pborman/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | -------------------------------------------------------------------------------- /version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | var ( 4 | Version = "0.0.5" 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/defaultconflict/doc.go: -------------------------------------------------------------------------------- 1 | package defaultcheck 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/jsonpb-gogo/jsonpb_gogo.go: -------------------------------------------------------------------------------- 1 | package jsonpb_gogo 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/loader/testdata/badpkgdecl.go: -------------------------------------------------------------------------------- 1 | // this file has no package decl 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/testdata/TestName_Modules/src/b/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | -------------------------------------------------------------------------------- /deploy/service_account.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: gitea-operator -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/nothing.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | // No structs in this file 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/lib/sublib/sublib.go: -------------------------------------------------------------------------------- 1 | package sublib 2 | 3 | const C = 0 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/tests/testdata/src/a/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | func Foo() {} 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/new.com/one/one.go: -------------------------------------------------------------------------------- 1 | package one // import "new.com/one" 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/old.com/one/one.go: -------------------------------------------------------------------------------- 1 | package one // import "new.com/one" 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/definition-json/type.go: -------------------------------------------------------------------------------- 1 | package definition 2 | 3 | type W int 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gccgoimporter/testdata/pointer.go: -------------------------------------------------------------------------------- 1 | package pointer 2 | 3 | type Int8Ptr *int8 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/fruit.io/pear/pear.go: -------------------------------------------------------------------------------- 1 | package pear 2 | 3 | import _ "fruit.io/banana" 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/cmd/go-to-protobuf/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - smarterclayton 3 | reviewers: 4 | - smarterclayton 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/fruit.io/orange/orange.go: -------------------------------------------------------------------------------- 1 | package orange 2 | 3 | import _ "fruit.io/pear" 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/bundle/testdata/src/domain.name/importdecl/p.go: -------------------------------------------------------------------------------- 1 | package importdecl 2 | 3 | func F() int { return 1 } 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/titanic.biz/foo/foo.go: -------------------------------------------------------------------------------- 1 | // This package hasn't jumped ship yet. 2 | package foo 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/pkgfact/testdata/src/b/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import _ "a" 4 | 5 | const _pi_ = 3.14159 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/testdata/TestName_Modules/pkg/mod/github.com/heschik/tools-testrepo/v2@v2.0.0/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/testdata/TestName_Modules/pkg/mod/github.com/heschik/tools-testrepo@v1.0.0/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/testdata/TestName_ModulesDedup/pkg/mod/github.com/heschik/tools-testrepo/v2@v2.0.1/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/testdata/TestName_ModulesDedup/pkg/mod/github.com/heschik/tools-testrepo/v2@v2.0.2/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/testdata/TestName_ModulesDedup/pkg/mod/github.com/heschik/tools-testrepo@v1.0.0/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/pkgfact/testdata/src/a/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | const _greeting_ = "hello" 4 | const _audience_ = "world" 5 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - lavalamp 3 | - wojtek-t 4 | - sttts 5 | reviewers: 6 | - lavalamp 7 | - wojtek-t 8 | - sttts 9 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/testdata/license.yml: -------------------------------------------------------------------------------- 1 | import: ../../../../fossene/db/schema/thing.yml 2 | fields: 3 | site: string 4 | author: root 5 | -------------------------------------------------------------------------------- /deploy/cr.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: integreatly.org/v1alpha1 2 | kind: Gitea 3 | metadata: 4 | name: example-gitea 5 | spec: 6 | hostname: "gitea.apps.127.0.0.1.nip.io" -------------------------------------------------------------------------------- /vendor/github.com/petar/GoLLRB/AUTHORS: -------------------------------------------------------------------------------- 1 | Petar Maymounkov 2 | Vadim Vygonets 3 | Ian Smith 4 | Martin Bruse 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/titanic.biz/bar/bar.go: -------------------------------------------------------------------------------- 1 | // This package is moving to new.com too. 2 | package bar // import "new.com/bar" 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gccgoimporter/testdata/conversions.go: -------------------------------------------------------------------------------- 1 | package conversions 2 | 3 | type Units string 4 | 5 | const Bits = Units("bits") 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gccgoimporter/testdata/imports.go: -------------------------------------------------------------------------------- 1 | package imports 2 | 3 | import "fmt" 4 | 5 | var Hello = fmt.Sprintf("Hello, world") 6 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/enumdecl/models.go: -------------------------------------------------------------------------------- 1 | package enumdecl 2 | 3 | type MyEnum int32 4 | 5 | const ( 6 | A MyEnum = iota 7 | B MyEnum = iota 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/testdata/src/lib/lib.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | func CanReturn() {} 4 | 5 | func NoReturn() { 6 | for { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ssa/identical_17.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package ssa 4 | 5 | import "go/types" 6 | 7 | var structTypesIdentical = types.Identical 8 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/enumdecl_all/models.go: -------------------------------------------------------------------------------- 1 | package enumdeclall 2 | 3 | type MyEnum int32 4 | 5 | const ( 6 | A MyEnum = iota 7 | B MyEnum = iota 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/packagestest/modules_111.go: -------------------------------------------------------------------------------- 1 | // +build go1.11 2 | 3 | package packagestest 4 | 5 | func init() { 6 | All = append(All, Modules) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ssa/identical.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package ssa 4 | 5 | import "go/types" 6 | 7 | var structTypesIdentical = types.IdenticalIgnoreTags 8 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/cmd/client-gen/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - lavalamp 3 | - wojtek-t 4 | - caesarxuchao 5 | reviewers: 6 | - lavalamp 7 | - wojtek-t 8 | - caesarxuchao 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/stringer/testdata/tag_tag.go: -------------------------------------------------------------------------------- 1 | // This file has a build tag "tag" 2 | 3 | // +build tag 4 | 5 | package main 6 | 7 | const TagProtected Const = C + 1 8 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/fruit.io/banana/banana.go: -------------------------------------------------------------------------------- 1 | package banana 2 | 3 | import ( 4 | _ "old.com/one" 5 | _ "titanic.biz/bar" 6 | _ "titanic.biz/foo" 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/fiximports/testdata/src/old.com/bad/bad.go: -------------------------------------------------------------------------------- 1 | // This ill-formed Go source file is here to ensure the tool is robust 2 | // against bad packages in the workspace. 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gccgoimporter/testdata/issue27856.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | type M struct { 4 | E E 5 | } 6 | type F struct { 7 | _ *M 8 | } 9 | type E = F 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/E1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package E1 4 | 5 | import "log" 6 | 7 | func example() { 8 | log.Fatal("oops") // match 9 | } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/I1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package I1 4 | 5 | import "fmt" 6 | 7 | func example() { 8 | _ = fmt.Errorf("%s", "foo") 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/proto/test_proto/deterministic.go: -------------------------------------------------------------------------------- 1 | package test_proto 2 | 3 | func (m *CustomDeterministicMarshaler) Marshal() ([]byte, error) { 4 | return []byte{}, nil 5 | } 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/definition-json/main19.go: -------------------------------------------------------------------------------- 1 | package definition 2 | 3 | import "nosuchpkg" 4 | 5 | var _ nosuchpkg.T // @definition qualified-nopkg "nosuchpkg" 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gccgoimporter/testdata/complexnums.go: -------------------------------------------------------------------------------- 1 | package complexnums 2 | 3 | const NN = -1 - 1i 4 | const NP = -1 + 1i 5 | const PN = 1 - 1i 6 | const PP = 1 + 1i 7 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /vendor/cloud.google.com/go/cmd/go-cloud-debug-agent/internal/debug/elf/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | main(int argc, char *argv[]) 5 | { 6 | printf("hello, world\n"); 7 | } 8 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/test/integration/testdata/listtype/set-list.go: -------------------------------------------------------------------------------- 1 | package listtype 2 | 3 | // +k8s:openapi-gen=true 4 | type SetList struct { 5 | // +listType=set 6 | Field []string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/cloud.google.com/go/cmd/go-cloud-debug-agent/internal/debug/gosym/pclinetest.h: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | // Empty include file to generate z symbols 4 | 5 | 6 | 7 | 8 | 9 | // EOF 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/stringer/testdata/tag_main.go: -------------------------------------------------------------------------------- 1 | // No build tag in this file. 2 | 3 | package main 4 | 5 | type Const int 6 | 7 | const ( 8 | A Const = iota 9 | B 10 | C 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/findcall/testdata/src/a/a.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() { 4 | println("hi") // want "call of println" 5 | print("hi") // not a call of println 6 | } 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/J1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package I1 4 | 5 | import "fmt" 6 | 7 | func example() { 8 | temp := 5 9 | fmt.Print(temp + temp + temp) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/test/integration/testdata/listtype/atomic-list.go: -------------------------------------------------------------------------------- 1 | package listtype 2 | 3 | // +k8s:openapi-gen=true 4 | type AtomicList struct { 5 | // +listType=atomic 6 | Field []string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /test/e2e/main_test.go: -------------------------------------------------------------------------------- 1 | package e2e 2 | 3 | import ( 4 | "testing" 5 | 6 | f "github.com/operator-framework/operator-sdk/pkg/test" 7 | ) 8 | 9 | func TestMain(m *testing.M) { 10 | f.MainEntry(m) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/post_go18.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package swag 4 | 5 | import "net/url" 6 | 7 | func pathUnescape(path string) (string, error) { 8 | return url.PathUnescape(path) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Sorry, we do not accept changes directly against this repository. Please see 2 | CONTRIBUTING.md for information on where and how to contribute instead. 3 | -------------------------------------------------------------------------------- /pkg/apis/integreatly/v1alpha1/doc.go: -------------------------------------------------------------------------------- 1 | // Package v1alpha1 contains API Schema definitions for the integreatly v1alpha1 API group 2 | // +k8s:deepcopy-gen=package,register 3 | // +groupName=integreatly.org 4 | package v1alpha1 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/pre_go18.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package swag 4 | 5 | import "net/url" 6 | 7 | func pathUnescape(path string) (string, error) { 8 | return url.QueryUnescape(path) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /templates/gitea-service-account.yaml: -------------------------------------------------------------------------------- 1 | kind: ServiceAccount 2 | apiVersion: v1 3 | metadata: 4 | labels: 5 | app: {{ .ApplicationName }} 6 | name: {{ .GiteaServiceAccountName }} 7 | namespace: {{ .ApplicationNamespace }} 8 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_17.go: -------------------------------------------------------------------------------- 1 | //+build !go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/typedeclimport/models.go: -------------------------------------------------------------------------------- 1 | package typedeclimport 2 | 3 | import subpkg "github.com/gogo/protobuf/test/typedeclimport/subpkg" 4 | 5 | type SomeMessage struct { 6 | Imported subpkg.AnotherMessage 7 | } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/pkgfact/testdata/src/c/c.go: -------------------------------------------------------------------------------- 1 | // want package:`pairs\(audience="world", greeting="hello", pi=3.14159\)` 2 | 3 | package c 4 | 5 | import _ "b" // want `audience="world" greeting="hello" pi=3.14159` 6 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_17.go: -------------------------------------------------------------------------------- 1 | //+build go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | //go:linkname resolveTypeOff reflect.resolveTypeOff 8 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/main/multi.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func g(x int) { 4 | } 5 | 6 | func f() { 7 | x := 1 8 | g(x) // "g(x)" is the selection for multiple queries 9 | } 10 | 11 | func main() { 12 | f() 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/pointer/testdata/recur.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package main 4 | 5 | // Analysis abstraction of recursive calls is finite. 6 | 7 | func main() { 8 | main() 9 | } 10 | 11 | // @calls main.main -> main.main 12 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/disallow_unknown.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type DisallowUnknown struct { 5 | FieldOne string `json:"field_one"` 6 | } 7 | 8 | var disallowUnknownString = `{"field_one": "one", "field_two": "two"}` 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | package cpu 6 | 7 | const cacheLineSize = 32 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | package cpu 6 | 7 | const cacheLineSize = 64 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_s390x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | package cpu 6 | 7 | const cacheLineSize = 256 8 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/json.go: -------------------------------------------------------------------------------- 1 | // +build !jsoniter 2 | 3 | package restful 4 | 5 | import "encoding/json" 6 | 7 | var ( 8 | MarshalIndent = json.MarshalIndent 9 | NewDecoder = json.NewDecoder 10 | NewEncoder = json.NewEncoder 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/GOLANG_CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | The contributors to the Go protobuf repository: 2 | 3 | # This source code was written by the Go contributors. 4 | # The master list of contributors is in the main Go distribution, 5 | # visible at http://tip.golang.org/CONTRIBUTORS. -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/bundle/testdata/src/initial/c.go: -------------------------------------------------------------------------------- 1 | package initial 2 | 3 | import _ "fmt" 4 | import renamedfmt "fmt" 5 | import renamedfmt2 "fmt" 6 | import . "fmt" 7 | 8 | func baz() { 9 | renamedfmt.Println() 10 | renamedfmt2.Println() 11 | Println() 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/jsonpb/jsonpb_test_proto/bytes.go: -------------------------------------------------------------------------------- 1 | package jsonpb 2 | 3 | // Byte is used to test that []byte type aliases are serialized to base64. 4 | type Byte byte 5 | 6 | // Bytes is used to test that []byte type aliases are serialized to base64. 7 | type Bytes []Byte 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | func probeProtocolStack() int { return 4 } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | func probeProtocolStack() int { return 4 } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build mips mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // Package internal contains support packages for oauth2 package. 6 | package internal 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build mips64 mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build ppc64 ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/testdata/issue20046.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package p 6 | 7 | var V interface { 8 | M() 9 | } 10 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/cmd/client-gen/README.md: -------------------------------------------------------------------------------- 1 | See [generating-clientset.md](https://git.k8s.io/community/contributors/devel/generating-clientset.md) 2 | 3 | 4 | [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/staging/src/k8s.io/code-generator/client-gen/README.md?pixel)]() 5 | -------------------------------------------------------------------------------- /deploy/role_binding.yaml: -------------------------------------------------------------------------------- 1 | 2 | kind: RoleBinding 3 | apiVersion: rbac.authorization.k8s.io/v1 4 | metadata: 5 | name: gitea-operator 6 | subjects: 7 | - kind: ServiceAccount 8 | name: gitea-operator 9 | roleRef: 10 | kind: Role 11 | name: gitea-operator 12 | apiGroup: rbac.authorization.k8s.io 13 | -------------------------------------------------------------------------------- /templates/gitea-postgres-pvc.yaml: -------------------------------------------------------------------------------- 1 | kind: PersistentVolumeClaim 2 | apiVersion: v1 3 | metadata: 4 | name: {{ .GiteaPgPvcName }} 5 | namespace: {{ .ApplicationNamespace }} 6 | spec: 7 | accessModes: 8 | - ReadWriteOnce 9 | resources: 10 | requests: 11 | storage: {{ .DbVolumeCapacity }} 12 | -------------------------------------------------------------------------------- /templates/gitea-repos-pvc.yaml: -------------------------------------------------------------------------------- 1 | kind: PersistentVolumeClaim 2 | apiVersion: v1 3 | metadata: 4 | name: {{ .GiteaReposPvcName }} 5 | namespace: {{ .ApplicationNamespace }} 6 | spec: 7 | accessModes: 8 | - ReadWriteOnce 9 | resources: 10 | requests: 11 | storage: {{ .GiteaVolumeCapacity }} 12 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/snake.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type SnakeStruct struct { 5 | WeirdHTTPStuff bool 6 | CustomNamedField string `json:"cUsToM"` 7 | } 8 | 9 | var snakeStructValue SnakeStruct 10 | var snakeStructString = `{"weird_http_stuff":false,"cUsToM":""}` 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/cgocall/testdata/src/a/cgo3.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package a 6 | 7 | import "C" 8 | 9 | func F() { 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/A2.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package A2 4 | 5 | // This refactoring causes addition of "errors" import. 6 | // TODO(adonovan): fix: it should also remove "fmt". 7 | 8 | import myfmt "fmt" 9 | 10 | func example(n int) { 11 | myfmt.Errorf("%s", "") 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/lif/sys_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | #include "textflag.h" 6 | 7 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 8 | JMP syscall·sysvicall6(SB) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/container/intsets/popcnt_gccgo.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build gccgo 6 | 7 | package intsets 8 | 9 | func popcount(x word) int 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/buildssa/testdata/src/a/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | func Fib(x int) int { 4 | if x < 2 { 5 | return x 6 | } 7 | return Fib(x-1) + Fib(x-2) 8 | } 9 | 10 | type T int 11 | 12 | func (T) fib(x int) int { return Fib(x) } 13 | 14 | func _() { 15 | print("hi") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ast/astutil/util.go: -------------------------------------------------------------------------------- 1 | package astutil 2 | 3 | import "go/ast" 4 | 5 | // Unparen returns e with any enclosing parentheses stripped. 6 | func Unparen(e ast.Expr) ast.Expr { 7 | for { 8 | p, ok := e.(*ast.ParenExpr) 9 | if !ok { 10 | return e 11 | } 12 | e = p.X 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /pkg/controller/add_gitea.go: -------------------------------------------------------------------------------- 1 | package controller 2 | 3 | import ( 4 | "github.com/integr8ly/gitea-operator/pkg/controller/gitea" 5 | ) 6 | 7 | func init() { 8 | // AddToManagerFuncs is a list of functions to create controllers and add them to a manager. 9 | AddToManagerFuncs = append(AddToManagerFuncs, gitea.Add) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x12b 9 | sysSENDMMSG = 0x133 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x16d 9 | sysSENDMMSG = 0x176 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0xf3 9 | sysSENDMMSG = 0x10d 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_mips.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x10ef 9 | sysSENDMMSG = 0x10f7 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_ppc64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x157 9 | sysSENDMMSG = 0x15d 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/go1_2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | // +build go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // secure is a repository of text security related packages. 6 | package secure // import "golang.org/x/text/secure" 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_mips64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x14ae 9 | sysSENDMMSG = 0x14b6 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_mips64le.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x14ae 9 | sysSENDMMSG = 0x14b6 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_mipsle.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x10ef 9 | sysSENDMMSG = 0x10f7 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_ppc64le.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | const ( 8 | sysRECVMMSG = 0x157 9 | sysSENDMMSG = 0x15d 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/testdata/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Input for TestIssue13566 6 | 7 | package b 8 | 9 | import "./a" 10 | 11 | type A a.A 12 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/test/integration/testdata/listtype/map-list.go: -------------------------------------------------------------------------------- 1 | package listtype 2 | 3 | // +k8s:openapi-gen=true 4 | type MapList struct { 5 | // +listType=map 6 | // +listMapKey=port 7 | Field []Item 8 | } 9 | 10 | // +k8s:openapi-gen=true 11 | type Item struct { 12 | Protocol string 13 | Port int 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/goimports/goimports_not_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !gc 6 | 7 | package main 8 | 9 | func doTrace() func() { 10 | return func() {} 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/findcall/cmd/findcall/main.go: -------------------------------------------------------------------------------- 1 | // The findcall command runs the findcall analyzer. 2 | package main 3 | 4 | import ( 5 | "golang.org/x/tools/go/analysis/passes/findcall" 6 | "golang.org/x/tools/go/analysis/singlechecker" 7 | ) 8 | 9 | func main() { singlechecker.Main(findcall.Analyzer) } 10 | -------------------------------------------------------------------------------- /deploy/crds/crd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apiextensions.k8s.io/v1beta1 2 | kind: CustomResourceDefinition 3 | metadata: 4 | name: giteas.integreatly.org 5 | spec: 6 | group: integreatly.org 7 | names: 8 | kind: Gitea 9 | listKind: GiteaList 10 | plural: giteas 11 | singular: gitea 12 | scope: Namespaced 13 | version: v1alpha1 14 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/jsoniter.go: -------------------------------------------------------------------------------- 1 | // +build jsoniter 2 | 3 | package restful 4 | 5 | import "github.com/json-iterator/go" 6 | 7 | var ( 8 | json = jsoniter.ConfigCompatibleWithStandardLibrary 9 | MarshalIndent = json.MarshalIndent 10 | NewDecoder = json.NewDecoder 11 | NewEncoder = json.NewEncoder 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/svc/go12.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build windows 6 | // +build !go1.3 7 | 8 | package svc 9 | 10 | // from go12.c 11 | func getServiceMain(r *uintptr) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ssa/interp/testdata/reflect.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "reflect" 4 | 5 | func main() { 6 | // Regression test for issue 9462. 7 | got := reflect.SliceOf(reflect.TypeOf(byte(0))).String() 8 | if got != "[]uint8" && got != "[]byte" { // result varies by toolchain 9 | println("BUG: " + got) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/registry/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | package registry 6 | 7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall.go 8 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/icmp/sys_freebsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | package icmp 6 | 7 | import "syscall" 8 | 9 | func init() { 10 | freebsdVersion, _ = syscall.SysctlUint32("kern.osreldate") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/testdata/p.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Input for TestIssue15517 6 | 7 | package p 8 | 9 | const C = 0 10 | 11 | var V int 12 | 13 | func F() {} 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/test/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // Package test contains integration tests for the 6 | // golang.org/x/crypto/ssh package. 7 | package test // import "golang.org/x/crypto/ssh/test" 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/G1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package G1 4 | 5 | import "go/ast" 6 | 7 | func example() { 8 | _ = ast.BadExpr{From: 123, To: 456} // match 9 | _ = ast.BadExpr{123, 456} // no match 10 | _ = ast.BadExpr{From: 123} // no match 11 | _ = ast.BadExpr{To: 456} // no match 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/H1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package H1 4 | 5 | import "go/ast" 6 | 7 | func example() { 8 | _ = ast.BadExpr{From: 123, To: 456} // no match 9 | _ = ast.BadExpr{123, 456} // match 10 | _ = ast.BadExpr{From: 123} // no match 11 | _ = ast.BadExpr{To: 456} // no match 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/test/issue330/type.go: -------------------------------------------------------------------------------- 1 | package issue330 2 | 3 | type TypeIdentifier uint32 4 | 5 | const ( 6 | UnknownType TypeIdentifier = 0 7 | UserType TypeIdentifier = 20 8 | ) 9 | 10 | func (t TypeIdentifier) String() string { 11 | switch t { 12 | case 20: 13 | return "User" 14 | default: 15 | return "Unknown" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /pkg/apis/addtoscheme_integreatly_v1alpha1.go: -------------------------------------------------------------------------------- 1 | package apis 2 | 3 | import ( 4 | "github.com/integr8ly/gitea-operator/pkg/apis/integreatly/v1alpha1" 5 | ) 6 | 7 | func init() { 8 | // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back 9 | AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.AddToScheme) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype, cap) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/D1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package D1 4 | 5 | import "fmt" 6 | 7 | func example() { 8 | fmt.Println(123, "a") // match 9 | fmt.Println(0x7b, `a`) // match 10 | fmt.Println(0173, "\x61") // match 11 | fmt.Println(100+20+3, "a"+"") // no match: constant expressions, but not basic literals 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | package terminal 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/godex/isAlias19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | 7 | package main 8 | 9 | import "go/types" 10 | 11 | func isAlias(obj *types.TypeName) bool { 12 | return obj.IsAlias() 13 | } 14 | -------------------------------------------------------------------------------- /pkg/apis/apis.go: -------------------------------------------------------------------------------- 1 | package apis 2 | 3 | import ( 4 | "k8s.io/apimachinery/pkg/runtime" 5 | ) 6 | 7 | // AddToSchemes may be used to add all resources defined in the project to a Scheme 8 | var AddToSchemes runtime.SchemeBuilder 9 | 10 | // AddToScheme adds all Resources to the Scheme 11 | func AddToScheme(s *runtime.Scheme) error { 12 | return AddToSchemes.AddToScheme(s) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/setter.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package bpf 6 | 7 | // A Setter is a type which can attach a compiled BPF filter to itself. 8 | type Setter interface { 9 | SetBPF(filter []RawInstruction) error 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/godoc/index.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | package main 6 | 7 | import "strings" 8 | 9 | func indexDirectoryDefault(dir string) bool { 10 | return dir != "/pkg" && !strings.HasPrefix(dir, "/pkg/") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/what-json/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "lib" 4 | 5 | // Tests of 'what' queries, -format=json. 6 | // See go.tools/guru/guru_test.go for explanation. 7 | // See what-json.golden for expected query results. 8 | 9 | func main() { 10 | f() // @what call "f" 11 | } 12 | 13 | var _ lib.Var // @what pkg "lib" 14 | type _ lib.T 15 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/omitempty.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type OmitEmptyDefault struct { 5 | Field string 6 | Str string 7 | Str1 string `json:"s,!omitempty"` 8 | Str2 string `json:",!omitempty"` 9 | } 10 | 11 | var omitEmptyDefaultValue = OmitEmptyDefault{Field: "test"} 12 | var omitEmptyDefaultString = `{"Field":"test","s":"","Str2":""}` 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go 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 | 5 | package windows 6 | 7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/peers-json/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | // Tests of channel 'peers' query, -format=json. 4 | // See go.tools/guru/guru_test.go for explanation. 5 | // See peers-json.golden for expected query results. 6 | 7 | func main() { 8 | chA := make(chan *int) 9 | <-chA 10 | select { 11 | case <-chA: // @peers peer-recv-chA "<-" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/B1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package B1 4 | 5 | import "time" 6 | 7 | var startup = time.Now() 8 | 9 | func example() time.Duration { 10 | before := time.Now() 11 | time.Sleep(1) 12 | return time.Now().Sub(before) 13 | } 14 | 15 | func msSinceStartup() int64 { 16 | return int64(time.Now().Sub(startup) / time.Millisecond) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import ( 10 | "appengine_internal" 11 | ) 12 | 13 | func Main() { 14 | appengine_internal.Main() 15 | } 16 | -------------------------------------------------------------------------------- /templates/gitea-postgres-service.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | annotations: 5 | description: Exposes the database server 6 | name: {{ .GiteaPgServiceName }} 7 | namespace: {{ .ApplicationNamespace }} 8 | spec: 9 | ports: 10 | - name: postgresql 11 | port: 5432 12 | targetPort: 5432 13 | selector: 14 | name: {{ .GiteaPgDeploymentName }} 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build windows 6 | // +build go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/what/main.go: -------------------------------------------------------------------------------- 1 | package main // @what pkgdecl "main" 2 | 3 | // Tests of 'what' queries. 4 | // See go.tools/guru/guru_test.go for explanation. 5 | // See what.golden for expected query results. 6 | 7 | func main() { 8 | f() // @what call "f" 9 | var ch chan int // @what var "var" 10 | <-ch // @what recv "ch" 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/testdata/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Input for TestIssue13566 6 | 7 | package a 8 | 9 | import "encoding/json" 10 | 11 | type A struct { 12 | a *A 13 | json json.RawMessage 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/iovec_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris 6 | 7 | package socket 8 | 9 | type iovec struct{} 10 | 11 | func (v *iovec) set(b []byte) {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/callgraph/testdata/src/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type I interface { 4 | f() 5 | } 6 | 7 | type C int 8 | 9 | func (C) f() {} 10 | 11 | type D int 12 | 13 | func (D) f() {} 14 | 15 | func main() { 16 | var i I = C(0) 17 | i.f() // dynamic call 18 | 19 | main2() 20 | } 21 | 22 | func main2() { 23 | var i I = D(0) 24 | i.f() // dynamic call 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | #include "textflag.h" 6 | 7 | TEXT ·getprocaddress(SB),NOSPLIT,$0 8 | B syscall·getprocaddress(SB) 9 | 10 | TEXT ·loadlibrary(SB),NOSPLIT,$0 11 | B syscall·loadlibrary(SB) 12 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/examples/google_app_engine/restful-appstats-integration.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/mjibson/appstats" 5 | ) 6 | 7 | func stats(req *restful.Request, resp *restful.Response, chain *restful.FilterChain) { 8 | c := appstats.NewContext(req.Request) 9 | chain.ProcessFilter(req, resp) 10 | c.Stats.Status = resp.StatusCode() 11 | c.Save() 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/keccakf_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build amd64,!appengine,!gccgo 6 | 7 | package sha3 8 | 9 | // This function is implemented in keccakf_amd64.s. 10 | 11 | //go:noescape 12 | 13 | func keccakF1600(a *[25]uint64) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/msghdr_openbsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package socket 6 | 7 | func (h *msghdr) setIov(vs []iovec) { 8 | l := len(vs) 9 | if l == 0 { 10 | return 11 | } 12 | h.Iov = &vs[0] 13 | h.Iovlen = uint32(l) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/google/appengineflex_hook.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build appenginevm 6 | 7 | package google 8 | 9 | func init() { 10 | appengineFlex = true // Flex doesn't support appengine.AccessToken; depend on metadata server. 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/client_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import "google.golang.org/appengine/urlfetch" 10 | 11 | func init() { 12 | appengineClientHook = urlfetch.Client 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/godex/gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // This file implements access to gc-generated export data. 6 | 7 | package main 8 | 9 | import "go/importer" 10 | 11 | func init() { 12 | register("gc", importer.For("gc", nil)) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/isAlias19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | 7 | package main 8 | 9 | import "go/types" 10 | 11 | func isAlias(obj *types.TypeName) bool { 12 | return obj.IsAlias() 13 | } 14 | 15 | const HasAlias = true 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/tests/testdata/src/divergent/buf.go: -------------------------------------------------------------------------------- 1 | // Test of examples with divergent packages. 2 | 3 | // Package buf ... 4 | package buf 5 | 6 | // Buf is a ... 7 | type Buf []byte 8 | 9 | // Append ... 10 | func (*Buf) Append([]byte) {} 11 | 12 | func (Buf) Reset() {} 13 | 14 | func (Buf) Len() int { return 0 } 15 | 16 | // DefaultBuf is a ... 17 | var DefaultBuf Buf 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/const_amd64.h: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // This code was translated into a form compatible with 6a from the public 6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html 7 | 8 | #define REDMASK51 0x0007FFFFFFFFFFFF 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | #include "textflag.h" 6 | 7 | TEXT ·socketcall(SB),NOSPLIT,$0-36 8 | JMP syscall·socketcall(SB) 9 | 10 | TEXT ·rawsocketcall(SB),NOSPLIT,$0-36 11 | JMP syscall·rawsocketcall(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/webdav/file_go1.7.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build go1.7 6 | 7 | package webdav 8 | 9 | import ( 10 | "context" 11 | "net/http" 12 | ) 13 | 14 | func getContext(r *http.Request) context.Context { 15 | return r.Context() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/bundle/testdata/src/initial/b.go: -------------------------------------------------------------------------------- 1 | // The package doc comment 2 | package initial 3 | 4 | import ( 5 | "fmt" 6 | 7 | "domain.name/importdecl" 8 | ) 9 | 10 | type t int // type1 11 | 12 | // const1 13 | const c = 1 // const2 14 | 15 | func foo() { 16 | fmt.Println(importdecl.F()) 17 | } 18 | 19 | // zinit 20 | const ( 21 | z1 = iota // z1 22 | z2 // z2 23 | ) // zend 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/godex/isAlias18.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !go1.9 6 | 7 | package main 8 | 9 | import "go/types" 10 | 11 | func isAlias(obj *types.TypeName) bool { 12 | return false // there are no type aliases before Go 1.9 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !amd64 appengine gccgo 6 | 7 | package blake2b 8 | 9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 10 | hashBlocksGeneric(h, c, flag, blocks) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_bsdvar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build freebsd netbsd openbsd 6 | 7 | package socket 8 | 9 | import "unsafe" 10 | 11 | func probeProtocolStack() int { 12 | var p uintptr 13 | return int(unsafe.Sizeof(p)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_linux_s390x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | #include "textflag.h" 6 | 7 | TEXT ·socketcall(SB),NOSPLIT,$0-72 8 | JMP syscall·socketcall(SB) 9 | 10 | TEXT ·rawsocketcall(SB),NOSPLIT,$0-72 11 | JMP syscall·rawsocketcall(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | #include "textflag.h" 6 | 7 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 8 | JMP syscall·sysvicall6(SB) 9 | 10 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 11 | JMP syscall·rawSysvicall6(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 6 | 7 | package ipv4 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = map[int]*sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 6 | 7 | package ipv6 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = map[int]*sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/stringer/importer18.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !go1.9 6 | 7 | package main 8 | 9 | import ( 10 | "go/importer" 11 | "go/types" 12 | ) 13 | 14 | func defaultImporter() types.Importer { 15 | return importer.Default() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/nilness/cmd/nilness/main.go: -------------------------------------------------------------------------------- 1 | // The nilness command applies the golang.org/x/tools/go/analysis/passes/nilness 2 | // analysis to the specified packages of Go source code. 3 | package main 4 | 5 | import ( 6 | "golang.org/x/tools/go/analysis/passes/nilness" 7 | "golang.org/x/tools/go/analysis/singlechecker" 8 | ) 9 | 10 | func main() { singlechecker.Main(nilness.Analyzer) } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/testdata/issue25301.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | package issue25301 6 | 7 | type ( 8 | A = interface { 9 | M() 10 | } 11 | T interface { 12 | A 13 | } 14 | S struct{} 15 | ) 16 | 17 | func (S) M() { println("m") } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/godoc/play.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // +build !golangorg 6 | 7 | package main 8 | 9 | // This package registers "/compile" and "/share" handlers 10 | // that redirect to the golang.org playground. 11 | import _ "golang.org/x/tools/playground" 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/stringer/importer19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | 7 | package main 8 | 9 | import ( 10 | "go/importer" 11 | "go/types" 12 | ) 13 | 14 | func defaultImporter() types.Importer { 15 | return importer.For("source", nil) 16 | } 17 | -------------------------------------------------------------------------------- /templates/gitea-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | name: {{ .GiteaIngressName }} 5 | namespace: {{ .ApplicationNamespace }} 6 | labels: 7 | app: {{ .ApplicationName }} 8 | spec: 9 | rules: 10 | - host: {{ .Hostname }} 11 | http: 12 | paths: 13 | - path: / 14 | backend: 15 | serviceName: {{ .GiteaServiceName }} 16 | servicePort: 3000 -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !go1.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | // not supported prior to go1.9 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gccgoimporter/testdata/escapeinfo.go: -------------------------------------------------------------------------------- 1 | // Test case for escape info in export data. To compile and extract .gox file: 2 | // gccgo -fgo-optimize-allocs -c escapeinfo.go 3 | // objcopy -j .go_export escapeinfo.o escapeinfo.gox 4 | 5 | package escapeinfo 6 | 7 | type T struct{ data []byte } 8 | 9 | func NewT(data []byte) *T { 10 | return &T{data} 11 | } 12 | 13 | func (*T) Read(p []byte) {} 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/pointer/testdata/extended.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package main 4 | 5 | var a int 6 | 7 | type t struct { 8 | a *map[string]chan *int 9 | } 10 | 11 | func fn() []t { 12 | m := make(map[string]chan *int) 13 | m[""] = make(chan *int, 1) 14 | m[""] <- &a 15 | return []t{t{a: &m}} 16 | } 17 | 18 | func main() { 19 | x := fn() 20 | print(x) // @pointstoquery <-(*x[i].a)[key] main.a 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_fileno.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build freebsd openbsd netbsd 6 | 7 | package fastwalk 8 | 9 | import "syscall" 10 | 11 | func direntInode(dirent *syscall.Dirent) uint64 { 12 | return uint64(dirent.Fileno) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build go1.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 15 | return t1.ExpectContinueTimeout 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/nettest/rlimit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | package nettest 6 | 7 | const defaultMaxOpenFiles = 256 8 | 9 | // MaxOpenFiles returns the maximum number of open files for the 10 | // caller's process. 11 | func MaxOpenFiles() int { return maxOpenFiles() } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/cmsghdr_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package socket 8 | 9 | func (h *cmsghdr) set(l, lvl, typ int) { 10 | h.Len = uint32(l) 11 | h.Level = int32(lvl) 12 | h.Type = int32(typ) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/cmsghdr_solaris_64bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build amd64 6 | // +build solaris 7 | 8 | package socket 9 | 10 | func (h *cmsghdr) set(l, lvl, typ int) { 11 | h.Len = uint32(l) 12 | h.Level = int32(lvl) 13 | h.Type = int32(typ) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/lostcancel/cmd/lostcancel/main.go: -------------------------------------------------------------------------------- 1 | // The nilness command applies the golang.org/x/tools/go/analysis/passes/lostcancel 2 | // analysis to the specified packages of Go source code. 3 | package main 4 | 5 | import ( 6 | "golang.org/x/tools/go/analysis/passes/lostcancel" 7 | "golang.org/x/tools/go/analysis/singlechecker" 8 | ) 9 | 10 | func main() { singlechecker.Main(lostcancel.Analyzer) } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/nettest/helper_nobsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build aix linux solaris 6 | 7 | package nettest 8 | 9 | func supportsIPv6MulticastDeliveryOnLoopback() bool { 10 | return true 11 | } 12 | 13 | func causesIPv6Crash() bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/isAlias18.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !go1.9 6 | 7 | package main 8 | 9 | import "go/types" 10 | 11 | func isAlias(obj *types.TypeName) bool { 12 | return false // there are no type aliases before Go 1.9 13 | } 14 | 15 | const HasAlias = false 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build linux darwin 6 | // +build !appengine 7 | 8 | package fastwalk 9 | 10 | import "syscall" 11 | 12 | func direntInode(dirent *syscall.Dirent) uint64 { 13 | return uint64(dirent.Ino) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/cmsghdr_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build arm mips mipsle 386 6 | // +build linux 7 | 8 | package socket 9 | 10 | func (h *cmsghdr) set(l, lvl, typ int) { 11 | h.Len = uint32(l) 12 | h.Level = int32(lvl) 13 | h.Type = int32(typ) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/webdav/file_go1.6.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !go1.7 6 | 7 | package webdav 8 | 9 | import ( 10 | "net/http" 11 | 12 | "golang.org/x/net/context" 13 | ) 14 | 15 | func getContext(r *http.Request) context.Context { 16 | return context.Background() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/unicode/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // unicode holds packages with implementations of Unicode standards that are 6 | // mostly used as building blocks for other packages in golang.org/x/text, 7 | // layout engines, or are otherwise more low-level in nature. 8 | package unicode 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/gotype/sizesFor19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | 7 | package main 8 | 9 | import "go/types" 10 | 11 | const defaultCompiler = "source" 12 | 13 | func SizesFor(compiler, arch string) types.Sizes { 14 | return types.SizesFor(compiler, arch) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build darwin freebsd openbsd netbsd 6 | 7 | package fastwalk 8 | 9 | import "syscall" 10 | 11 | func direntNamlen(dirent *syscall.Dirent) uint64 { 12 | return uint64(dirent.Namlen) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/petar/GoLLRB/llrb/util.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Petar Maymounkov. 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 | 5 | package llrb 6 | 7 | type Int int 8 | 9 | func (x Int) Less(than Item) bool { 10 | return x < than.(Int) 11 | } 12 | 13 | type String string 14 | 15 | func (x String) Less(than Item) bool { 16 | return x < than.(String) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build go1.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | s.RegisterOnShutdown(conf.state.startGracefulShutdown) 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/google/appengine_hook.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build appengine appenginevm 6 | 7 | package google 8 | 9 | import "google.golang.org/appengine" 10 | 11 | func init() { 12 | appengineTokenFunc = appengine.AccessToken 13 | appengineAppIDFunc = appengine.AppID 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/testdata/issue15920.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | package p 6 | 7 | // The underlying type of Error is the underlying type of error. 8 | // Make sure we can import this again without problems. 9 | type Error error 10 | 11 | func F() Error { return nil } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/internal/chacha20/chacha_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build !s390x gccgo appengine 6 | 7 | package chacha20 8 | 9 | const ( 10 | bufSize = 64 11 | haveAsm = false 12 | ) 13 | 14 | func (*Cipher) xorKeyStreamAsm(dst, src []byte) { 15 | panic("not implemented") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/msghdr_bsdvar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build darwin dragonfly freebsd netbsd 6 | 7 | package socket 8 | 9 | func (h *msghdr) setIov(vs []iovec) { 10 | l := len(vs) 11 | if l == 0 { 12 | return 13 | } 14 | h.Iov = &vs[0] 15 | h.Iovlen = int32(l) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/testtext/gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !gccgo 6 | 7 | package testtext 8 | 9 | import "testing" 10 | 11 | // AllocsPerRun wraps testing.AllocsPerRun. 12 | func AllocsPerRun(runs int, f func()) (avg float64) { 13 | return testing.AllocsPerRun(runs, f) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/cloudsql/cloudsql_classic.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package cloudsql 8 | 9 | import ( 10 | "net" 11 | 12 | "appengine/cloudsql" 13 | ) 14 | 15 | func connect(instance string) (net.Conn, error) { 16 | return cloudsql.Dial(instance) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/testtext/gccgo.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build gccgo 6 | 7 | package testtext 8 | 9 | // AllocsPerRun always returns 0 for gccgo until gccgo implements escape 10 | // analysis equal or better to that of gc. 11 | func AllocsPerRun(runs int, f func()) (avg float64) { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/calls-json/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | // Tests of call-graph queries, -format=json. 4 | // See go.tools/guru/guru_test.go for explanation. 5 | // See calls-json.golden for expected query results. 6 | 7 | func call(f func()) { 8 | f() // @callees @callees-f "f" 9 | } 10 | 11 | func main() { 12 | call(func() { 13 | // @callers callers-main.anon "^" 14 | // @callstack callstack-main.anon "^" 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/describe/main19.go: -------------------------------------------------------------------------------- 1 | package describe 2 | 3 | // The behavior of "describe" on a non-existent import changed 4 | // when go/types started returning fake packages, so this test 5 | // is executed only under go1.9. 6 | 7 | import ( 8 | "nosuchpkg" // @describe badimport1 "nosuchpkg" 9 | nosuchpkg2 "nosuchpkg" // @describe badimport2 "nosuchpkg2" 10 | ) 11 | 12 | var _ nosuchpkg.T 13 | var _ nosuchpkg2.T 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/callgraph/cha/testdata/func.go: -------------------------------------------------------------------------------- 1 | //+build ignore 2 | 3 | package main 4 | 5 | // Test of dynamic function calls; no interfaces. 6 | 7 | func A(int) {} 8 | 9 | var ( 10 | B = func(int) {} 11 | C = func(int) {} 12 | ) 13 | 14 | func f() { 15 | pfn := B 16 | pfn(0) // calls A, B, C, even though A is not even address-taken 17 | } 18 | 19 | // WANT: 20 | // Dynamic calls 21 | // f --> A 22 | // f --> init$1 23 | // f --> init$2 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/testdata/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // This package contains test data shared between the various subpackages of 6 | // the golang.org/x/crypto/ssh package. Under no circumstance should 7 | // this data be used for production code. 8 | package testdata // import "golang.org/x/crypto/ssh/testdata" 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/softerrs/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | // Tests of various queries on a program containing only "soft" errors. 4 | // See go.tools/guru/guru_test.go for explanation. 5 | // See main.golden for expected query results. 6 | 7 | func _() { 8 | var i int // "unused var" is a soft error 9 | } 10 | 11 | func f() {} // @callers softerrs-callers-f "f" 12 | 13 | func main() { 14 | f() // @describe softerrs-describe-f "f" 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/newInterface11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build go1.11 6 | 7 | package gcimporter 8 | 9 | import "go/types" 10 | 11 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 12 | return types.NewInterfaceType(methods, embeddeds) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/godoc/static/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | // Package static exports a map of static file content that supports the godoc 6 | // user interface. The map should be used with the mapfs package, see 7 | // golang.org/x/tools/godoc/vfs/mapfs. 8 | package static // import "golang.org/x/tools/godoc/static" 9 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/error.go: -------------------------------------------------------------------------------- 1 | package jlexer 2 | 3 | import "fmt" 4 | 5 | // LexerError implements the error interface and represents all possible errors that can be 6 | // generated during parsing the JSON data. 7 | type LexerError struct { 8 | Reason string 9 | Offset int 10 | Data string 11 | } 12 | 13 | func (l *LexerError) Error() string { 14 | return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build arm64 amd64 ppc64 ppc64le mips64 mips64le s390x 6 | // +build linux 7 | 8 | package socket 9 | 10 | func (h *cmsghdr) set(l, lvl, typ int) { 11 | h.Len = uint64(l) 12 | h.Level = int32(lvl) 13 | h.Type = int32(typ) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go 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 | 5 | // 6 | // System calls for 386, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-16 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-12 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gccgoimporter/newInterface11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build go1.11 6 | 7 | package gccgoimporter 8 | 9 | import "go/types" 10 | 11 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 12 | return types.NewInterfaceType(methods, embeddeds) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_bpf_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !linux 6 | 7 | package ipv4 8 | 9 | import ( 10 | "golang.org/x/net/bpf" 11 | "golang.org/x/net/internal/socket" 12 | ) 13 | 14 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error { 15 | return errOpNoSupport 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_bpf_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !linux 6 | 7 | package ipv6 8 | 9 | import ( 10 | "golang.org/x/net/bpf" 11 | "golang.org/x/net/internal/socket" 12 | ) 13 | 14 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error { 15 | return errOpNoSupport 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go 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 | 5 | // 6 | // System calls for amd64, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-32 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-24 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // langAliasType is the type of an alias in langAliasMap. 8 | type langAliasType int8 9 | 10 | const ( 11 | langDeprecated langAliasType = iota 12 | langMacro 13 | langLegacy 14 | 15 | langAliasTypeUnknown langAliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/cmsghdr.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package socket 8 | 9 | func (h *cmsghdr) len() int { return int(h.Len) } 10 | func (h *cmsghdr) lvl() int { return int(h.Level) } 11 | func (h *cmsghdr) typ() int { return int(h.Type) } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. 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 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go: -------------------------------------------------------------------------------- 1 | // This file is included to the build if any of the buildtags below 2 | // are defined. Refer to README notes for more details. 3 | 4 | //+build easyjson_nounsafe appengine 5 | 6 | package jlexer 7 | 8 | // bytesToStr creates a string normally from []byte 9 | // 10 | // Note that this method is roughly 1.5x slower than using the 'unsafe' method. 11 | func bytesToStr(data []byte) string { 12 | return string(data) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/control_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | package ipv4 6 | 7 | import ( 8 | "syscall" 9 | 10 | "golang.org/x/net/internal/socket" 11 | ) 12 | 13 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error { 14 | // TODO(mikio): implement this 15 | return syscall.EWINDOWS 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/control_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | package ipv6 6 | 7 | import ( 8 | "syscall" 9 | 10 | "golang.org/x/net/internal/socket" 11 | ) 12 | 13 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error { 14 | // TODO(mikio): implement this 15 | return syscall.EWINDOWS 16 | } 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/cloudsql/cloudsql_vm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | 7 | package cloudsql 8 | 9 | import ( 10 | "errors" 11 | "net" 12 | ) 13 | 14 | func connect(instance string) (net.Conn, error) { 15 | return nil, errors.New(`cloudsql: not supported in App Engine "flexible environment"`) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/argon2/blamka_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !amd64 appengine gccgo 6 | 7 | package argon2 8 | 9 | func processBlock(out, in1, in2 *block) { 10 | processBlockGeneric(out, in1, in2, false) 11 | } 12 | 13 | func processBlockXOR(out, in1, in2 *block) { 14 | processBlockGeneric(out, in1, in2, true) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2s/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | 7 | package blake2s 8 | 9 | import ( 10 | "crypto" 11 | "hash" 12 | ) 13 | 14 | func init() { 15 | newHash256 := func() hash.Hash { 16 | h, _ := New256(nil) 17 | return h 18 | } 19 | 20 | crypto.RegisterHash(crypto.BLAKE2s_256, newHash256) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/iovec_solaris_64bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build amd64 6 | // +build solaris 7 | 8 | package socket 9 | 10 | import "unsafe" 11 | 12 | func (v *iovec) set(b []byte) { 13 | l := len(b) 14 | if l == 0 { 15 | return 16 | } 17 | v.Base = (*int8)(unsafe.Pointer(&b[0])) 18 | v.Len = uint64(l) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/socket/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package socket provides outbound network sockets. 6 | // 7 | // This package is only required in the classic App Engine environment. 8 | // Applications running only in App Engine "flexible environment" should 9 | // use the standard library's net package. 10 | package socket 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/control_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 6 | 7 | package ipv4 8 | 9 | import "golang.org/x/net/internal/socket" 10 | 11 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error { 12 | return errOpNoSupport 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/control_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 6 | 7 | package ipv6 8 | 9 | import "golang.org/x/net/internal/socket" 10 | 11 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error { 12 | return errOpNoSupport 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/xor.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build !amd64,!386,!ppc64le appengine 6 | 7 | package sha3 8 | 9 | var ( 10 | xorIn = xorInGeneric 11 | copyOut = copyOutGeneric 12 | xorInUnaligned = xorInGeneric 13 | copyOutUnaligned = copyOutGeneric 14 | ) 15 | 16 | const xorImplementationUnaligned = "generic" 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build go1.5 6 | 7 | package plan9 8 | 9 | import "syscall" 10 | 11 | func fixwd() { 12 | syscall.Fixwd() 13 | } 14 | 15 | func Getwd() (wd string, err error) { 16 | return syscall.Getwd() 17 | } 18 | 19 | func Chdir(path string) error { 20 | return syscall.Chdir(path) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/cmd/gotext/examples/extract_http/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | package main 6 | 7 | //go:generate gotext extract --lang=de,zh 8 | 9 | import ( 10 | "net/http" 11 | 12 | "golang.org/x/text/cmd/gotext/examples/extract_http/pkg" 13 | ) 14 | 15 | func main() { 16 | http.Handle("/generize", http.HandlerFunc(pkg.Generize)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/heapview/internal/core/mmapfile_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !darwin,!linux 6 | 7 | package core 8 | 9 | // TODO(matloob): perhaps use the more portable golang.org/x/exp/mmap 10 | // instead of the mmap code in mmapfile.go. 11 | 12 | type mmapFile struct{} 13 | 14 | func (m *mmapFile) Close() error { return nil } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/cgocall/testdata/src/a/cgo2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Test the cgo checker on a file that doesn't use cgo. 6 | 7 | package a 8 | 9 | import "unsafe" 10 | 11 | // Passing a pointer (via the slice), but C isn't cgo. 12 | var _ = C.f(unsafe.Pointer(new([]int))) 13 | 14 | var C struct{ f func(interface{}) int } 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/delay/delay_pre17.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | //+build !go1.7 6 | 7 | package delay 8 | 9 | import ( 10 | "reflect" 11 | 12 | "golang.org/x/net/context" 13 | ) 14 | 15 | var contextType = reflect.TypeOf((*context.Context)(nil)).Elem() 16 | 17 | func isContext(t reflect.Type) bool { 18 | return t == contextType 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2s/blake2s_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !amd64,!386 gccgo appengine 6 | 7 | package blake2s 8 | 9 | var ( 10 | useSSE4 = false 11 | useSSSE3 = false 12 | useSSE2 = false 13 | ) 14 | 15 | func hashBlocks(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte) { 16 | hashBlocksGeneric(h, c, flag, blocks) 17 | } 18 | -------------------------------------------------------------------------------- /pkg/controller/controller.go: -------------------------------------------------------------------------------- 1 | package controller 2 | 3 | import ( 4 | "sigs.k8s.io/controller-runtime/pkg/manager" 5 | ) 6 | 7 | // AddToManagerFuncs is a list of functions to add all Controllers to the Manager 8 | var AddToManagerFuncs []func(manager.Manager) error 9 | 10 | // AddToManager adds all Controllers to the Manager 11 | func AddToManager(m manager.Manager) error { 12 | for _, f := range AddToManagerFuncs { 13 | if err := f(m); err != nil { 14 | return err 15 | } 16 | } 17 | return nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/lif/sys.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build solaris 6 | 7 | package lif 8 | 9 | import "unsafe" 10 | 11 | var nativeEndian binaryByteOrder 12 | 13 | func init() { 14 | i := uint32(1) 15 | b := (*[4]byte)(unsafe.Pointer(&i)) 16 | if b[0] == 1 { 17 | nativeEndian = littleEndian 18 | } else { 19 | nativeEndian = bigEndian 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/proxy/direct.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go 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 | 5 | package proxy 6 | 7 | import ( 8 | "net" 9 | ) 10 | 11 | type direct struct{} 12 | 13 | // Direct is a direct proxy: one that makes network connections directly. 14 | var Direct = direct{} 15 | 16 | func (direct) Dial(network, addr string) (net.Conn, error) { 17 | return net.Dial(network, addr) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/testtext/go1_7.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build go1.7 6 | 7 | package testtext 8 | 9 | import "testing" 10 | 11 | func Run(t *testing.T, name string, fn func(t *testing.T)) bool { 12 | return t.Run(name, fn) 13 | } 14 | 15 | func Bench(b *testing.B, name string, fn func(b *testing.B)) bool { 16 | return b.Run(name, fn) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/controller-runtime/pkg/envtest/ginkgo.go: -------------------------------------------------------------------------------- 1 | package envtest 2 | 3 | import ( 4 | "sigs.k8s.io/controller-runtime/pkg/envtest/printer" 5 | ) 6 | 7 | // NewlineReporter is Reporter that Prints a newline after the default Reporter output so that the results 8 | // are correctly parsed by test automation. 9 | // See issue https://github.com/jstemmer/go-junit-report/issues/31 10 | // It's re-exported here to avoid compatibility breakage/mass rewrites. 11 | type NewlineReporter = printer.NewlineReporter 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/cgocall/testdata/src/a/cgo4.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // Test the cgo checker on a file that doesn't use cgo, but has an 6 | // import named "C". 7 | 8 | package a 9 | 10 | import C "fmt" 11 | 12 | var _ = C.Println(*p(**p)) 13 | 14 | // Passing a pointer (via a slice), but C is fmt, not cgo. 15 | var _ = C.Println([]int{3}) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/cgocall/testdata/src/b/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // Test the cgo checker on a file that doesn't use cgo, but has an 6 | // import named "C". 7 | 8 | package b 9 | 10 | import C "fmt" 11 | 12 | var _ = C.Println(*p(**p)) 13 | 14 | // Passing a pointer (via a slice), but C is fmt, not cgo. 15 | var _ = C.Println([]int{3}) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build go1.4 6 | 7 | package sha3 8 | 9 | import ( 10 | "crypto" 11 | ) 12 | 13 | func init() { 14 | crypto.RegisterHash(crypto.SHA3_224, New224) 15 | crypto.RegisterHash(crypto.SHA3_256, New256) 16 | crypto.RegisterHash(crypto.SHA3_384, New384) 17 | crypto.RegisterHash(crypto.SHA3_512, New512) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/cmd/gotext/examples/rewrite/printer.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | import ( 10 | "golang.org/x/text/language" 11 | "golang.org/x/text/message" 12 | ) 13 | 14 | // The printer defined here will be picked up by the first print statement 15 | // in main.go. 16 | var printer = message.NewPrinter(language.English) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/width/kind_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Kind"; DO NOT EDIT. 2 | 3 | package width 4 | 5 | import "fmt" 6 | 7 | const _Kind_name = "NeutralEastAsianAmbiguousEastAsianWideEastAsianNarrowEastAsianFullwidthEastAsianHalfwidth" 8 | 9 | var _Kind_index = [...]uint8{0, 7, 25, 38, 53, 71, 89} 10 | 11 | func (i Kind) String() string { 12 | if i < 0 || i >= Kind(len(_Kind_index)-1) { 13 | return fmt.Sprintf("Kind(%d)", i) 14 | } 15 | return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_asmreq_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 6 | 7 | package ipv6 8 | 9 | import ( 10 | "net" 11 | 12 | "golang.org/x/net/internal/socket" 13 | ) 14 | 15 | func (so *sockOpt) setIPMreq(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 16 | return errOpNoSupport 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/bundle/testdata/src/initial/a.go: -------------------------------------------------------------------------------- 1 | package initial 2 | 3 | import "fmt" // this comment should not be visible 4 | 5 | // init functions are not renamed 6 | func init() { foo() } 7 | 8 | // Type S. 9 | type S struct { 10 | t 11 | u int 12 | } /* multi-line 13 | comment 14 | */ 15 | 16 | // non-associated comment 17 | 18 | /* 19 | non-associated comment2 20 | */ 21 | 22 | // Function bar. 23 | func bar(s *S) { 24 | fmt.Println(s.t, s.u) // comment inside function 25 | } 26 | 27 | // file-end comment 28 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/identity.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | import netcontext "golang.org/x/net/context" 8 | 9 | // These functions are implementations of the wrapper functions 10 | // in ../appengine/identity.go. See that file for commentary. 11 | 12 | func AppID(c netcontext.Context) string { 13 | return appID(FullyQualifiedAppID(c)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build !go1.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func configureTransport(t1 *http.Transport) (*Transport, error) { 15 | return nil, errTransportVersion 16 | } 17 | 18 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 19 | return 0 20 | 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/iovec_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build arm mips mipsle 386 6 | // +build darwin dragonfly freebsd linux netbsd openbsd 7 | 8 | package socket 9 | 10 | import "unsafe" 11 | 12 | func (v *iovec) set(b []byte) { 13 | l := len(b) 14 | if l == 0 { 15 | return 16 | } 17 | v.Base = (*byte)(unsafe.Pointer(&b[0])) 18 | v.Len = uint32(l) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/message/catalog/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | 7 | package catalog 8 | 9 | import "golang.org/x/text/internal/catmsg" 10 | 11 | // A Message holds a collection of translations for the same phrase that may 12 | // vary based on the values of substitution arguments. 13 | type Message = catmsg.Message 14 | 15 | type firstInSequence = catmsg.FirstOf 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build !go1.5 6 | 7 | package plan9 8 | 9 | func fixwd() { 10 | } 11 | 12 | func Getwd() (wd string, err error) { 13 | fd, err := open(".", O_RDONLY) 14 | if err != nil { 15 | return "", err 16 | } 17 | defer Close(fd) 18 | return Fd2path(fd) 19 | } 20 | 21 | func Chdir(path string) error { 22 | return chdir(path) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/godex/source.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // This file implements access to export data from source. 6 | 7 | package main 8 | 9 | import "go/types" 10 | 11 | func init() { 12 | register("source", sourceImporter{}) 13 | } 14 | 15 | type sourceImporter struct{} 16 | 17 | func (sourceImporter) Import(path string) (*types.Package, error) { 18 | panic("unimplemented") 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/embedded_type.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type EmbeddedType struct { 5 | EmbeddedInnerType 6 | Inner struct { 7 | EmbeddedInnerType 8 | } 9 | Field2 int 10 | } 11 | 12 | type EmbeddedInnerType struct { 13 | Field1 int 14 | } 15 | 16 | var embeddedTypeValue EmbeddedType 17 | 18 | func init() { 19 | embeddedTypeValue.Field1 = 1 20 | embeddedTypeValue.Field2 = 2 21 | embeddedTypeValue.Inner.Field1 = 3 22 | } 23 | 24 | var embeddedTypeValueString = `{"Inner":{"Field1":3},"Field2":2,"Field1":1}` 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/amazon/amazon.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The oauth2 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 | 5 | // Package amazon provides constants for using OAuth2 to access Amazon. 6 | package amazon 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Amazon's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://www.amazon.com/ap/oa", 15 | TokenURL: "https://api.amazon.com/auth/o2/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/lib/lib.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | type Type int 4 | 5 | func (Type) Method(x *int) *int { 6 | return x 7 | } 8 | 9 | func Func() { 10 | } 11 | 12 | const Const = 3 13 | 14 | var Var = 0 15 | 16 | type Sorter interface { 17 | Len() int 18 | Less(i, j int) bool 19 | Swap(i, j int) 20 | } 21 | 22 | type Outer struct { 23 | A int 24 | b int 25 | inner 26 | } 27 | 28 | type inner struct { 29 | C bool 30 | d string 31 | recursive 32 | } 33 | 34 | type recursive struct { 35 | E bool 36 | *inner 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build !go1.11 6 | 7 | package http2 8 | 9 | import "net/textproto" 10 | 11 | func traceHasWroteHeaderField(trace *clientTrace) bool { return false } 12 | 13 | func traceWroteHeaderField(trace *clientTrace, k, v string) {} 14 | 15 | func traceGot1xxResponseFunc(trace *clientTrace) func(int, textproto.MIMEHeader) error { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/godoc/dl.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !golangorg 6 | 7 | package main 8 | 9 | import "net/http" 10 | 11 | // Register a redirect handler for /dl/ to the golang.org download page. 12 | // This file will not be included when deploying godoc to golang.org. 13 | 14 | func init() { 15 | http.Handle("/dl/", http.RedirectHandler("https://golang.org/dl/", http.StatusFound)) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/googleapis/gnostic/plugins/gnostic-go-generator/examples/v2.0/xkcd/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/googleapis/gnostic/plugins/gnostic-go-generator/examples/v2.0/xkcd/xkcd" 7 | ) 8 | 9 | func main() { 10 | c := xkcd.NewClient("http://xkcd.com") 11 | 12 | comic, err := c.Get_info_0_json() 13 | if err != nil { 14 | panic(err) 15 | } 16 | fmt.Printf("%+v\n", comic) 17 | 18 | comic, err = c.Get_comicId_info_0_json(1800) 19 | if err != nil { 20 | panic(err) 21 | } 22 | fmt.Printf("%+v\n", comic) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/petar/GoLLRB/example/ex1.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/petar/GoLLRB/llrb" 6 | ) 7 | 8 | func lessInt(a, b interface{}) bool { return a.(int) < b.(int) } 9 | 10 | func main() { 11 | tree := llrb.New(lessInt) 12 | tree.ReplaceOrInsert(1) 13 | tree.ReplaceOrInsert(2) 14 | tree.ReplaceOrInsert(3) 15 | tree.ReplaceOrInsert(4) 16 | tree.DeleteMin() 17 | tree.Delete(4) 18 | c := tree.IterAscend() 19 | for { 20 | u := <-c 21 | if u == nil { 22 | break 23 | } 24 | fmt.Printf("%d\n", int(u.(int))) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/iovec_64bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build arm64 amd64 ppc64 ppc64le mips64 mips64le s390x 6 | // +build darwin dragonfly freebsd linux netbsd openbsd 7 | 8 | package socket 9 | 10 | import "unsafe" 11 | 12 | func (v *iovec) set(b []byte) { 13 | l := len(b) 14 | if l == 0 { 15 | return 16 | } 17 | v.Base = (*byte)(unsafe.Pointer(&b[0])) 18 | v.Len = uint64(l) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | // +build !linux 7 | 8 | package socket 9 | 10 | import "errors" 11 | 12 | func (c *Conn) recvMsgs(ms []Message, flags int) (int, error) { 13 | return 0, errors.New("not implemented") 14 | } 15 | 16 | func (c *Conn) sendMsgs(ms []Message, flags int) (int, error) { 17 | return 0, errors.New("not implemented") 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/sys_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build darwin dragonfly freebsd openbsd 6 | 7 | package socket 8 | 9 | import "errors" 10 | 11 | func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 12 | return 0, errors.New("not implemented") 13 | } 14 | 15 | func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 16 | return 0, errors.New("not implemented") 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/vk/vk.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // Package vk provides constants for using OAuth2 to access VK.com. 6 | package vk // import "golang.org/x/oauth2/vk" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is VK's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://oauth.vk.com/authorize", 15 | TokenURL: "https://oauth.vk.com/access_token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. 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 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/github.com/pborman/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. 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 | 5 | // The uuid package generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // This package is a partial wrapper around the github.com/google/uuid package. 11 | // This package represents a UUID as []byte while github.com/google/uuid 12 | // represents a UUID as [16]byte. 13 | package uuid 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/cmsghdr_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris 6 | 7 | package socket 8 | 9 | type cmsghdr struct{} 10 | 11 | const sizeofCmsghdr = 0 12 | 13 | func (h *cmsghdr) len() int { return 0 } 14 | func (h *cmsghdr) lvl() int { return 0 } 15 | func (h *cmsghdr) typ() int { return 0 } 16 | 17 | func (h *cmsghdr) set(l, lvl, typ int) {} 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/goyacc/testdata/expr/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // This file holds the go generate command to run yacc on the grammar in expr.y. 6 | // To build expr: 7 | // % go generate 8 | // % go build 9 | 10 | //go:generate goyacc -o expr.go -p "expr" expr.y 11 | 12 | // Expr is a simple expression evaluator that serves as a working example of 13 | // how to use Go's yacc implementation. 14 | package main 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/mailru/mailru.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // Package mailru provides constants for using OAuth2 to access Mail.Ru. 6 | package mailru // import "golang.org/x/oauth2/mailru" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Mail.Ru's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://o2.mail.ru/login", 15 | TokenURL: "https://o2.mail.ru/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | //go:generate go run gen.go 6 | 7 | // text is a repository of text-related packages related to internationalization 8 | // (i18n) and localization (l10n), such as character encodings, text 9 | // transformations, and locale-specific text handling. 10 | package text 11 | 12 | // TODO: more documentation on general concepts, such as Transformers, use 13 | // of normalization, etc. 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/pointer/testdata/timer.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package main 4 | 5 | import "time" 6 | 7 | func after() {} 8 | 9 | func main() { 10 | // @calls time.startTimer -> time.sendTime 11 | ticker := time.NewTicker(1) 12 | <-ticker.C 13 | 14 | // @calls time.startTimer -> time.sendTime 15 | timer := time.NewTimer(time.Second) 16 | <-timer.C 17 | 18 | // @calls time.startTimer -> time.goFunc 19 | // @calls time.goFunc -> main.after 20 | timer = time.AfterFunc(time.Second, after) 21 | <-timer.C 22 | } 23 | 24 | // @calls time.sendTime -> time.Now 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // +build plan9,!race 6 | 7 | package plan9 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/gen_common.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | // This file contains code common to the maketables.go and the package code. 10 | 11 | // langAliasType is the type of an alias in langAliasMap. 12 | type langAliasType int8 13 | 14 | const ( 15 | langDeprecated langAliasType = iota 16 | langMacro 17 | langLegacy 18 | 19 | langAliasTypeUnknown langAliasType = -1 20 | ) 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/timeout.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | package appengine 6 | 7 | import "golang.org/x/net/context" 8 | 9 | // IsTimeoutError reports whether err is a timeout error. 10 | func IsTimeoutError(err error) bool { 11 | if err == context.DeadlineExceeded { 12 | return true 13 | } 14 | if t, ok := err.(interface { 15 | IsTimeout() bool 16 | }); ok { 17 | return t.IsTimeout() 18 | } 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /pkg/controller/gitea/resourceHelper_test.go: -------------------------------------------------------------------------------- 1 | package gitea 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestCreateResource(t *testing.T) { 8 | resourceHelper := newResourceHelper(&MockCR) 9 | resourceHelper.templateHelper.TemplatePath = "../../../templates" 10 | 11 | for _, template := range Templates { 12 | obj, err := resourceHelper.createResource(template) 13 | 14 | if err != nil { 15 | t.Errorf("Error creating resource for templates %s", template) 16 | } 17 | 18 | if obj == nil { 19 | t.Errorf("Invalid resource for templates %s", template) 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/cloud.google.com/go/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of cloud authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as: 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | Filippo Valsorda 10 | Google Inc. 11 | Ingo Oeser 12 | Palm Stone Games, Inc. 13 | Paweł Knap 14 | Péter Szilágyi 15 | Tyler Treat 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/gitlab/gitlab.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // Package gitlab provides constants for using OAuth2 to access GitLab. 6 | package gitlab // import "golang.org/x/oauth2/gitlab" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is GitLab's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://gitlab.com/oauth/authorize", 15 | TokenURL: "https://gitlab.com/oauth/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/slack/slack.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Package slack provides constants for using OAuth2 to access Slack. 6 | package slack // import "golang.org/x/oauth2/slack" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Slack's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://slack.com/oauth/authorize", 15 | TokenURL: "https://slack.com/api/oauth.access", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/uber/uber.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Package uber provides constants for using OAuth2 to access Uber. 6 | package uber // import "golang.org/x/oauth2/uber" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Uber's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://login.uber.com/oauth/v2/authorize", 15 | TokenURL: "https://login.uber.com/oauth/v2/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build linux,!gccgo 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/icmp_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !linux 6 | 7 | package ipv4 8 | 9 | const sizeofICMPFilter = 0x0 10 | 11 | type icmpFilter struct { 12 | } 13 | 14 | func (f *icmpFilter) accept(typ ICMPType) { 15 | } 16 | 17 | func (f *icmpFilter) block(typ ICMPType) { 18 | } 19 | 20 | func (f *icmpFilter) setAll(block bool) { 21 | } 22 | 23 | func (f *icmpFilter) willBlock(typ ICMPType) bool { 24 | return false 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/kakao/kakao.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // Package kakao provides constants for using OAuth2 to access Kakao. 6 | package kakao // import "golang.org/x/oauth2/kakao" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Kakao's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://kauth.kakao.com/oauth/authorize", 15 | TokenURL: "https://kauth.kakao.com/oauth/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build 386 amd64 amd64p32 6 | // +build !gccgo 7 | 8 | package cpu 9 | 10 | // cpuid is implemented in cpu_x86.s for gc compiler 11 | // and in cpu_gccgo.c for gccgo. 12 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 13 | 14 | // xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler 15 | // and in cpu_gccgo.c for gccgo. 16 | func xgetbv() (eax, edx uint32) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.9 6 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 7 | 8 | package socket 9 | 10 | import "errors" 11 | 12 | func (c *Conn) recvMsg(m *Message, flags int) error { 13 | return errors.New("not implemented") 14 | } 15 | 16 | func (c *Conn) sendMsg(m *Message, flags int) error { 17 | return errors.New("not implemented") 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/bitbucket/bitbucket.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The oauth2 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 | 5 | // Package bitbucket provides constants for using OAuth2 to access Bitbucket. 6 | package bitbucket 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Bitbucket's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://bitbucket.org/site/oauth2/authorize", 15 | TokenURL: "https://bitbucket.org/site/oauth2/access_token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/cern/cern.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // Package cern provides constants for using OAuth2 to access CERN services. 6 | package cern // import "golang.org/x/oauth2/cern" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is CERN's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://oauth.web.cern.ch/OAuth/Authorize", 15 | TokenURL: "https://oauth.web.cern.ch/OAuth/Token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/heroku/heroku.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Package heroku provides constants for using OAuth2 to access Heroku. 6 | package heroku // import "golang.org/x/oauth2/heroku" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Heroku's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://id.heroku.com/oauth/authorize", 15 | TokenURL: "https://id.heroku.com/oauth/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/yandex/yandex.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // Package yandex provides constants for using OAuth2 to access Yandex APIs. 6 | package yandex // import "golang.org/x/oauth2/yandex" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is the Yandex OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://oauth.yandex.com/authorize", 15 | TokenURL: "https://oauth.yandex.com/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/pointer/testdata/issue9002.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() { 4 | // Regression test for golang issue 9002. 5 | // 6 | // The two-result "value,ok" receive operation generated a 7 | // too-wide constraint loading (value int, ok bool), not bool, 8 | // from the channel. 9 | // 10 | // This bug manifested itself in an out-of-bounds array access 11 | // when the makechan object was the highest-numbered node, as in 12 | // this program. 13 | // 14 | // In more realistic programs it silently resulted in bogus 15 | // constraints. 16 | _, _ = <-make(chan int) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/examples/restful-hello-world.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/emicklei/go-restful" 5 | "io" 6 | "log" 7 | "net/http" 8 | ) 9 | 10 | // This example shows the minimal code needed to get a restful.WebService working. 11 | // 12 | // GET http://localhost:8080/hello 13 | 14 | func main() { 15 | ws := new(restful.WebService) 16 | ws.Route(ws.GET("/hello").To(hello)) 17 | restful.Add(ws) 18 | log.Fatal(http.ListenAndServe(":8080", nil)) 19 | } 20 | 21 | func hello(req *restful.Request, resp *restful.Response) { 22 | io.WriteString(resp, "world") 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !darwin,!freebsd,!linux 6 | 7 | package ipv4 8 | 9 | import ( 10 | "net" 11 | 12 | "golang.org/x/net/internal/socket" 13 | ) 14 | 15 | func (so *sockOpt) getIPMreqn(c *socket.Conn) (*net.Interface, error) { 16 | return nil, errOpNoSupport 17 | } 18 | 19 | func (so *sockOpt) setIPMreqn(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 20 | return errOpNoSupport 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/referrers-json/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | // Tests of 'referrers' query. 4 | // See go.tools/guru/guru_test.go for explanation. 5 | // See referrers.golden for expected query results. 6 | 7 | import "lib" 8 | 9 | type s struct { 10 | f int 11 | } 12 | 13 | func main() { 14 | var v lib.Type = lib.Const // @referrers ref-package "lib" 15 | _ = v.Method // @referrers ref-method "Method" 16 | _ = v.Method 17 | v++ //@referrers ref-local "v" 18 | v++ 19 | 20 | _ = s{}.f // @referrers ref-field "f" 21 | 22 | var s2 s 23 | s2.f = 1 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/github/github.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // Package github provides constants for using OAuth2 to access Github. 6 | package github // import "golang.org/x/oauth2/github" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Github's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://github.com/login/oauth/authorize", 15 | TokenURL: "https://github.com/login/oauth/access_token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/spotify/spotify.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // Package spotify provides constants for using OAuth2 to access Spotify. 6 | package spotify // import "golang.org/x/oauth2/spotify" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Spotify's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://accounts.spotify.com/authorize", 15 | TokenURL: "https://accounts.spotify.com/api/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/gogoreplace/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bytes" 5 | "fmt" 6 | "io/ioutil" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | args := os.Args 12 | if len(args) != 4 { 13 | fmt.Println("gogoreplace wants three arguments") 14 | fmt.Println(" gogoreplace oldsubstring newsubstring filename") 15 | os.Exit(1) 16 | } 17 | data, err := ioutil.ReadFile(args[3]) 18 | if err != nil { 19 | panic(err) 20 | } 21 | data = bytes.Replace(data, []byte(args[1]), []byte(args[2]), -1) 22 | if err := ioutil.WriteFile(args[3], data, 0666); err != nil { 23 | panic(err) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/svc/example/beep.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // +build windows 6 | 7 | package main 8 | 9 | import ( 10 | "syscall" 11 | ) 12 | 13 | // BUG(brainman): MessageBeep Windows api is broken on Windows 7, 14 | // so this example does not beep when runs as service on Windows 7. 15 | 16 | var ( 17 | beepFunc = syscall.MustLoadDLL("user32.dll").MustFindProc("MessageBeep") 18 | ) 19 | 20 | func beep() { 21 | beepFunc.Call(0xffffffff) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go 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 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go 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 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/pointsto-json/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | // Tests of 'pointsto' queries, -format=json. 4 | // See go.tools/guru/guru_test.go for explanation. 5 | // See pointsto-json.golden for expected query results. 6 | 7 | func main() { // 8 | var s struct{ x [3]int } 9 | p := &s.x[0] // @pointsto val-p "p" 10 | _ = p 11 | 12 | var i I = C(0) 13 | if i == nil { 14 | i = new(D) 15 | } 16 | print(i) // @pointsto val-i "\\bi\\b" 17 | } 18 | 19 | type I interface { 20 | f() 21 | } 22 | 23 | type C int 24 | type D struct{} 25 | 26 | func (c C) f() {} 27 | func (d *D) f() {} 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/container/intsets/popcnt_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build amd64,!appengine,!gccgo 6 | 7 | package intsets 8 | 9 | func popcnt(x word) int 10 | func havePOPCNT() bool 11 | 12 | var hasPOPCNT = havePOPCNT() 13 | 14 | // popcount returns the population count (number of set bits) of x. 15 | func popcount(x word) int { 16 | if hasPOPCNT { 17 | return popcnt(x) 18 | } 19 | return popcountTable(x) // faster than Hacker's Delight 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/fitbit/fitbit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Package fitbit provides constants for using OAuth2 to access the Fitbit API. 6 | package fitbit // import "golang.org/x/oauth2/fitbit" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is the Fitbit API's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://www.fitbit.com/oauth2/authorize", 15 | TokenURL: "https://api.fitbit.com/oauth2/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go 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 | 5 | // +build plan9 6 | 7 | package plan9 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/analysis/passes/asmdecl/testdata/src/a/asm4.s: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | // +build amd64 6 | 7 | // Test cases for symbolic NOSPLIT etc. on TEXT symbols. 8 | 9 | TEXT ·noprof(SB),NOPROF,$0-8 10 | RET 11 | 12 | TEXT ·dupok(SB),DUPOK,$0-8 13 | RET 14 | 15 | TEXT ·nosplit(SB),NOSPLIT,$0 16 | RET 17 | 18 | TEXT ·rodata(SB),RODATA,$0-8 19 | RET 20 | 21 | TEXT ·noptr(SB),NOPTR|NOSPLIT,$0 22 | RET 23 | 24 | TEXT ·wrapper(SB),WRAPPER,$0-8 25 | RET 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/facebook/facebook.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // Package facebook provides constants for using OAuth2 to access Facebook. 6 | package facebook // import "golang.org/x/oauth2/facebook" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Facebook's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://www.facebook.com/dialog/oauth", 15 | TokenURL: "https://graph.facebook.com/oauth/access_token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go 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 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/number/roundingmode_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type RoundingMode"; DO NOT EDIT. 2 | 3 | package number 4 | 5 | import "fmt" 6 | 7 | const _RoundingMode_name = "ToNearestEvenToNearestZeroToNearestAwayToPositiveInfToNegativeInfToZeroAwayFromZeronumModes" 8 | 9 | var _RoundingMode_index = [...]uint8{0, 13, 26, 39, 52, 65, 71, 83, 91} 10 | 11 | func (i RoundingMode) String() string { 12 | if i >= RoundingMode(len(_RoundingMode_index)-1) { 13 | return fmt.Sprintf("RoundingMode(%d)", i) 14 | } 15 | return _RoundingMode_name[_RoundingMode_index[i]:_RoundingMode_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/net.go: -------------------------------------------------------------------------------- 1 | package swag 2 | 3 | import ( 4 | "net" 5 | "strconv" 6 | ) 7 | 8 | // SplitHostPort splits a network address into a host and a port. 9 | // The port is -1 when there is no port to be found 10 | func SplitHostPort(addr string) (host string, port int, err error) { 11 | h, p, err := net.SplitHostPort(addr) 12 | if err != nil { 13 | return "", -1, err 14 | } 15 | if p == "" { 16 | return "", -1, &net.AddrError{Err: "missing port in address", Addr: addr} 17 | } 18 | 19 | pi, err := strconv.Atoi(p) 20 | if err != nil { 21 | return "", -1, err 22 | } 23 | return h, pi, nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/poly1305/sum_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build s390x,!go1.11 !arm,!amd64,!s390x gccgo appengine nacl 6 | 7 | package poly1305 8 | 9 | // Sum generates an authenticator for msg using a one-time key and puts the 10 | // 16-byte result into out. Authenticating two different messages with the same 11 | // key allows an attacker to forge messages at will. 12 | func Sum(out *[TagSize]byte, msg []byte, key *[32]byte) { 13 | sumGeneric(out, msg, key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/msghdr_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build arm mips mipsle 386 6 | // +build linux 7 | 8 | package socket 9 | 10 | import "unsafe" 11 | 12 | func (h *msghdr) setIov(vs []iovec) { 13 | l := len(vs) 14 | if l == 0 { 15 | return 16 | } 17 | h.Iov = &vs[0] 18 | h.Iovlen = uint32(l) 19 | } 20 | 21 | func (h *msghdr) setControl(b []byte) { 22 | h.Control = (*byte)(unsafe.Pointer(&b[0])) 23 | h.Controllen = uint32(len(b)) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/icmp_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 6 | 7 | package ipv6 8 | 9 | type icmpv6Filter struct { 10 | } 11 | 12 | func (f *icmpv6Filter) accept(typ ICMPType) { 13 | } 14 | 15 | func (f *icmpv6Filter) block(typ ICMPType) { 16 | } 17 | 18 | func (f *icmpv6Filter) setAll(block bool) { 19 | } 20 | 21 | func (f *icmpv6Filter) willBlock(typ ICMPType) bool { 22 | return false 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/svc/go12.c: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // +build windows 6 | // +build !go1.3 7 | 8 | // copied from pkg/runtime 9 | typedef unsigned int uint32; 10 | typedef unsigned long long int uint64; 11 | #ifdef _64BIT 12 | typedef uint64 uintptr; 13 | #else 14 | typedef uint32 uintptr; 15 | #endif 16 | 17 | // from sys_386.s or sys_amd64.s 18 | void ·servicemain(void); 19 | 20 | void 21 | ·getServiceMain(uintptr *r) 22 | { 23 | *r = (uintptr)·servicemain; 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/whicherrs/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type errType string 4 | 5 | const constErr errType = "blah" 6 | 7 | func (et errType) Error() string { 8 | return string(et) 9 | } 10 | 11 | var errVar error = errType("foo") 12 | 13 | func genErr(i int) error { 14 | switch i { 15 | case 0: 16 | return constErr 17 | case 1: 18 | return errVar 19 | default: 20 | return nil 21 | } 22 | } 23 | 24 | func unreachable() { 25 | err := errVar // @whicherrs func-dead "err" 26 | _ = err 27 | } 28 | 29 | func main() { 30 | err := genErr(0) // @whicherrs localerrs "err" 31 | _ = err 32 | } 33 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !darwin,!freebsd,!linux,!solaris 6 | 7 | package ipv4 8 | 9 | import ( 10 | "net" 11 | 12 | "golang.org/x/net/internal/socket" 13 | ) 14 | 15 | func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 16 | return errOpNoSupport 17 | } 18 | 19 | func (so *sockOpt) setGroupSourceReq(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error { 20 | return errOpNoSupport 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_ssmreq_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // +build !darwin,!freebsd,!linux,!solaris 6 | 7 | package ipv6 8 | 9 | import ( 10 | "net" 11 | 12 | "golang.org/x/net/internal/socket" 13 | ) 14 | 15 | func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 16 | return errOpNoSupport 17 | } 18 | 19 | func (so *sockOpt) setGroupSourceReq(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error { 20 | return errOpNoSupport 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/foursquare/foursquare.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // Package foursquare provides constants for using OAuth2 to access Foursquare. 6 | package foursquare // import "golang.org/x/oauth2/foursquare" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Foursquare's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://foursquare.com/oauth2/authorize", 15 | TokenURL: "https://foursquare.com/oauth2/access_token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/instagram/instagram.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // Package instagram provides constants for using OAuth2 to access Instagram. 6 | package instagram // import "golang.org/x/oauth2/instagram" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Instagram's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://api.instagram.com/oauth/authorize", 15 | TokenURL: "https://api.instagram.com/oauth/access_token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/linkedin/linkedin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // Package linkedin provides constants for using OAuth2 to access LinkedIn. 6 | package linkedin // import "golang.org/x/oauth2/linkedin" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is LinkedIn's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://www.linkedin.com/oauth/v2/authorization", 15 | TokenURL: "https://www.linkedin.com/oauth/v2/accessToken", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/shake_generic.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | //+build gccgo appengine !s390x 6 | 7 | package sha3 8 | 9 | // newShake128Asm returns an assembly implementation of SHAKE-128 if available, 10 | // otherwise it returns nil. 11 | func newShake128Asm() ShakeHash { 12 | return nil 13 | } 14 | 15 | // newShake256Asm returns an assembly implementation of SHAKE-256 if available, 16 | // otherwise it returns nil. 17 | func newShake256Asm() ShakeHash { 18 | return nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/delay/delay_go17.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | //+build go1.7 6 | 7 | package delay 8 | 9 | import ( 10 | stdctx "context" 11 | "reflect" 12 | 13 | netctx "golang.org/x/net/context" 14 | ) 15 | 16 | var ( 17 | stdContextType = reflect.TypeOf((*stdctx.Context)(nil)).Elem() 18 | netContextType = reflect.TypeOf((*netctx.Context)(nil)).Elem() 19 | ) 20 | 21 | func isContext(t reflect.Type) bool { 22 | return t == stdContextType || t == netContextType 23 | } 24 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | 4 | ## Expected Behavior 5 | 6 | 7 | ## Actual Behavior 8 | 9 | 10 | ## Environment 11 | 12 | * Operating system: (E.g RHEL 7.6 ) 13 | * OpenShift version: 14 | 15 | * Project Version/Tag: (E.g release-1.0.1) 16 | 17 | ## Steps to reproduce 18 | 19 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/errors.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type ErrorIntSlice []int 5 | 6 | //easyjson:json 7 | type ErrorBoolSlice []bool 8 | 9 | //easyjson:json 10 | type ErrorUintSlice []uint 11 | 12 | //easyjson:json 13 | type ErrorStruct struct { 14 | Int int `json:"int"` 15 | String string `json:"string"` 16 | Slice []int `json:"slice"` 17 | IntSlice []int `json:"int_slice"` 18 | } 19 | 20 | type ErrorNestedStruct struct { 21 | ErrorStruct ErrorStruct `json:"error_struct"` 22 | Int int `json:"int"` 23 | } 24 | 25 | //easyjson:json 26 | type ErrorIntMap map[uint32]string 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/icmp_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | package ipv6 6 | 7 | func (f *icmpv6Filter) accept(typ ICMPType) { 8 | // TODO(mikio): implement this 9 | } 10 | 11 | func (f *icmpv6Filter) block(typ ICMPType) { 12 | // TODO(mikio): implement this 13 | } 14 | 15 | func (f *icmpv6Filter) setAll(block bool) { 16 | // TODO(mikio): implement this 17 | } 18 | 19 | func (f *icmpv6Filter) willBlock(typ ICMPType) bool { 20 | // TODO(mikio): implement this 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/nokiahealth/nokiahealth.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The oauth2 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 | 5 | // Package nokiahealth provides constants for using OAuth2 to access the Nokia Health Mate API. 6 | package nokiahealth 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Nokia Health Mate's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://account.health.nokia.com/oauth2_user/authorize2", 15 | TokenURL: "https://account.health.nokia.com/oauth2/token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/goimports/goimports_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build gc 6 | 7 | package main 8 | 9 | import ( 10 | "flag" 11 | "runtime/trace" 12 | ) 13 | 14 | var traceProfile = flag.String("trace", "", "trace profile output") 15 | 16 | func doTrace() func() { 17 | if *traceProfile != "" { 18 | bw, flush := bufferedFileWriter(*traceProfile) 19 | trace.Start(bw) 20 | return func() { 21 | flush() 22 | trace.Stop() 23 | } 24 | } 25 | return func() {} 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/present/caption.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | package present 6 | 7 | import "strings" 8 | 9 | func init() { 10 | Register("caption", parseCaption) 11 | } 12 | 13 | type Caption struct { 14 | Text string 15 | } 16 | 17 | func (c Caption) TemplateName() string { return "caption" } 18 | 19 | func parseCaption(_ *Context, _ string, _ int, text string) (Elem, error) { 20 | text = strings.TrimSpace(strings.TrimPrefix(text, ".caption")) 21 | return Caption{text}, nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go 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 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (cmsg *Cmsghdr) SetLen(length int) { 22 | cmsg.Len = uint32(length) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/callgraph/cha/testdata/recv.go: -------------------------------------------------------------------------------- 1 | //+build ignore 2 | 3 | package main 4 | 5 | type I interface { 6 | f() 7 | } 8 | 9 | type J interface { 10 | g() 11 | } 12 | 13 | type C int // C and *C implement I; *C implements J 14 | 15 | func (C) f() 16 | func (*C) g() 17 | 18 | type D int // *D implements I and J 19 | 20 | func (*D) f() 21 | func (*D) g() 22 | 23 | func f(i I) { 24 | i.f() // calls C, *C, *D 25 | } 26 | 27 | func g(j J) { 28 | j.g() // calls *C, *D 29 | } 30 | 31 | // WANT: 32 | // Dynamic calls 33 | // f --> (*C).f 34 | // f --> (*D).f 35 | // f --> (C).f 36 | // g --> (*C).g 37 | // g --> (*D).g 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/pointer/testdata/hello.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package main 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | ) 9 | 10 | type S int 11 | 12 | var theS S 13 | 14 | func (s *S) String() string { 15 | print(s) // @pointsto main.theS 16 | return "" 17 | } 18 | 19 | func main() { 20 | // os.Args is considered intrinsically allocated, 21 | // but may also be set explicitly (e.g. on Windows), hence '...'. 22 | print(os.Args) // @pointsto | ... 23 | fmt.Println("Hello, World!", &theS) 24 | } 25 | 26 | // @calls main.main -> fmt.Println 27 | // @calls (*fmt.pp).handleMethods -> (*main.S).String 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/stackoverflow/stackoverflow.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // Package stackoverflow provides constants for using OAuth2 to access Stack Overflow. 6 | package stackoverflow // import "golang.org/x/oauth2/stackoverflow" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Stack Overflow's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://stackoverflow.com/oauth", 15 | TokenURL: "https://stackoverflow.com/oauth/access_token", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !amd64 !go1.7 gccgo appengine 6 | 7 | package chacha20poly1305 8 | 9 | func (c *chacha20poly1305) seal(dst, nonce, plaintext, additionalData []byte) []byte { 10 | return c.sealGeneric(dst, nonce, plaintext, additionalData) 11 | } 12 | 13 | func (c *chacha20poly1305) open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) { 14 | return c.openGeneric(dst, nonce, ciphertext, additionalData) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build arm64 amd64 ppc64 ppc64le mips64 mips64le s390x 6 | // +build linux 7 | 8 | package socket 9 | 10 | import "unsafe" 11 | 12 | func (h *msghdr) setIov(vs []iovec) { 13 | l := len(vs) 14 | if l == 0 { 15 | return 16 | } 17 | h.Iov = &vs[0] 18 | h.Iovlen = uint64(l) 19 | } 20 | 21 | func (h *msghdr) setControl(b []byte) { 22 | h.Control = (*byte)(unsafe.Pointer(&b[0])) 23 | h.Controllen = uint64(len(b)) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/container/intsets/popcnt_gccgo_c.c: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // +build gccgo 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | #define _STRINGIFY2_(x) #x 12 | #define _STRINGIFY_(x) _STRINGIFY2_(x) 13 | #define GOSYM_PREFIX _STRINGIFY_(__USER_LABEL_PREFIX__) 14 | 15 | extern intptr_t popcount(uintptr_t x) __asm__(GOSYM_PREFIX GOPKGPATH ".popcount"); 16 | 17 | intptr_t popcount(uintptr_t x) { 18 | return __builtin_popcountl((unsigned long)(x)); 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/mmsghdr_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !linux,!netbsd 6 | 7 | package socket 8 | 9 | import "net" 10 | 11 | type mmsghdr struct{} 12 | 13 | type mmsghdrs []mmsghdr 14 | 15 | func (hs mmsghdrs) pack(ms []Message, parseFn func([]byte, string) (net.Addr, error), marshalFn func(net.Addr) []byte) error { 16 | return nil 17 | } 18 | 19 | func (hs mmsghdrs) unpack(ms []Message, parseFn func([]byte, string) (net.Addr, error), hint string) error { 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/odnoklassniki/odnoklassniki.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | // Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki. 6 | package odnoklassniki // import "golang.org/x/oauth2/odnoklassniki" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Odnoklassniki's OAuth 2.0 endpoint. 13 | var Endpoint = oauth2.Endpoint{ 14 | AuthURL: "https://www.odnoklassniki.ru/oauth/authorize", 15 | TokenURL: "https://api.odnoklassniki.ru/oauth/token.do", 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/yahoo/yahoo.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // Package yahoo provides constants for using OAuth2 to access Yahoo. 6 | package yahoo // import "golang.org/x/oauth2/yahoo" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Yahoo's OAuth 2.0 endpoint. 13 | // See https://developer.yahoo.com/oauth2/guide/ 14 | var Endpoint = oauth2.Endpoint{ 15 | AuthURL: "https://api.login.yahoo.com/oauth2/request_auth", 16 | TokenURL: "https://api.login.yahoo.com/oauth2/get_token", 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/lsp/protocol/diagnostics.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // This file contains the corresponding structures to the 6 | // "Diagnostics" part of the LSP specification. 7 | 8 | package protocol 9 | 10 | type PublishDiagnosticsParams struct { 11 | /** 12 | * The URI for which diagnostic information is reported. 13 | */ 14 | URI DocumentURI `json:"uri"` 15 | 16 | /** 17 | * An array of diagnostic information items. 18 | */ 19 | Diagnostics []Diagnostic `json:"diagnostics"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/appengine_vm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | 7 | package appengine 8 | 9 | import ( 10 | "golang.org/x/net/context" 11 | 12 | "google.golang.org/appengine/internal" 13 | ) 14 | 15 | // BackgroundContext returns a context not associated with a request. 16 | // This should only be used when not servicing a request. 17 | // This only works in App Engine "flexible environment". 18 | func BackgroundContext() context.Context { 19 | return internal.BackgroundContext() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/code-generator/hack/boilerplate.go.txt: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/nested_easy.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "github.com/mailru/easyjson" 5 | "github.com/mailru/easyjson/jwriter" 6 | ) 7 | 8 | //easyjson:json 9 | type NestedInterfaces struct { 10 | Value interface{} 11 | Slice []interface{} 12 | Map map[string]interface{} 13 | } 14 | 15 | type NestedEasyMarshaler struct { 16 | EasilyMarshaled bool 17 | } 18 | 19 | var _ easyjson.Marshaler = &NestedEasyMarshaler{} 20 | 21 | func (i *NestedEasyMarshaler) MarshalEasyJSON(w *jwriter.Writer) { 22 | // We use this method only to indicate that easyjson.Marshaler 23 | // interface was really used while encoding. 24 | i.EasilyMarshaled = true 25 | } -------------------------------------------------------------------------------- /vendor/golang.org/x/net/icmp/ipv6.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | package icmp 6 | 7 | import ( 8 | "net" 9 | 10 | "golang.org/x/net/internal/iana" 11 | ) 12 | 13 | const ipv6PseudoHeaderLen = 2*net.IPv6len + 8 14 | 15 | // IPv6PseudoHeader returns an IPv6 pseudo header for checksum 16 | // calculation. 17 | func IPv6PseudoHeader(src, dst net.IP) []byte { 18 | b := make([]byte, ipv6PseudoHeaderLen) 19 | copy(b, src.To16()) 20 | copy(b[net.IPv6len:], dst.To16()) 21 | b[len(b)-1] = byte(iana.ProtocolIPv6ICMP) 22 | return b 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/icmp_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | package ipv4 6 | 7 | func (f *icmpFilter) accept(typ ICMPType) { 8 | f.Data &^= 1 << (uint32(typ) & 31) 9 | } 10 | 11 | func (f *icmpFilter) block(typ ICMPType) { 12 | f.Data |= 1 << (uint32(typ) & 31) 13 | } 14 | 15 | func (f *icmpFilter) setAll(block bool) { 16 | if block { 17 | f.Data = 1<<32 - 1 18 | } else { 19 | f.Data = 0 20 | } 21 | } 22 | 23 | func (f *icmpFilter) willBlock(typ ICMPType) bool { 24 | return f.Data&(1<<(uint32(typ)&31)) != 0 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_bpf.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build linux 6 | 7 | package ipv4 8 | 9 | import ( 10 | "unsafe" 11 | 12 | "golang.org/x/net/bpf" 13 | "golang.org/x/net/internal/socket" 14 | ) 15 | 16 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error { 17 | prog := sockFProg{ 18 | Len: uint16(len(f)), 19 | Filter: (*sockFilter)(unsafe.Pointer(&f[0])), 20 | } 21 | b := (*[sizeofSockFprog]byte)(unsafe.Pointer(&prog))[:sizeofSockFprog] 22 | return so.Set(c, b) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_bpf.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build linux 6 | 7 | package ipv6 8 | 9 | import ( 10 | "unsafe" 11 | 12 | "golang.org/x/net/bpf" 13 | "golang.org/x/net/internal/socket" 14 | ) 15 | 16 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error { 17 | prog := sockFProg{ 18 | Len: uint16(len(f)), 19 | Filter: (*sockFilter)(unsafe.Pointer(&f[0])), 20 | } 21 | b := (*[sizeofSockFprog]byte)(unsafe.Pointer(&prog))[:sizeofSockFprog] 22 | return so.Set(c, b) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/stringer/testdata/unum2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // Unsigned integers - check maximum size 6 | 7 | package main 8 | 9 | import "fmt" 10 | 11 | type Unum2 uint8 12 | 13 | const ( 14 | Zero Unum2 = iota 15 | One 16 | Two 17 | ) 18 | 19 | func main() { 20 | ck(Zero, "Zero") 21 | ck(One, "One") 22 | ck(Two, "Two") 23 | ck(3, "Unum2(3)") 24 | ck(255, "Unum2(255)") 25 | } 26 | 27 | func ck(unum Unum2, str string) { 28 | if fmt.Sprint(unum) != str { 29 | panic("unum.go: " + str) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/named_type.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type NamedType struct { 5 | Inner struct { 6 | // easyjson is mistakenly naming the type of this field 'tests.MyString' in the generated output 7 | // something about a named type inside an anonmymous type is triggering this bug 8 | Field MyString `tag:"value"` 9 | Field2 int "tag:\"value with ` in it\"" 10 | } 11 | } 12 | 13 | type MyString string 14 | 15 | var namedTypeValue NamedType 16 | 17 | func init() { 18 | namedTypeValue.Inner.Field = "test" 19 | namedTypeValue.Inner.Field2 = 123 20 | } 21 | 22 | var namedTypeValueString = `{"Inner":{"Field":"test","Field2":123}}` 23 | -------------------------------------------------------------------------------- /templates/gitea-service.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | annotations: 5 | description: The Gitea server's http port 6 | service.alpha.openshift.io/dependencies: '[{"name":"{{ .GiteaPgServiceName }}","namespace":"","kind":"Service"}]' 7 | labels: 8 | app: {{ .ApplicationName }} 9 | name: {{ .GiteaServiceName }} 10 | namespace: {{ .ApplicationNamespace }} 11 | spec: 12 | ports: 13 | - name: 3000-tcp 14 | port: 3000 15 | protocol: TCP 16 | targetPort: 3000 17 | selector: 18 | app: {{ .ApplicationName }} 19 | deployment: {{ .GiteaDeploymentName }} 20 | sessionAffinity: None 21 | type: ClusterIP 22 | status: 23 | loadBalancer: {} -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/examples/restful-no-cache-filter.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "io" 5 | "log" 6 | "net/http" 7 | 8 | "github.com/emicklei/go-restful" 9 | ) 10 | 11 | // This example shows how to use a WebService filter that passed the Http headers to disable browser cacheing. 12 | // 13 | // GET http://localhost:8080/hello 14 | 15 | func main() { 16 | ws := new(restful.WebService) 17 | ws.Filter(restful.NoBrowserCacheFilter) 18 | ws.Route(ws.GET("/hello").To(hello)) 19 | restful.Add(ws) 20 | log.Fatal(http.ListenAndServe(":8080", nil)) 21 | } 22 | 23 | func hello(req *restful.Request, resp *restful.Response) { 24 | io.WriteString(resp, "world") 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/twitch/twitch.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // Package twitch provides constants for using OAuth2 to access Twitch. 6 | package twitch // import "golang.org/x/oauth2/twitch" 7 | 8 | import ( 9 | "golang.org/x/oauth2" 10 | ) 11 | 12 | // Endpoint is Twitch's OAuth 2.0 endpoint. 13 | // 14 | // For more information see: 15 | // https://dev.twitch.tv/docs/authentication 16 | var Endpoint = oauth2.Endpoint{ 17 | AuthURL: "https://id.twitch.tv/oauth2/authorize", 18 | TokenURL: "https://id.twitch.tv/oauth2/token", 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go 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 | 5 | // +build linux,!gccgo,386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/socket/msghdr_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris 6 | 7 | package socket 8 | 9 | type msghdr struct{} 10 | 11 | func (h *msghdr) pack(vs []iovec, bs [][]byte, oob []byte, sa []byte) {} 12 | func (h *msghdr) name() []byte { return nil } 13 | func (h *msghdr) controllen() int { return 0 } 14 | func (h *msghdr) flags() int { return 0 } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/websocket/dial.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go 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 | 5 | package websocket 6 | 7 | import ( 8 | "crypto/tls" 9 | "net" 10 | ) 11 | 12 | func dialWithDialer(dialer *net.Dialer, config *Config) (conn net.Conn, err error) { 13 | switch config.Location.Scheme { 14 | case "ws": 15 | conn, err = dialer.Dial("tcp", parseAuthority(config.Location)) 16 | 17 | case "wss": 18 | conn, err = tls.DialWithDialer(dialer, "tcp", parseAuthority(config.Location), config.TlsConfig) 19 | 20 | default: 21 | err = ErrBadScheme 22 | } 23 | return 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/payload.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go 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 | 5 | package ipv4 6 | 7 | import ( 8 | "net" 9 | 10 | "golang.org/x/net/internal/socket" 11 | ) 12 | 13 | // BUG(mikio): On Windows, the ControlMessage for ReadFrom and WriteTo 14 | // methods of PacketConn is not implemented. 15 | 16 | // A payloadHandler represents the IPv4 datagram payload handler. 17 | type payloadHandler struct { 18 | net.PacketConn 19 | *socket.Conn 20 | rawOpt 21 | } 22 | 23 | func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil && c.Conn != nil } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/payload.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go 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 | 5 | package ipv6 6 | 7 | import ( 8 | "net" 9 | 10 | "golang.org/x/net/internal/socket" 11 | ) 12 | 13 | // BUG(mikio): On Windows, the ControlMessage for ReadFrom and WriteTo 14 | // methods of PacketConn is not implemented. 15 | 16 | // A payloadHandler represents the IPv6 datagram payload handler. 17 | type payloadHandler struct { 18 | net.PacketConn 19 | *socket.Conn 20 | rawOpt 21 | } 22 | 23 | func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil && c.Conn != nil } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/trace/trace_go17.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build go1.7 6 | 7 | package trace 8 | 9 | import "context" 10 | 11 | // NewContext returns a copy of the parent context 12 | // and associates it with a Trace. 13 | func NewContext(ctx context.Context, tr Trace) context.Context { 14 | return context.WithValue(ctx, contextKey, tr) 15 | } 16 | 17 | // FromContext returns the Trace bound to the context, if any. 18 | func FromContext(ctx context.Context) (tr Trace, ok bool) { 19 | tr, ok = ctx.Value(contextKey).(Trace) 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/message/catalog/gopre19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go 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 | 5 | // +build !go1.9 6 | 7 | package catalog 8 | 9 | import "golang.org/x/text/internal/catmsg" 10 | 11 | // A Message holds a collection of translations for the same phrase that may 12 | // vary based on the values of substitution arguments. 13 | type Message interface { 14 | catmsg.Message 15 | } 16 | 17 | func firstInSequence(m []Message) catmsg.Message { 18 | a := []catmsg.Message{} 19 | for _, m := range m { 20 | a = append(a, m) 21 | } 22 | return catmsg.FirstOf(a) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/guru/testdata/src/alias/alias.go: -------------------------------------------------------------------------------- 1 | // Tests of Go 1.9 type aliases. 2 | // See go.tools/guru/guru_test.go for explanation. 3 | // See alias.golden for expected query results. 4 | 5 | package alias // @describe describe-pkg "alias" 6 | 7 | type I interface { // @implements implements-I "I" 8 | f() 9 | } 10 | 11 | type N int 12 | 13 | func (N) f() {} 14 | 15 | type M = N // @describe describe-def-M "M" 16 | var m M // @describe describe-ref-M "M" 17 | 18 | type O N // @describe describe-O "O" 19 | 20 | type P = struct{ N } // @describe describe-P "N" 21 | 22 | type U = undefined // @describe describe-U "U" 23 | type _ = undefined // @describe describe-undefined "undefined" 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/refactor/eg/testdata/C1.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package C1 4 | 5 | import "strings" 6 | 7 | func example() { 8 | x := "foo" 9 | println(x[:len(x)]) 10 | 11 | // Match, but the transformation is not sound w.r.t. possible side effects. 12 | println(strings.Repeat("*", 3)[:len(strings.Repeat("*", 3))]) 13 | 14 | // No match, since second use of wildcard doesn't match first. 15 | println(strings.Repeat("*", 3)[:len(strings.Repeat("*", 2))]) 16 | 17 | // Recursive match demonstrating bottom-up rewrite: 18 | // only after the inner replacement occurs does the outer syntax match. 19 | println((x[:len(x)])[:len(x[:len(x)])]) 20 | // -> (x[:len(x)]) 21 | // -> x 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/executor.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import "context" 4 | 5 | // Executor replace go keyword to start a new goroutine 6 | // the goroutine should cancel itself if the context passed in has been cancelled 7 | // the goroutine started by the executor, is owned by the executor 8 | // we can cancel all executors owned by the executor just by stop the executor itself 9 | // however Executor interface does not Stop method, the one starting and owning executor 10 | // should use the concrete type of executor, instead of this interface. 11 | type Executor interface { 12 | // Go starts a new goroutine controlled by the context 13 | Go(handler func(ctx context.Context)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/peterbourgon/diskv/examples/super-simple-store/super-simple-store.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/peterbourgon/diskv" 7 | ) 8 | 9 | func main() { 10 | d := diskv.New(diskv.Options{ 11 | BasePath: "my-diskv-data-directory", 12 | Transform: func(s string) []string { return []string{} }, 13 | CacheSizeMax: 1024 * 1024, // 1MB 14 | }) 15 | 16 | key := "alpha" 17 | if err := d.Write(key, []byte{'1', '2', '3'}); err != nil { 18 | panic(err) 19 | } 20 | 21 | value, err := d.Read(key) 22 | if err != nil { 23 | panic(err) 24 | } 25 | fmt.Printf("%v\n", value) 26 | 27 | if err := d.Erase(key); err != nil { 28 | panic(err) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go 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 | 5 | // +build !go1.7,amd64,!gccgo,!appengine 6 | 7 | package blake2b 8 | 9 | import "golang.org/x/sys/cpu" 10 | 11 | func init() { 12 | useSSE4 = cpu.X86.HasSSE41 13 | } 14 | 15 | //go:noescape 16 | func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) 17 | 18 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 19 | if useSSE4 { 20 | hashBlocksSSE4(h, c, flag, blocks) 21 | } else { 22 | hashBlocksGeneric(h, c, flag, blocks) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/stringer/testdata/num.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go 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 | 5 | // Signed integers spanning zero. 6 | 7 | package main 8 | 9 | import "fmt" 10 | 11 | type Num int 12 | 13 | const ( 14 | m_2 Num = -2 + iota 15 | m_1 16 | m0 17 | m1 18 | m2 19 | ) 20 | 21 | func main() { 22 | ck(-3, "Num(-3)") 23 | ck(m_2, "m_2") 24 | ck(m_1, "m_1") 25 | ck(m0, "m0") 26 | ck(m1, "m1") 27 | ck(m2, "m2") 28 | ck(3, "Num(3)") 29 | } 30 | 31 | func ck(num Num, str string) { 32 | if fmt.Sprint(num) != str { 33 | panic("num.go: " + str) 34 | } 35 | } 36 | --------------------------------------------------------------------------------