├── ui └── foo.txt ├── deploy ├── version ├── app_db_app_name ├── app_ui_app_name ├── app_api_app_name ├── default_repository ├── app_liquibase_app_name ├── kubernates │ ├── log │ │ ├── build-dev-kustomize.log │ │ ├── build-dev-kube.log │ │ └── delete-dev-kube.log │ ├── base │ │ ├── app-namespase.yaml │ │ ├── app-secret.yaml │ │ ├── app-net-networkpolicy.yaml │ │ ├── app-api-service.yaml │ │ ├── app-db-service.yaml │ │ ├── app-db-persistentvolumeclaim.yaml │ │ ├── kustomization.yaml │ │ └── app-configmap.yaml │ └── overlays │ │ └── dev │ │ ├── app-secret.yaml │ │ ├── kustomization.yaml │ │ ├── app-configmap.yaml │ │ └── app-api-deployment.yaml ├── run │ ├── local.helm.global.config │ │ ├── log │ │ │ ├── foo.txt │ │ │ └── helm-uninstall-dev-kube.log │ │ ├── dev-helm-describe.sh │ │ ├── dev-helm-unistall.sh │ │ ├── dev-helm-install.sh │ │ └── dev-helm-upgrade.sh │ ├── local.compose.global.config │ │ ├── log │ │ │ └── foo.txt │ │ ├── log-all-contaner.sh │ │ ├── compose-app-down.sh │ │ ├── compose-app-ui-up.sh │ │ ├── compose-app-api-db-up.sh │ │ ├── compose-app-db-reload-up.sh │ │ ├── compose-app-api-db-reload-up.sh │ │ ├── compose-app-hazelcast-up.sh │ │ └── .env │ └── _script │ │ ├── docker-app-api-stop.sh │ │ ├── docker-app-api-drop.sh │ │ └── compose-app-down.sh ├── helm │ └── app │ │ ├── files │ │ └── app-secret.cfg │ │ ├── templates │ │ ├── app-secret.yaml │ │ ├── app-db-persistentvolumeclaim.yaml │ │ ├── app-db-service.yaml │ │ ├── app-secret-cfg.yaml │ │ └── app-api-service.yaml │ │ └── .helmignore ├── git_chmod_add_x.bat └── docker │ ├── app-liquibase.Dockerfile │ ├── app-api-push.sh │ ├── app-ui.Dockerfile │ ├── app-liquibase-push.sh │ ├── app-ui-build.sh │ ├── app-api-build.sh │ └── app-liquibase-build.sh ├── db └── sql │ └── 1.0 │ ├── 1.0.0 │ ├── drop_all_fk.sql │ ├── dropSchemaApp.sql │ ├── clean_all_tables.sql │ └── drop_all_pk.sql │ └── 1.0.0-test-data │ └── clean_all_tables.sql ├── cmd └── app │ ├── _clean.bat │ ├── _build_linux.bat │ ├── _check.bat │ ├── _build_windows.bat │ ├── _rebuild_linux.bat │ ├── _rebuild_windows.bat │ ├── _vendor.bat │ ├── bench │ ├── Intel i7-4930k │ │ ├── health test.sh │ │ ├── wp_factorial_1.json │ │ ├── wp_factorial.json │ │ ├── wp_factorial_50.json │ │ ├── dbget test.sh │ │ └── dbselect test.sh │ ├── Intel i7-7500u │ │ ├── health test.sh │ │ ├── wp_factorial_1.json │ │ ├── wp_factorial.json │ │ ├── wp_factorial_50.json │ │ ├── dbget test.sh │ │ └── dbselect test.sh │ └── goprofile.bat │ └── bin │ ├── windows │ ├── debug_local.bat │ ├── info_local.bat │ └── certs │ │ └── create certs.bat │ └── linux │ └── certs │ └── create certs.bat ├── vendor ├── gopkg.in │ ├── ldap.v3 │ │ ├── .gitignore │ │ ├── doc.go │ │ ├── CONTRIBUTING.md │ │ ├── debug.go │ │ ├── .travis.yml │ │ └── client.go │ ├── korylprince │ │ └── go-ad-auth.v2 │ │ │ └── .gitignore │ ├── natefinch │ │ └── lumberjack.v2 │ │ │ ├── .travis.yml │ │ │ ├── chown.go │ │ │ ├── .gitignore │ │ │ └── chown_linux.go │ ├── asn1-ber.v1 │ │ ├── content_int.go │ │ ├── util.go │ │ ├── README.md │ │ └── header.go │ └── yaml.v3 │ │ └── NOTICE ├── 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 │ │ │ ├── .gitignore │ │ │ ├── Gopkg.lock │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── go_below_118.go │ │ │ ├── go_above_118.go │ │ │ ├── Gopkg.toml │ │ │ └── safe_struct.go │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ ├── log.go │ │ │ ├── executor.go │ │ │ └── go_below_19.go │ ├── dgrijalva │ │ └── jwt-go │ │ │ ├── .gitignore │ │ │ ├── doc.go │ │ │ └── .travis.yml │ ├── urfave │ │ └── cli │ │ │ ├── .flake8 │ │ │ ├── .gitignore │ │ │ ├── sort.go │ │ │ └── cli.go │ ├── lib │ │ └── pq │ │ │ ├── .gitignore │ │ │ ├── oid │ │ │ └── doc.go │ │ │ ├── user_other.go │ │ │ ├── ssl_windows.go │ │ │ ├── uuid.go │ │ │ ├── user_posix.go │ │ │ ├── TESTS.md │ │ │ └── krb.go │ ├── matttproud │ │ └── golang_protobuf_extensions │ │ │ ├── pbutil │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ └── doc.go │ │ │ └── NOTICE │ ├── prometheus │ │ ├── procfs │ │ │ ├── .gitignore │ │ │ ├── MAINTAINERS.md │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── SECURITY.md │ │ │ ├── .golangci.yml │ │ │ ├── NOTICE │ │ │ ├── cpuinfo_s390x.go │ │ │ ├── cpuinfo_loong64.go │ │ │ ├── cpuinfo_armx.go │ │ │ ├── cpuinfo_x86.go │ │ │ ├── cpuinfo_ppcx.go │ │ │ ├── cpuinfo_riscvx.go │ │ │ └── cpuinfo_mipsx.go │ │ ├── client_golang │ │ │ ├── prometheus │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── get_pid_gopherjs.go │ │ │ │ ├── num_threads_gopherjs.go │ │ │ │ ├── get_pid.go │ │ │ │ └── process_collector_js.go │ │ │ └── NOTICE │ │ ├── client_model │ │ │ └── NOTICE │ │ └── common │ │ │ ├── NOTICE │ │ │ └── model │ │ │ └── model.go │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ ├── build.sh │ │ │ ├── Gopkg.lock │ │ │ └── Gopkg.toml │ ├── russross │ │ └── blackfriday │ │ │ └── v2 │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── povilasv │ │ └── prommod │ │ │ ├── .travis.yml │ │ │ ├── Makefile │ │ │ └── prommod_oldgo.go │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ └── appveyor.yml │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── jackc │ │ └── pgx │ │ │ ├── pgio │ │ │ └── doc.go │ │ │ ├── pgproto3 │ │ │ ├── notice_response.go │ │ │ ├── sync.go │ │ │ ├── flush.go │ │ │ ├── no_data.go │ │ │ ├── copy_done.go │ │ │ ├── terminate.go │ │ │ ├── bind_complete.go │ │ │ ├── close_complete.go │ │ │ ├── parse_complete.go │ │ │ ├── portal_suspended.go │ │ │ ├── empty_query_response.go │ │ │ ├── copy_data.go │ │ │ ├── ready_for_query.go │ │ │ ├── sasl_response.go │ │ │ ├── big_endian.go │ │ │ └── query.go │ │ │ ├── .gitignore │ │ │ ├── pgtype │ │ │ ├── typed_range_gen.sh │ │ │ ├── cidr.go │ │ │ └── decimal.go │ │ │ ├── .travis.yml │ │ │ └── sql.go │ ├── gorilla │ │ └── mux │ │ │ ├── AUTHORS │ │ │ └── test_helpers.go │ ├── cespare │ │ └── xxhash │ │ │ └── v2 │ │ │ ├── testall.sh │ │ │ ├── xxhash_asm.go │ │ │ └── xxhash_safe.go │ ├── jmoiron │ │ └── sqlx │ │ │ ├── .gitignore │ │ │ ├── doc.go │ │ │ ├── .travis.yml │ │ │ └── reflectx │ │ │ └── README.md │ └── cpuguy83 │ │ └── go-md2man │ │ └── v2 │ │ └── md2man │ │ └── md2man.go ├── golang.org │ └── x │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ ├── endian_big.go │ │ │ ├── sysvshm_unix_other.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── endian_little.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── readdirent_getdents.go │ │ │ ├── pagesize_unix.go │ │ │ ├── aliases.go │ │ │ ├── syscall_hurd.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_linux_alarm.go │ │ │ ├── syscall_hurd_386.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── sysvshm_linux.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── race0.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── race.go │ │ │ ├── readdirent_getdirentries.go │ │ │ ├── zptrace_linux_arm64.go │ │ │ ├── asm_openbsd_mips64.s │ │ │ ├── bluetooth_linux.go │ │ │ ├── asm_bsd_arm.s │ │ │ ├── dev_darwin.go │ │ │ ├── env_unix.go │ │ │ ├── asm_bsd_386.s │ │ │ ├── dev_aix_ppc.go │ │ │ ├── asm_bsd_arm64.s │ │ │ ├── asm_bsd_riscv64.s │ │ │ ├── asm_bsd_ppc64.s │ │ │ ├── asm_bsd_amd64.s │ │ │ └── fcntl_darwin.go │ │ └── windows │ │ │ ├── empty.s │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ ├── str.go │ │ │ ├── race.go │ │ │ └── eventlog.go │ │ └── text │ │ ├── secure │ │ ├── bidirule │ │ │ ├── bidirule10.0.0.go │ │ │ └── bidirule9.0.0.go │ │ └── precis │ │ │ └── doc.go │ │ ├── internal │ │ └── language │ │ │ ├── common.go │ │ │ └── coverage.go │ │ └── width │ │ ├── trieval.go │ │ └── kind_string.go ├── go.uber.org │ ├── multierr │ │ ├── .gitignore │ │ ├── glide.yaml │ │ ├── .codecov.yml │ │ └── README.md │ ├── atomic │ │ └── .gitignore │ └── zap │ │ ├── checklicense.sh │ │ ├── .gitignore │ │ ├── .codecov.yml │ │ └── glide.yaml └── google.golang.org │ └── protobuf │ ├── encoding │ └── prototext │ │ └── doc.go │ ├── internal │ ├── flags │ │ ├── proto_legacy_enable.go │ │ └── proto_legacy_disable.go │ ├── impl │ │ ├── codec_map_go112.go │ │ ├── codec_unsafe.go │ │ ├── enum.go │ │ └── codec_map_go111.go │ ├── errors │ │ └── is_go113.go │ ├── genid │ │ ├── doc.go │ │ ├── wrappers.go │ │ ├── map_entry.go │ │ ├── empty_gen.go │ │ └── goname.go │ └── strs │ │ └── strings_pure.go │ ├── runtime │ └── protoiface │ │ └── legacy.go │ └── proto │ ├── proto_reflect.go │ └── proto_methods.go ├── lib └── metrics-server │ ├── install.sh │ ├── source │ ├── .dockerignore │ ├── charts │ │ ├── metrics-server │ │ │ ├── ci │ │ │ │ └── ci-values.yaml │ │ │ ├── templates │ │ │ │ ├── serviceaccount.yaml │ │ │ │ ├── NOTES.txt │ │ │ │ ├── apiservice.yaml │ │ │ │ ├── clusterrolebinding-auth-delegator.yaml │ │ │ │ ├── clusterrolebinding.yaml │ │ │ │ ├── rolebinding.yaml │ │ │ │ ├── service.yaml │ │ │ │ ├── psp.yaml │ │ │ │ ├── clusterrole-aggregated-reader.yaml │ │ │ │ └── pdb.yaml │ │ │ ├── .helmignore │ │ │ └── Chart.yaml │ │ └── OWNERS │ ├── code-of-conduct.md │ ├── manifests │ │ ├── autoscale │ │ │ └── kustomization.yaml │ │ ├── test-ha │ │ │ ├── patch.yaml │ │ │ └── kustomization.yaml │ │ ├── base │ │ │ ├── kustomization.yaml │ │ │ ├── service.yaml │ │ │ └── apiservice.yaml │ │ ├── high-availability │ │ │ ├── kustomization.yaml │ │ │ ├── pdb.yaml │ │ │ └── patch.yaml │ │ ├── release │ │ │ └── kustomization.yaml │ │ └── test │ │ │ ├── kustomization.yaml │ │ │ └── patch.yaml │ ├── .gitignore │ ├── OWNERS │ ├── test │ │ └── kind-ha-config.yaml │ ├── .github │ │ ├── ISSUE_TEMPLATE │ │ │ └── enhancement.md │ │ └── workflows │ │ │ └── release.yaml │ ├── cloudbuild.yaml │ ├── SECURITY_CONTACTS │ ├── Dockerfile │ ├── scripts │ │ └── boilerplate.go.txt │ ├── .golangci.yml │ └── pkg │ │ ├── api │ │ └── generated │ │ │ └── openapi │ │ │ └── doc.go │ │ ├── storage │ │ ├── interface.go │ │ └── main_test.go │ │ └── scraper │ │ └── interface.go │ ├── helm │ ├── ci │ │ └── ci-values.yaml │ ├── templates │ │ ├── serviceaccount.yaml │ │ ├── NOTES.txt │ │ ├── apiservice.yaml │ │ ├── clusterrolebinding.yaml │ │ ├── clusterrolebinding-auth-delegator.yaml │ │ ├── rolebinding.yaml │ │ ├── service.yaml │ │ ├── psp.yaml │ │ ├── clusterrole-aggregated-reader.yaml │ │ ├── pdb.yaml │ │ └── clusterrole.yaml │ ├── .helmignore │ └── Chart.yaml │ └── readme.txt ├── doc ├── diagram │ └── APP - Kebernates.jpg └── image │ ├── 2023-03-06_09-21-45.png │ ├── 2023-03-06_09-39-42.png │ ├── 2023-03-07_09-13-36.png │ └── 2023-03-07_09-16-32.png ├── .dockerignore ├── .wslconfig ├── pkg └── common │ ├── version │ └── version.go │ └── recover │ └── recover.go └── .gitignore /ui/foo.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deploy/version: -------------------------------------------------------------------------------- 1 | 2.0.0 -------------------------------------------------------------------------------- /deploy/app_db_app_name: -------------------------------------------------------------------------------- 1 | app-db -------------------------------------------------------------------------------- /deploy/app_ui_app_name: -------------------------------------------------------------------------------- 1 | app-ui -------------------------------------------------------------------------------- /db/sql/1.0/1.0.0/drop_all_fk.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deploy/app_api_app_name: -------------------------------------------------------------------------------- 1 | app-api -------------------------------------------------------------------------------- /cmd/app/_clean.bat: -------------------------------------------------------------------------------- 1 | make -f make clean -------------------------------------------------------------------------------- /deploy/default_repository: -------------------------------------------------------------------------------- 1 | romapres2010 -------------------------------------------------------------------------------- /vendor/gopkg.in/ldap.v3/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deploy/app_liquibase_app_name: -------------------------------------------------------------------------------- 1 | app-liquibase -------------------------------------------------------------------------------- /cmd/app/_build_linux.bat: -------------------------------------------------------------------------------- 1 | make -f make_linux build -------------------------------------------------------------------------------- /cmd/app/_check.bat: -------------------------------------------------------------------------------- 1 | make -f make_windows check -------------------------------------------------------------------------------- /deploy/kubernates/log/build-dev-kustomize.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deploy/run/local.helm.global.config/log/foo.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmd/app/_build_windows.bat: -------------------------------------------------------------------------------- 1 | make -f make_windows build -------------------------------------------------------------------------------- /cmd/app/_rebuild_linux.bat: -------------------------------------------------------------------------------- 1 | make -f make_linux rebuild -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/log/foo.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /cmd/app/_rebuild_windows.bat: -------------------------------------------------------------------------------- 1 | make -f make_windows rebuild -------------------------------------------------------------------------------- /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/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /db/sql/1.0/1.0.0/dropSchemaApp.sql: -------------------------------------------------------------------------------- 1 | DROP SCHEMA IF EXISTS app CASCADE 2 | ; 3 | -------------------------------------------------------------------------------- /lib/metrics-server/install.sh: -------------------------------------------------------------------------------- 1 | kubectl apply -f metrics-server-components.yaml -------------------------------------------------------------------------------- /lib/metrics-server/source/.dockerignore: -------------------------------------------------------------------------------- 1 | /_output 2 | /metrics-server 3 | /.git -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | bin 3 | 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 120 3 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/ci/ci-values.yaml: -------------------------------------------------------------------------------- 1 | args: 2 | - --kubelet-insecure-tls 3 | -------------------------------------------------------------------------------- /vendor/gopkg.in/korylprince/go-ad-auth.v2/.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | .env 3 | tags 4 | -------------------------------------------------------------------------------- /deploy/helm/app/files/app-secret.cfg: -------------------------------------------------------------------------------- 1 | APP_PG_USER: postgres 2 | APP_PG_PASS: postgres 3 | -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/.gitignore: -------------------------------------------------------------------------------- 1 | .db 2 | *.test 3 | *~ 4 | *.swp 5 | .idea 6 | .vscode -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/.gitignore: -------------------------------------------------------------------------------- 1 | cover.dat 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.gitignore: -------------------------------------------------------------------------------- 1 | /testdata/fixtures/ 2 | /fixtures 3 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | cover.html 3 | cover.out 4 | /bin 5 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /deploy/run/local.helm.global.config/log/helm-uninstall-dev-kube.log: -------------------------------------------------------------------------------- 1 | release "dev" uninstalled 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/.gitignore: -------------------------------------------------------------------------------- 1 | command-line-arguments.test 2 | -------------------------------------------------------------------------------- /db/sql/1.0/1.0.0/clean_all_tables.sql: -------------------------------------------------------------------------------- 1 | delete from app.countries; 2 | delete from app.currencies; 3 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/ci/ci-values.yaml: -------------------------------------------------------------------------------- 1 | args: 2 | - --kubelet-insecure-tls 3 | -------------------------------------------------------------------------------- /db/sql/1.0/1.0.0-test-data/clean_all_tables.sql: -------------------------------------------------------------------------------- 1 | delete from app.countries; 2 | delete from app.currencies; 3 | -------------------------------------------------------------------------------- /deploy/git_chmod_add_x.bat: -------------------------------------------------------------------------------- 1 | for /f %%a in ('dir /b /s "*.sh"') do ( 2 | git update-index --chmod=+x %%a 3 | ) -------------------------------------------------------------------------------- /deploy/kubernates/base/app-namespase.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: go-app -------------------------------------------------------------------------------- /doc/diagram/APP - Kebernates.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/romapres2010/goapp/HEAD/doc/diagram/APP - Kebernates.jpg -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Matt T. Proud (matt.proud@gmail.com) 2 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ldap.v3/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package ldap provides basic LDAP v3 functionality. 3 | */ 4 | package ldap 5 | -------------------------------------------------------------------------------- /doc/image/2023-03-06_09-21-45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/romapres2010/goapp/HEAD/doc/image/2023-03-06_09-21-45.png -------------------------------------------------------------------------------- /doc/image/2023-03-06_09-39-42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/romapres2010/goapp/HEAD/doc/image/2023-03-06_09-39-42.png -------------------------------------------------------------------------------- /doc/image/2023-03-07_09-13-36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/romapres2010/goapp/HEAD/doc/image/2023-03-07_09-13-36.png -------------------------------------------------------------------------------- /doc/image/2023-03-07_09-16-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/romapres2010/goapp/HEAD/doc/image/2023-03-07_09-16-32.png -------------------------------------------------------------------------------- /cmd/app/_vendor.bat: -------------------------------------------------------------------------------- 1 | go mod tidy 2 | rem go clean -modcache 3 | go get -u ./../... 4 | go mod vendor 5 | rem make -f make vendor -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | *.swp 3 | *.8 4 | *.6 5 | _obj 6 | _test* 7 | markdown 8 | tags 9 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/OWNERS: -------------------------------------------------------------------------------- 1 | labels: 2 | - chart 3 | approvers: 4 | - stevehipwell 5 | reviewers: 6 | - stevehipwell 7 | -------------------------------------------------------------------------------- /vendor/github.com/povilasv/prommod/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.x" 5 | - "1.12" 6 | - "1.11" 7 | - "1.10" 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | * Johannes 'fish' Ziemke @discordianfish 2 | * Paul Gier @pgier 3 | -------------------------------------------------------------------------------- /db/sql/1.0/1.0.0/drop_all_pk.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE app.currencies DROP CONSTRAINT IF EXISTS currencies_pk CASCADE; 2 | ALTER TABLE app.countries DROP CONSTRAINT IF EXISTS countries_pk CASCADE; 3 | -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/oid/doc.go: -------------------------------------------------------------------------------- 1 | // Package oid contains OID constants 2 | // as defined by the Postgres server. 3 | package oid 4 | 5 | // Oid is a Postgres Object ID. 6 | type Oid uint32 7 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | ### Exclude catalog 2 | _vendor/ 3 | venv/ 4 | doc/ 5 | docker/ 6 | cmd/app/bin 7 | cmd/app/bench 8 | cmd/client_test 9 | cmd/template 10 | .gitignore 11 | .vscode 12 | .idea 13 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/.gitignore: -------------------------------------------------------------------------------- 1 | *.coverprofile 2 | coverage.txt 3 | node_modules/ 4 | vendor 5 | .idea 6 | /.local/ 7 | /internal/ 8 | /site/ 9 | package.json 10 | package-lock.json 11 | -------------------------------------------------------------------------------- /lib/metrics-server/source/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/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | cover: 4 | go test -cover -v -coverprofile=cover.dat ./... 5 | go tool cover -func cover.dat 6 | 7 | .PHONY: cover 8 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | - 1.15.x 6 | - 1.14.x 7 | - 1.13.x 8 | - 1.12.x 9 | 10 | env: 11 | - GO111MODULE=on 12 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/autoscale/kustomization.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kustomize.config.k8s.io/v1beta1 2 | kind: Kustomization 3 | resources: 4 | - rbac.yaml 5 | patchesStrategicMerge: 6 | - patch.yaml 7 | 8 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Prometheus Community Code of Conduct 2 | 3 | Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/chown.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package lumberjack 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | func chown(_ string, _ os.FileInfo) error { 10 | return nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/doc.go: -------------------------------------------------------------------------------- 1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html 2 | // 3 | // See README.md for more info. 4 | package jwt 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | script: 4 | - go vet ./... 5 | - go test -v ./... 6 | 7 | go: 8 | - 1.3 9 | - 1.4 10 | - 1.5 11 | - 1.6 12 | - 1.7 13 | - tip 14 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go.uber.org/multierr 2 | import: 3 | - package: go.uber.org/atomic 4 | version: ^1 5 | testImport: 6 | - package: github.com/stretchr/testify 7 | subpackages: 8 | - assert 9 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/README.md: -------------------------------------------------------------------------------- 1 | See [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/prometheus.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus). 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_model/NOTICE: -------------------------------------------------------------------------------- 1 | Data model artifacts for Prometheus. 2 | Copyright 2012-2015 The Prometheus Authors 3 | 4 | This product includes software developed at 5 | SoundCloud Ltd. (http://soundcloud.com/). 6 | -------------------------------------------------------------------------------- /lib/metrics-server/source/.gitignore: -------------------------------------------------------------------------------- 1 | /_output 2 | /metrics-server 3 | .cover 4 | 5 | # Vim-related files 6 | [._]*.s[a-w][a-z] 7 | [._]s[a-w][a-z] 8 | *~ 9 | *.un~ 10 | Session.vim 11 | .netrwhist 12 | .idea 13 | *manifest-tool 14 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/common/NOTICE: -------------------------------------------------------------------------------- 1 | Common libraries shared by Prometheus Go components. 2 | Copyright 2015 The Prometheus Authors 3 | 4 | This product includes software developed at 5 | SoundCloud Ltd. (http://soundcloud.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting a security issue 2 | 3 | The Prometheus security policy, including how to report vulnerabilities, can be 4 | found here: 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | .DS_Store 3 | /vendor 4 | cover.html 5 | cover.out 6 | lint.log 7 | 8 | # Binaries 9 | *.test 10 | 11 | # Profiling output 12 | *.prof 13 | 14 | # Output of fossa analyzer 15 | /fossa 16 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/test-ha/patch.yaml: -------------------------------------------------------------------------------- 1 | - op: add 2 | path: /spec/template/spec/containers/0/args/- 3 | value: --kubelet-insecure-tls 4 | - op: add 5 | path: /spec/template/spec/containers/0/imagePullPolicy 6 | value: Never 7 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.golangci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | linters: 3 | enable: 4 | - godot 5 | - revive 6 | 7 | linter-settings: 8 | godot: 9 | capital: true 10 | exclude: 11 | # Ignore "See: URL" 12 | - 'See:' 13 | -------------------------------------------------------------------------------- /deploy/kubernates/base/app-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: app-secret 5 | labels: 6 | app: app 7 | namespace: go-app 8 | type: Opaque 9 | stringData: 10 | APP_PG_USER: postgres 11 | APP_PG_PASS: postgres -------------------------------------------------------------------------------- /.wslconfig: -------------------------------------------------------------------------------- 1 | # Settings apply across all Linux distros running on WSL 2 2 | [wsl2] 3 | 4 | # Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB 5 | memory=4GB 6 | 7 | # Sets the VM to use two virtual processors 8 | processors=2 -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/log-all-contaner.sh: -------------------------------------------------------------------------------- 1 | docker logs app-db 1>./log/app-db.log 2>&1 2 | docker logs app-api 1>./log/app-api.log 2>&1 3 | docker logs app-ui 1>./log/app-ui.log 2>&1 4 | docker logs app-liquibase 1>./log/app-liquibase.log 2>&1 5 | 6 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgio/doc.go: -------------------------------------------------------------------------------- 1 | // Package pgio is a low-level toolkit building messages in the PostgreSQL wire protocol. 2 | /* 3 | pgio provides functions for appending integers to a []byte while doing byte 4 | order conversion. 5 | */ 6 | package pgio 7 | -------------------------------------------------------------------------------- /deploy/kubernates/overlays/dev/app-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: app-secret 5 | labels: 6 | app: app 7 | namespace: go-app 8 | type: Opaque 9 | stringData: 10 | APP_PG_USER: postgres 11 | APP_PG_PASS: postgres -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/base/kustomization.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kustomize.config.k8s.io/v1beta1 2 | kind: Kustomization 3 | commonLabels: 4 | k8s-app: metrics-server 5 | resources: 6 | - apiservice.yaml 7 | - deployment.yaml 8 | - rbac.yaml 9 | - service.yaml -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-4930k/health test.sh: -------------------------------------------------------------------------------- 1 | ../ab -T application/json -l -k -c 1 -n 100000 "http://127.0.0.1:3001/app/system/health" > health_0001_parallel.txt 2 | ../ab -T application/json -l -k -c 8 -n 100000 "http://127.0.0.1:3001/app/system/health" > health_0008_parallel.txt 3 | -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-4930k/wp_factorial_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "num_array": [ 3 | 1, 4 | 1, 5 | 1, 6 | 1, 7 | 1, 8 | 1, 9 | 1, 10 | 1, 11 | 1, 12 | 1, 13 | 1, 14 | 1 15 | ] 16 | } -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-7500u/health test.sh: -------------------------------------------------------------------------------- 1 | ../ab -T application/json -l -k -c 1 -n 100000 "http://127.0.0.1:3001/app/system/health" > health_0001_parallel.txt 2 | ../ab -T application/json -l -k -c 8 -n 100000 "http://127.0.0.1:3001/app/system/health" > health_0008_parallel.txt 3 | -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-7500u/wp_factorial_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "num_array": [ 3 | 1, 4 | 1, 5 | 1, 6 | 1, 7 | 1, 8 | 1, 9 | 1, 10 | 1, 11 | 1, 12 | 1, 13 | 1, 14 | 1 15 | ] 16 | } -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/compose-app-down.sh: -------------------------------------------------------------------------------- 1 | export ENV_FILE=$(pwd)/.env 2 | echo "Environment file:" $ENV_FILE 3 | export LOG_FILE=$(pwd)/log/compose-app-down.log 4 | echo "Log file:" $LOG_FILE 5 | (cd .. && ./_script/compose-app-down.sh $ENV_FILE 1>$LOG_FILE 2>&1) -------------------------------------------------------------------------------- /lib/metrics-server/source/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs: https://go.k8s.io/owners 2 | owners: 3 | - s-urbaniak 4 | - serathius 5 | approvers: 6 | - s-urbaniak 7 | - serathius 8 | reviewers: 9 | - dgrisonnet 10 | - s-urbaniak 11 | - serathius 12 | - yangjunmyfm192085 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/high-availability/kustomization.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kustomize.config.k8s.io/v1beta1 2 | kind: Kustomization 3 | bases: 4 | - ../release 5 | resources: 6 | - pdb.yaml 7 | patches: 8 | - path: patch.yaml 9 | target: 10 | kind: Deployment 11 | -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/compose-app-ui-up.sh: -------------------------------------------------------------------------------- 1 | export ENV_FILE=$(pwd)/.env 2 | echo "Environment file:" $ENV_FILE 3 | export LOG_FILE=$(pwd)/log/compose-app-ui-up.log 4 | echo "Log file:" $LOG_FILE 5 | (cd .. && ./_script/compose-app-up.sh $ENV_FILE app-ui 1>$LOG_FILE 2>&1) 6 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/base/service.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: metrics-server 6 | namespace: kube-system 7 | spec: 8 | ports: 9 | - name: https 10 | port: 443 11 | protocol: TCP 12 | targetPort: https 13 | -------------------------------------------------------------------------------- /cmd/app/bench/goprofile.bat: -------------------------------------------------------------------------------- 1 | go tool pprof goprofex http://127.0.0.1:3001/debug/pprof/profile 2 | rem go tool pprof goprofex http://127.0.0.1:3000/debug/pprof/goroutine 3 | rem go tool pprof -alloc_objects goprofex http://127.0.0.1:3000/debug/pprof/heap 4 | 5 | rem web 6 | rem top100 -cum (sync|runtime) -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/compose-app-api-db-up.sh: -------------------------------------------------------------------------------- 1 | export ENV_FILE=$(pwd)/.env 2 | echo "Environment file:" $ENV_FILE 3 | export LOG_FILE=$(pwd)/log/compose-app-api-db-up.log 4 | echo "Log file:" $LOG_FILE 5 | (cd .. && ./_script/compose-app-up.sh $ENV_FILE app-api app-db 1>$LOG_FILE 2>&1) 6 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/NOTICE: -------------------------------------------------------------------------------- 1 | procfs provides functions to retrieve system, kernel and process 2 | metrics from the pseudo-filesystem proc. 3 | 4 | Copyright 2014-2015 The Prometheus Authors 5 | 6 | This product includes software developed at 7 | SoundCloud Ltd. (http://soundcloud.com/). 8 | -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-4930k/wp_factorial.json: -------------------------------------------------------------------------------- 1 | { 2 | "num_array": [ 3 | 50, 4 | 50, 5 | 50, 6 | 50, 7 | 50, 8 | 50, 9 | 50, 10 | 50, 11 | 50, 12 | 50, 13 | 50, 14 | 50, 15 | 50 16 | ] 17 | } -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-4930k/wp_factorial_50.json: -------------------------------------------------------------------------------- 1 | { 2 | "num_array": [ 3 | 50, 4 | 50, 5 | 50, 6 | 50, 7 | 50, 8 | 50, 9 | 50, 10 | 50, 11 | 50, 12 | 50, 13 | 50, 14 | 50, 15 | 50 16 | ] 17 | } -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-7500u/wp_factorial.json: -------------------------------------------------------------------------------- 1 | { 2 | "num_array": [ 3 | 50, 4 | 50, 5 | 50, 6 | 50, 7 | 50, 8 | 50, 9 | 50, 10 | 50, 11 | 50, 12 | 50, 13 | 50, 14 | 50, 15 | 50 16 | ] 17 | } -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-7500u/wp_factorial_50.json: -------------------------------------------------------------------------------- 1 | { 2 | "num_array": [ 3 | 50, 4 | 50, 5 | 50, 6 | 50, 7 | 50, 8 | 50, 9 | 50, 10 | 50, 11 | 50, 12 | 50, 13 | 50, 14 | 50, 15 | 50 16 | ] 17 | } -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/high-availability/pdb.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: policy/v1beta1 3 | kind: PodDisruptionBudget 4 | metadata: 5 | name: metrics-server 6 | namespace: kube-system 7 | spec: 8 | minAvailable: 1 9 | selector: 10 | matchLabels: 11 | k8s-app: metrics-server 12 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/compose-app-db-reload-up.sh: -------------------------------------------------------------------------------- 1 | export ENV_FILE=$(pwd)/.env 2 | echo "Environment file:" $ENV_FILE 3 | export LOG_FILE=$(pwd)/log/compose-app-db-reload-up.log 4 | echo "Log file:" $LOG_FILE 5 | (cd .. && ./_script/compose-app-up.sh $ENV_FILE app-liquibase app-db 1>$LOG_FILE 2>&1) 6 | -------------------------------------------------------------------------------- /lib/metrics-server/readme.txt: -------------------------------------------------------------------------------- 1 | https://dev.to/docker/enable-kubernetes-metrics-server-on-docker-desktop-5434 2 | https://stackoverflow.com/questions/64598763/kubernetes-hpa-unable-to-get-metrics-for-resource-memory-no-metrics-returned 3 | https://github.com/kubernetes-sigs/metrics-server/releases 4 | 5 | kubectl top pod -A -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/user_other.go: -------------------------------------------------------------------------------- 1 | // Package pq is a pure Go Postgres driver for the database/sql package. 2 | 3 | //go:build js || android || hurd || zos 4 | // +build js android hurd zos 5 | 6 | package pq 7 | 8 | func userCurrent() (string, error) { 9 | return "", ErrCouldNotDetectUsername 10 | } 11 | -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-4930k/dbget test.sh: -------------------------------------------------------------------------------- 1 | ../ab.exe -T application/json -l -k -c 1 -n 1000000 "http://127.0.0.1:3001/app/system/entities/Currency/ALL/json" > dbget_0001_parallel.txt 2 | ../ab.exe -T application/json -l -k -c 8 -n 1000000 "http://127.0.0.1:3001/app/system/entities/Currency/ALL/json" > dbget_0008_parallel.txt -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-4930k/dbselect test.sh: -------------------------------------------------------------------------------- 1 | ../ab.exe -T application/json -l -k -c 1 -n 100000 "http://127.0.0.1:3001/app/system/entities/Currency/json" > dbselect_0001_parallel.txt 2 | ../ab.exe -T application/json -l -k -c 8 -n 100000 "http://127.0.0.1:3001/app/system/entities/Currency/json" > dbselect_0008_parallel.txt -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-7500u/dbget test.sh: -------------------------------------------------------------------------------- 1 | ../ab.exe -T application/json -l -k -c 1 -n 1000000 "http://127.0.0.1:3001/app/system/entities/Currency/ALL/json" > dbget_0001_parallel.txt 2 | ../ab.exe -T application/json -l -k -c 8 -n 1000000 "http://127.0.0.1:3001/app/system/entities/Currency/ALL/json" > dbget_0008_parallel.txt -------------------------------------------------------------------------------- /cmd/app/bench/Intel i7-7500u/dbselect test.sh: -------------------------------------------------------------------------------- 1 | ../ab.exe -T application/json -l -k -c 1 -n 100000 "http://127.0.0.1:3001/app/system/entities/Currency/json" > dbselect_0001_parallel.txt 2 | ../ab.exe -T application/json -l -k -c 8 -n 100000 "http://127.0.0.1:3001/app/system/entities/Currency/json" > dbselect_0008_parallel.txt -------------------------------------------------------------------------------- /deploy/kubernates/base/app-net-networkpolicy.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: NetworkPolicy 3 | metadata: 4 | name: app-net 5 | namespace: go-app 6 | spec: 7 | podSelector: {} 8 | egress: 9 | - {} 10 | ingress: 11 | - {} 12 | policyTypes: 13 | - Egress 14 | - Ingress 15 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/release/kustomization.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kustomize.config.k8s.io/v1beta1 2 | kind: Kustomization 3 | bases: 4 | - ../base 5 | images: 6 | - name: gcr.io/k8s-staging-metrics-server/metrics-server 7 | newName: k8s.gcr.io/metrics-server/metrics-server 8 | newTag: v0.6.1 9 | 10 | -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/compose-app-api-db-reload-up.sh: -------------------------------------------------------------------------------- 1 | export ENV_FILE=$(pwd)/.env 2 | echo "Environment file:" $ENV_FILE 3 | export LOG_FILE=$(pwd)/log/compose-app-api-db-reload-up.log 4 | echo "Log file:" $LOG_FILE 5 | (cd .. && ./_script/compose-app-up.sh $ENV_FILE app-api app-liquibase app-db 1>$LOG_FILE 2>&1) 6 | -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/compose-app-hazelcast-up.sh: -------------------------------------------------------------------------------- 1 | export ENV_FILE=$(pwd)/.env 2 | echo "Environment file:" $ENV_FILE 3 | export LOG_FILE=$(pwd)/log/compose-app-hazelcast-up.log 4 | echo "Log file:" $LOG_FILE 5 | (cd .. && ./_script/compose-app-up.sh $ENV_FILE hazelcast hazelcast-management-center 1>$LOG_FILE 2>&1) 6 | -------------------------------------------------------------------------------- /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/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.9.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of gorilla/mux authors for copyright purposes. 2 | # 3 | # Please keep the list sorted. 4 | 5 | Google LLC (https://opensource.google.com/) 6 | Kamil Kisielk 7 | Matt Silverlock 8 | Rodrigo Moraes (https://github.com/moraes) 9 | -------------------------------------------------------------------------------- /deploy/kubernates/base/app-api-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: app-api 5 | labels: 6 | tier: app-api 7 | namespace: go-app 8 | spec: 9 | type: LoadBalancer 10 | ports: 11 | - port: 3000 12 | targetPort: 8080 13 | selector: 14 | tier: app-api 15 | -------------------------------------------------------------------------------- /deploy/kubernates/base/app-db-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: app-db 5 | labels: 6 | tier: app-db 7 | namespace: go-app 8 | spec: 9 | type: NodePort 10 | ports: 11 | - port: 5432 12 | targetPort: 5432 13 | selector: 14 | tier: app-db 15 | 16 | -------------------------------------------------------------------------------- /deploy/kubernates/base/app-db-persistentvolumeclaim.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolumeClaim 3 | metadata: 4 | name: app-db-claim 5 | labels: 6 | app: app 7 | namespace: go-app 8 | spec: 9 | accessModes: 10 | - ReadWriteOnce 11 | resources: 12 | requests: 13 | storage: 100Mi 14 | -------------------------------------------------------------------------------- /lib/metrics-server/source/test/kind-ha-config.yaml: -------------------------------------------------------------------------------- 1 | kind: Cluster 2 | apiVersion: kind.x-k8s.io/v1alpha4 3 | nodes: 4 | - role: control-plane 5 | kubeadmConfigPatches: 6 | - | 7 | kind: ClusterConfiguration 8 | apiServer: 9 | extraArgs: 10 | "enable-aggregator-routing": "true" 11 | - role: worker 12 | - role: worker 13 | -------------------------------------------------------------------------------- /deploy/run/_script/docker-app-api-stop.sh: -------------------------------------------------------------------------------- 1 | echo "Current directory:" 2 | pwd 3 | 4 | echo "Go to working directory:" 5 | pushd ./../../ 6 | 7 | export APP_API_APP_NAME=$(cat ./deploy/app_api_app_name) 8 | 9 | echo Stop container $APP_API_APP_NAME ... 10 | docker stop docker-$APP_API_APP_NAME 11 | 12 | echo "Go to current directory:" 13 | popd 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/prototext/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 prototext marshals and unmarshals protocol buffer messages as the 6 | // textproto format. 7 | package prototext 8 | -------------------------------------------------------------------------------- /deploy/docker/app-liquibase.Dockerfile: -------------------------------------------------------------------------------- 1 | ## 2 | ## Deploy stage 3 | ## 4 | FROM liquibase/liquibase:4.9.1 5 | 6 | # Changelog для различных сред DEV-TEST-PROD можно встроить в сборку и переключаться через ENV переменные 7 | COPY ./db/liquibase/changelog/. /liquibase/changelog/ 8 | 9 | # DDL и DML скрипты можно встроить в сборку 10 | COPY ./db/sql /sql 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.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 | //go:build protolegacy 6 | // +build protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = true 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.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 | //go:build !protolegacy 6 | // +build !protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/ssl_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package pq 5 | 6 | // sslKeyPermissions checks the permissions on user-supplied ssl key files. 7 | // The key file should have very little access. 8 | // 9 | // libpq does not check key file permissions on Windows. 10 | func sslKeyPermissions(string) error { return nil } 11 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/testall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -eu -o pipefail 3 | 4 | # Small convenience script for running the tests with various combinations of 5 | # arch/tags. This assumes we're running on amd64 and have qemu available. 6 | 7 | go test ./... 8 | go test -tags purego ./... 9 | GOARCH=arm64 go test 10 | GOARCH=arm64 go test -tags purego 11 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /cmd/app/bin/windows/debug_local.bat: -------------------------------------------------------------------------------- 1 | SET APP_CONFIG_FILE=.\..\..\..\..\deploy\config\app.global.yaml 2 | SET APP_HTTP_LISTEN_SPEC=127.0.0.1:3001 3 | SET APP_LOG_LEVEL=DEBUG 4 | SET APP_LOG_FILE=.\log\app.log 5 | SET APP_PG_USER=postgres 6 | SET APP_PG_PASS=postgres 7 | SET APP_PG_HOST=localhost 8 | SET APP_PG_PORT=5437 9 | SET APP_PG_DBNAME=postgres 10 | 11 | .\app.exe 12 | 13 | pause -------------------------------------------------------------------------------- /cmd/app/bin/windows/info_local.bat: -------------------------------------------------------------------------------- 1 | SET APP_CONFIG_FILE=.\..\..\..\..\deploy\config\app.global.yaml 2 | SET APP_HTTP_LISTEN_SPEC=127.0.0.1:3001 3 | SET APP_LOG_LEVEL=INFO 4 | SET APP_LOG_FILE=.\log\app.log 5 | SET APP_PG_USER=postgres 6 | SET APP_PG_PASS=postgres 7 | SET APP_PG_HOST=localhost 8 | SET APP_PG_PORT=5437 9 | SET APP_PG_DBNAME=postgres 10 | 11 | .\app.exe 12 | 13 | pause -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /lib/metrics-server/source/.github/ISSUE_TEMPLATE/enhancement.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Enhancement Request 3 | about: Suggest an enhancement to the Metrics Server 4 | 5 | --- 6 | 7 | 8 | **What would you like to be added**: 9 | 10 | **Why is this needed**: 11 | 12 | 13 | /kind feature -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /deploy/kubernates/base/kustomization.yaml: -------------------------------------------------------------------------------- 1 | commonLabels: 2 | app: app 3 | variant: base 4 | resources: 5 | - app-namespase.yaml 6 | - app-net-networkpolicy.yaml 7 | - app-configmap.yaml 8 | - app-secret.yaml 9 | - app-db-persistentvolumeclaim.yaml 10 | - app-db-deployment.yaml 11 | - app-db-service.yaml 12 | - app-api-deployment.yaml 13 | - app-api-service.yaml 14 | - app-liquibase-pod.yaml -------------------------------------------------------------------------------- /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/go.uber.org/zap/checklicense.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | ERROR_COUNT=0 4 | while read -r file 5 | do 6 | case "$(head -1 "${file}")" in 7 | *"Copyright (c) "*" Uber Technologies, Inc.") 8 | # everything's cool 9 | ;; 10 | *) 11 | echo "$file is missing license header." 12 | (( ERROR_COUNT++ )) 13 | ;; 14 | esac 15 | done < <(git ls-files "*\.go") 16 | 17 | exit $ERROR_COUNT 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/base/apiservice.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: apiregistration.k8s.io/v1 3 | kind: APIService 4 | metadata: 5 | name: v1beta1.metrics.k8s.io 6 | spec: 7 | service: 8 | name: metrics-server 9 | namespace: kube-system 10 | group: metrics.k8s.io 11 | version: v1beta1 12 | insecureSkipTLSVerify: true 13 | groupPriorityMinimum: 100 14 | versionPriority: 100 15 | -------------------------------------------------------------------------------- /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 | //go:build windows && go1.9 6 | // +build windows,go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /cmd/app/bin/linux/certs/create certs.bat: -------------------------------------------------------------------------------- 1 | echo "make server cert" 2 | openssl req -new -nodes -x509 -out server.pem -keyout server.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" 3 | echo "make client cert" 4 | openssl req -new -nodes -x509 -out client.pem -keyout client.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" 5 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/xxhash_asm.go: -------------------------------------------------------------------------------- 1 | //go:build (amd64 || arm64) && !appengine && gc && !purego 2 | // +build amd64 arm64 3 | // +build !appengine 4 | // +build gc 5 | // +build !purego 6 | 7 | package xxhash 8 | 9 | // Sum64 computes the 64-bit xxHash digest of b. 10 | // 11 | //go:noescape 12 | func Sum64(b []byte) uint64 13 | 14 | //go:noescape 15 | func writeBlocks(d *Digest, b []byte) int 16 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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:build go1.12 6 | // +build go1.12 7 | 8 | package impl 9 | 10 | import "reflect" 11 | 12 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | -------------------------------------------------------------------------------- /cmd/app/bin/windows/certs/create certs.bat: -------------------------------------------------------------------------------- 1 | echo "make server cert" 2 | openssl req -new -nodes -x509 -out server.pem -keyout server.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" 3 | echo "make client cert" 4 | openssl req -new -nodes -x509 -out client.pem -keyout client.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" 5 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/notice_response.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | type NoticeResponse ErrorResponse 4 | 5 | func (*NoticeResponse) Backend() {} 6 | 7 | func (dst *NoticeResponse) Decode(src []byte) error { 8 | return (*ErrorResponse)(dst).Decode(src) 9 | } 10 | 11 | func (src *NoticeResponse) Encode(dst []byte) []byte { 12 | return append(dst, (*ErrorResponse)(src).marshalBinary('N')...) 13 | } 14 | -------------------------------------------------------------------------------- /deploy/kubernates/log/build-dev-kube.log: -------------------------------------------------------------------------------- 1 | namespace/go-app created 2 | configmap/dev-app-config created 3 | secret/dev-app-secret created 4 | service/dev-app-api created 5 | service/dev-app-db created 6 | persistentvolumeclaim/dev-app-db-claim created 7 | deployment.apps/dev-app-api created 8 | deployment.apps/dev-app-db created 9 | networkpolicy.networking.k8s.io/dev-app-net created 10 | pod/dev-app-liquibase created 11 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/test/kustomization.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kustomize.config.k8s.io/v1beta1 2 | kind: Kustomization 3 | bases: 4 | - ../base 5 | patchesJson6902: 6 | - target: 7 | group: apps 8 | version: v1 9 | kind: Deployment 10 | name: metrics-server 11 | namespace: kube-system 12 | path: patch.yaml 13 | images: 14 | - name: gcr.io/k8s-staging-metrics-server/metrics-server 15 | 16 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/test/patch.yaml: -------------------------------------------------------------------------------- 1 | - op: add 2 | path: /spec/template/spec/containers/0/args/- 3 | value: --kubelet-insecure-tls 4 | - op: add 5 | path: /spec/template/spec/containers/0/args/- 6 | value: --v=4 7 | - op: add 8 | path: /spec/template/spec/containers/0/args/- 9 | value: --logtostderr 10 | - op: add 11 | path: /spec/template/spec/containers/0/imagePullPolicy 12 | value: Never 13 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | .idea 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | tags 25 | environ 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 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 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/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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:build go1.13 6 | // +build go1.13 7 | 8 | package errors 9 | 10 | import "errors" 11 | 12 | // Is is errors.Is. 13 | func Is(err, target error) bool { return errors.Is(err, target) } 14 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | conn_config_test.go 25 | .envrc 26 | -------------------------------------------------------------------------------- /deploy/helm/app/templates/app-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: {{ include "app.fullname" . }}-secret 5 | labels: 6 | variant: {{ include "app.variant" . }} 7 | {{- include "app.labels" . | nindent 4 }} 8 | namespace: {{ include "app.namespace" . }} 9 | type: Opaque 10 | stringData: 11 | APP_PG_USER: {{ .Values.secretData.appPgUser }} 12 | APP_PG_PASS: {{ .Values.secretData.appPgPass }} -------------------------------------------------------------------------------- /deploy/run/_script/docker-app-api-drop.sh: -------------------------------------------------------------------------------- 1 | echo "Current directory:" 2 | pwd 3 | 4 | echo "Go to working directory:" 5 | pushd ./../../ 6 | 7 | export APP_API_APP_NAME=$(cat ./deploy/app_api_app_name) 8 | 9 | echo Stop container $APP_API_APP_NAME ... 10 | docker stop docker-$APP_API_APP_NAME 11 | echo Delete container $APP_API_APP_NAME ... 12 | docker rm docker-$APP_API_APP_NAME 13 | 14 | echo "Go to current directory:" 15 | popd 16 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ template "metrics-server.serviceAccountName" . }} 6 | {{- with .Values.serviceAccount.annotations }} 7 | annotations: 8 | {{- toYaml . | nindent 4 }} 9 | {{- end }} 10 | labels: 11 | {{- include "metrics-server.labels" . | nindent 4 }} 12 | {{- end -}} 13 | -------------------------------------------------------------------------------- /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 | //go:build go1.10 6 | // +build go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 12 | } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.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 protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /pkg/common/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | import "fmt" 4 | 5 | var ( 6 | version = "unset" 7 | commit = "unset" 8 | buildTime = "unset" 9 | ) 10 | 11 | func Format() string { 12 | return fmt.Sprintf("version '%s', commit '%s', build time '%s'", version, commit, buildTime) 13 | } 14 | 15 | func SetVersion(_version, _commit, _buildTime string) { 16 | version = _version 17 | commit = _commit 18 | buildTime = _buildTime 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/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 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /deploy/kubernates/overlays/dev/kustomization.yaml: -------------------------------------------------------------------------------- 1 | namePrefix: dev- 2 | commonLabels: 3 | variant: dev 4 | commonAnnotations: 5 | note: This is development 6 | resources: 7 | - ../../base 8 | images: 9 | - name: app-api 10 | newName: romapres2010/app-api 11 | newTag: 2.0.0 12 | - name: app-liquibase 13 | newName: romapres2010/app-liquibase 14 | newTag: 2.0.0 15 | patches: 16 | - app-configmap.yaml 17 | - app-secret.yaml 18 | - app-api-deployment.yaml -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ template "metrics-server.serviceAccountName" . }} 6 | {{- with .Values.serviceAccount.annotations }} 7 | annotations: 8 | {{- toYaml . | nindent 4 }} 9 | {{- end }} 10 | labels: 11 | {{- include "metrics-server.labels" . | nindent 4 }} 12 | {{- end -}} 13 | -------------------------------------------------------------------------------- /vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go: -------------------------------------------------------------------------------- 1 | package md2man 2 | 3 | import ( 4 | "github.com/russross/blackfriday/v2" 5 | ) 6 | 7 | // Render converts a markdown document into a roff formatted document. 8 | func Render(doc []byte) []byte { 9 | renderer := NewRoffRenderer() 10 | 11 | return blackfriday.Run(doc, 12 | []blackfriday.Option{blackfriday.WithRenderer(renderer), 13 | blackfriday.WithExtensions(renderer.GetExtensions())}...) 14 | } 15 | -------------------------------------------------------------------------------- /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 | //go:build generate 6 | // +build generate 7 | 8 | package windows 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 11 | -------------------------------------------------------------------------------- /vendor/gopkg.in/asn1-ber.v1/content_int.go: -------------------------------------------------------------------------------- 1 | package ber 2 | 3 | func encodeUnsignedInteger(i uint64) []byte { 4 | n := uint64Length(i) 5 | out := make([]byte, n) 6 | 7 | var j int 8 | for ; n > 0; n-- { 9 | out[j] = (byte(i >> uint((n-1)*8))) 10 | j++ 11 | } 12 | 13 | return out 14 | } 15 | 16 | func uint64Length(i uint64) (numBytes int) { 17 | numBytes = 1 18 | 19 | for i > 255 { 20 | numBytes++ 21 | i >>= 8 22 | } 23 | 24 | return 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /deploy/helm/app/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /deploy/helm/app/templates/app-db-persistentvolumeclaim.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolumeClaim 3 | metadata: 4 | name: {{ include "app.fullname" . }}-{{ .Values.appDb.tierSuffix }}-claim 5 | labels: 6 | variant: {{ include "app.variant" . }} 7 | {{- include "app.labels" . | nindent 4 }} 8 | namespace: {{ include "app.namespace" . }} 9 | spec: 10 | accessModes: 11 | - ReadWriteOnce 12 | resources: 13 | requests: 14 | storage: 100Mi 15 | -------------------------------------------------------------------------------- /deploy/docker/app-api-push.sh: -------------------------------------------------------------------------------- 1 | echo "Current directory:" 2 | pwd 3 | 4 | export LOG_FILE=$(pwd)/app-api-push.log 5 | 6 | echo "Go to working directory:" 7 | pushd ./../../ 8 | 9 | export APP_VERSION=$(cat ./deploy/version) 10 | export APP_API_APP_NAME=$(cat ./deploy/app_api_app_name) 11 | export APP_REPOSITORY=$(cat ./deploy/default_repository) 12 | 13 | docker push $APP_REPOSITORY/$APP_API_APP_NAME:$APP_VERSION 1>$LOG_FILE 2>&1 14 | 15 | echo "Go to current directory:" 16 | popd -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | *********************************************************************** 2 | * Metrics Server * 3 | *********************************************************************** 4 | Chart version: {{ .Chart.Version }} 5 | App version: {{ .Chart.AppVersion }} 6 | Image tag: {{ include "metrics-server.image" . }} 7 | *********************************************************************** 8 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /deploy/docker/app-ui.Dockerfile: -------------------------------------------------------------------------------- 1 | ## 2 | ## Build stage 3 | ## 4 | 5 | FROM gradle:7.5.1-jdk-alpine AS build 6 | 7 | WORKDIR /app 8 | 9 | COPY ./ui . 10 | 11 | RUN gradle -Pvaadin.productionMode=true bootJar 12 | 13 | ## 14 | ## Run stage 15 | ## 16 | 17 | FROM openjdk:17.0.2-slim 18 | 19 | EXPOSE 8080 20 | 21 | RUN mkdir /app 22 | 23 | COPY --from=build /app/build/libs/*.jar /app/spring-boot-application.jar 24 | 25 | ENTRYPOINT exec java $JAVA_OPTS -jar /app/spring-boot-application.jar 26 | -------------------------------------------------------------------------------- /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 | //go:build !go1.10 6 | // +build !go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | if !t.isRTL() { 12 | return true 13 | } 14 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 15 | } 16 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | *********************************************************************** 2 | * Metrics Server * 3 | *********************************************************************** 4 | Chart version: {{ .Chart.Version }} 5 | App version: {{ .Chart.AppVersion }} 6 | Image tag: {{ include "metrics-server.image" . }} 7 | *********************************************************************** 8 | -------------------------------------------------------------------------------- /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 resolveTypeOff reflect.resolveTypeOff 10 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 11 | 12 | //go:linkname makemap reflect.makemap 13 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 14 | 15 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 16 | return makemap(rtype, cap) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | vendor 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | *.pprof 27 | *.out 28 | *.log 29 | 30 | /bin 31 | cover.out 32 | cover.html 33 | -------------------------------------------------------------------------------- /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 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /deploy/kubernates/base/app-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: app-config 5 | labels: 6 | app: app 7 | namespace: go-app 8 | data: 9 | APP_CONFIG_FILE: /app/defcfg/app.global.yaml 10 | APP_HTTP_PORT: "8080" 11 | APP_HTTP_LISTEN_SPEC: 0.0.0.0:8080 12 | APP_LOG_LEVEL: ERROR 13 | APP_LOG_FILE: /app/log/app.log 14 | APP_PG_HOST: app-db 15 | APP_PG_PORT: "5432" 16 | APP_PG_DBNAME: postgres 17 | APP_PG_CHANGELOG: db.changelog-1.0_recreate_testdata.xml -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/test-ha/kustomization.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kustomize.config.k8s.io/v1beta1 2 | kind: Kustomization 3 | bases: 4 | - ../high-availability 5 | patchesJson6902: 6 | - target: 7 | group: apps 8 | version: v1 9 | kind: Deployment 10 | name: metrics-server 11 | namespace: kube-system 12 | path: patch.yaml 13 | images: 14 | - name: k8s.gcr.io/metrics-server/metrics-server 15 | newName: gcr.io/k8s-staging-metrics-server/metrics-server 16 | newTag: master 17 | -------------------------------------------------------------------------------- /deploy/docker/app-liquibase-push.sh: -------------------------------------------------------------------------------- 1 | echo "Current directory:" 2 | pwd 3 | 4 | export LOG_FILE=$(pwd)/app-liquibase-push.log 5 | 6 | echo "Go to working directory:" 7 | pushd ./../../ 8 | 9 | export APP_VERSION=$(cat ./deploy/version) 10 | export APP_LUQUIBASE_APP_NAME=$(cat ./deploy/app_liquibase_app_name) 11 | export APP_REPOSITORY=$(cat ./deploy/default_repository) 12 | 13 | 14 | docker push $APP_REPOSITORY/$APP_LUQUIBASE_APP_NAME:$APP_VERSION 1>$LOG_FILE 2>&1 15 | 16 | echo "Go to current directory:" 17 | popd -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - "1.10.x" 5 | - "1.11.x" 6 | - tip 7 | matrix: 8 | fast_finish: true 9 | allow_failures: 10 | - go: tip 11 | install: 12 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 13 | script: 14 | - go get -t -v ./... 15 | - diff -u <(echo -n) <(gofmt -d -s .) 16 | - go tool vet . 17 | - go test -v ./... 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /deploy/kubernates/overlays/dev/app-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: app-config 5 | labels: 6 | app: app 7 | namespace: go-app 8 | data: 9 | APP_CONFIG_FILE: /app/defcfg/app.global.yaml 10 | APP_HTTP_PORT: "8080" 11 | APP_HTTP_LISTEN_SPEC: 0.0.0.0:8080 12 | APP_LOG_LEVEL: DEBUG 13 | APP_LOG_FILE: /app/log/app.log 14 | APP_PG_HOST: dev-app-db 15 | APP_PG_PORT: "5432" 16 | APP_PG_DBNAME: postgres 17 | APP_PG_CHANGELOG: db.changelog-1.0_recreate_testdata.xml -------------------------------------------------------------------------------- /deploy/run/local.compose.global.config/.env: -------------------------------------------------------------------------------- 1 | APP_CONFIG_FILE=/app/defcfg/app.global.yaml 2 | APP_HTTP_PORT=8080 3 | APP_HTTP_OUT_PORT=3001 4 | APP_HTTP_UI_OUT_PORT=3001 5 | APP_HTTP_LISTEN_SPEC=0.0.0.0:8080 6 | APP_LOG_LEVEL=INFO 7 | APP_LOG_FILE=/app/log/app.log 8 | APP_PG_USER=postgres 9 | APP_PG_PASS=postgres 10 | APP_PG_HOST=app-db-host 11 | APP_PG_PORT=5432 12 | APP_PG_OUT_PORT=5437 13 | APP_PG_DBNAME=postgres 14 | APP_PG_CHANGELOG=db.changelog-1.0_recreate_testdata.xml 15 | JVM_OPTS="-Xmx2g -Xms2g -XX:MaxPermSize=2048m" -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | // SysvShmCtl performs control operations on the shared memory segment 11 | // specified by id. 12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 13 | return shmctl(id, cmd, desc) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/chown_linux.go: -------------------------------------------------------------------------------- 1 | package lumberjack 2 | 3 | import ( 4 | "os" 5 | "syscall" 6 | ) 7 | 8 | // osChown is a var so we can mock it out during tests. 9 | var osChown = os.Chown 10 | 11 | func chown(name string, info os.FileInfo) error { 12 | f, err := os.OpenFile(name, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, info.Mode()) 13 | if err != nil { 14 | return err 15 | } 16 | f.Close() 17 | stat := info.Sys().(*syscall.Stat_t) 18 | return osChown(name, int(stat.Uid), int(stat.Gid)) 19 | } 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | cmd/app/bin/windows/log 2 | cmd/app/bin/windows/httplog 3 | cmd/app/bin/windows/app.exe 4 | cmd/app/bin/windows/app.cfg 5 | cmd/app/bin/linux/app 6 | cmd/app/bin/linux/log 7 | cmd/app/bin/linux/httplog 8 | .idea/dataSources.xml 9 | .idea/vcs.xml 10 | __pycache__ 11 | .idea 12 | *.iml 13 | *.sqlite 14 | venv 15 | vendor2 16 | pl 17 | lib/liquibase 18 | *.exe 19 | ~$*.xlsx 20 | ~$*.xlsm 21 | ~$*.xlsb 22 | cmd/app/httplog/stub.txt 23 | cmd/app/httplog 24 | cmd/app/make_linux 25 | /ui/gradle/wrapper/gradle-7.5.1-bin.zip 26 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/xxhash_safe.go: -------------------------------------------------------------------------------- 1 | //go:build appengine 2 | // +build appengine 3 | 4 | // This file contains the safe implementations of otherwise unsafe-using code. 5 | 6 | package xxhash 7 | 8 | // Sum64String computes the 64-bit xxHash digest of s. 9 | func Sum64String(s string) uint64 { 10 | return Sum64([]byte(s)) 11 | } 12 | 13 | // WriteString adds more data to d. It always returns len(s), nil. 14 | func (d *Digest) WriteString(s string) (n int, err error) { 15 | return d.Write([]byte(s)) 16 | } 17 | -------------------------------------------------------------------------------- /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 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.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 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /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 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /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 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /lib/metrics-server/source/.github/workflows/release.yaml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | release: 5 | types: 6 | - published 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v2 14 | - name: Build manifests 15 | run: make release-manifests 16 | - name: Release 17 | uses: softprops/action-gh-release@v1 18 | with: 19 | files: | 20 | _output/components.yaml 21 | _output/high-availability.yaml 22 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgtype/typed_range_gen.sh: -------------------------------------------------------------------------------- 1 | erb range_type=Int4range element_type=Int4 typed_range.go.erb > int4range.go 2 | erb range_type=Int8range element_type=Int8 typed_range.go.erb > int8range.go 3 | erb range_type=Tsrange element_type=Timestamp typed_range.go.erb > tsrange.go 4 | erb range_type=Tstzrange element_type=Timestamptz typed_range.go.erb > tstzrange.go 5 | erb range_type=Daterange element_type=Date typed_range.go.erb > daterange.go 6 | erb range_type=Numrange element_type=Numeric typed_range.go.erb > numrange.go 7 | goimports -w *range.go 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/apiservice.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.apiService.create -}} 2 | apiVersion: apiregistration.k8s.io/v1 3 | kind: APIService 4 | metadata: 5 | name: v1beta1.metrics.k8s.io 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | spec: 9 | group: metrics.k8s.io 10 | groupPriorityMinimum: 100 11 | insecureSkipTLSVerify: true 12 | service: 13 | name: {{ include "metrics-server.fullname" . }} 14 | namespace: {{ .Release.Namespace }} 15 | version: v1beta1 16 | versionPriority: 100 17 | {{- end -}} 18 | -------------------------------------------------------------------------------- /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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ldap.v3/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution Guidelines 2 | 3 | We welcome contribution and improvements. 4 | 5 | ## Guiding Principles 6 | 7 | To begin with here is a draft from an email exchange: 8 | 9 | * take compatibility seriously (our semvers, compatibility with older go versions, etc) 10 | * don't tag untested code for release 11 | * beware of baking in implicit behavior based on other libraries/tools choices 12 | * be as high-fidelity as possible in plumbing through LDAP data (don't mask errors or reduce power of someone using the library) 13 | -------------------------------------------------------------------------------- /deploy/run/local.helm.global.config/dev-helm-describe.sh: -------------------------------------------------------------------------------- 1 | export HELM_VALUE_FILE=$(pwd)/value.yaml 2 | echo "Helm value file:" $HELM_VALUE_FILE 3 | 4 | export LOG_DIR=$(pwd)/log 5 | echo "Log file:" $LOG_DIR 6 | 7 | export KUBE_VARIANT=dev 8 | echo "Kube variant:" $KUBE_VARIANT 9 | 10 | export KUBE_NAMESPACE=go-app 11 | echo "Kube namespace:" $KUBE_NAMESPACE 12 | 13 | export LOG_FILE=$(echo $LOG_DIR)/$(echo $KUBE_VARIANT)-helm-describe.log 14 | echo "Log file:" $LOG_FILE 15 | 16 | (cd .. && ./_script/helm-describe.sh $KUBE_VARIANT $KUBE_NAMESPACE $LOG_DIR 1>$LOG_FILE 2>&1) 17 | -------------------------------------------------------------------------------- /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 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /deploy/kubernates/overlays/dev/app-api-deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: app-api 5 | labels: 6 | tier: app-api 7 | namespace: go-app 8 | spec: 9 | replicas: 2 10 | template: 11 | spec: 12 | terminationGracePeriodSeconds: 60 13 | containers: 14 | - name: app-api 15 | resources: 16 | limits: 17 | cpu: 4000m 18 | memory: 4000Mi 19 | restartPolicy: Always 20 | 21 | 22 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/apiservice.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.apiService.create -}} 2 | apiVersion: apiregistration.k8s.io/v1 3 | kind: APIService 4 | metadata: 5 | name: v1beta1.metrics.k8s.io 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | spec: 9 | group: metrics.k8s.io 10 | groupPriorityMinimum: 100 11 | insecureSkipTLSVerify: true 12 | service: 13 | name: {{ include "metrics-server.fullname" . }} 14 | namespace: {{ .Release.Namespace }} 15 | version: v1beta1 16 | versionPriority: 100 17 | {{- end -}} 18 | -------------------------------------------------------------------------------- /deploy/kubernates/log/delete-dev-kube.log: -------------------------------------------------------------------------------- 1 | 2 | Delete all resources 3 | pod "dev-app-api-59b6ff97b4-8dnz4" deleted 4 | pod "dev-app-api-59b6ff97b4-f75fq" deleted 5 | pod "dev-app-db-58bbb867d8-vhcfq" deleted 6 | pod "dev-app-liquibase" deleted 7 | service "dev-app-api" deleted 8 | service "dev-app-db" deleted 9 | deployment.apps "dev-app-api" deleted 10 | deployment.apps "dev-app-db" deleted 11 | configmap "dev-app-config" deleted 12 | secret "dev-app-secret" deleted 13 | Error from server (NotFound): networkpolicies.networking.k8s.io "app-net" not found 14 | namespace "go-app" deleted 15 | 16 | -------------------------------------------------------------------------------- /deploy/run/local.helm.global.config/dev-helm-unistall.sh: -------------------------------------------------------------------------------- 1 | export HELM_VALUE_FILE=$(pwd)/value.yaml 2 | echo "Helm value file:" $HELM_VALUE_FILE 3 | 4 | export LOG_DIR=$(pwd)/log 5 | echo "Log file:" $LOG_DIR 6 | 7 | export KUBE_VARIANT=dev 8 | echo "Kube variant:" $KUBE_VARIANT 9 | 10 | export KUBE_NAMESPACE=go-app 11 | echo "Kube namespace:" $KUBE_NAMESPACE 12 | 13 | export LOG_FILE=$(echo $LOG_DIR)/$(echo $KUBE_VARIANT)-helm-uninstall.log 14 | echo "Log file:" $LOG_FILE 15 | 16 | (cd .. && ./_script/helm-uninstall.sh uninstall $KUBE_VARIANT $KUBE_NAMESPACE $LOG_DIR 1>$LOG_FILE 2>&1) 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/asn1-ber.v1/util.go: -------------------------------------------------------------------------------- 1 | package ber 2 | 3 | import "io" 4 | 5 | func readByte(reader io.Reader) (byte, error) { 6 | bytes := make([]byte, 1, 1) 7 | _, err := io.ReadFull(reader, bytes) 8 | if err != nil { 9 | if err == io.EOF { 10 | return 0, io.ErrUnexpectedEOF 11 | } 12 | return 0, err 13 | } 14 | return bytes[0], nil 15 | } 16 | 17 | func isEOCPacket(p *Packet) bool { 18 | return p != nil && 19 | p.Tag == TagEOC && 20 | p.ClassType == ClassUniversal && 21 | p.TagType == TypePrimitive && 22 | len(p.ByteValue) == 0 && 23 | len(p.Children) == 0 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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:build hurd 6 | // +build hurd 7 | 8 | package unix 9 | 10 | /* 11 | #include 12 | int ioctl(int, unsigned long int, uintptr_t); 13 | */ 14 | import "C" 15 | 16 | func ioctl(fd int, req uint, arg uintptr) (err error) { 17 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) 18 | if r0 == -1 && er != nil { 19 | err = er 20 | } 21 | return 22 | } 23 | -------------------------------------------------------------------------------- /lib/metrics-server/source/cloudbuild.yaml: -------------------------------------------------------------------------------- 1 | # See https://cloud.google.com/cloud-build/docs/build-config 2 | timeout: 3600s 3 | options: 4 | substitution_option: ALLOW_LOOSE 5 | steps: 6 | - name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90' 7 | env: 8 | - GIT_TAG=$_PULL_BASE_REF 9 | - GIT_COMMIT=$_PULL_BASE_SHA 10 | args: 11 | - "-c" 12 | # GCB creates a separate home directory, so need to link to root .docker dir 13 | # in order for docker-buildx plugin to work. 14 | - "ln -s /root/.docker/cli-plugins ~/.docker/cli-plugins && make push-all" 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.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 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc 7 | 8 | package unix 9 | 10 | func init() { 11 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 12 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 13 | fcntl64Syscall = SYS_FCNTL64 14 | } 15 | -------------------------------------------------------------------------------- /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 | //go:build gccgo && linux && amd64 6 | // +build gccgo,linux,amd64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //extern gettimeofday 13 | func realGettimeofday(*Timeval, *byte) int32 14 | 15 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 16 | r := realGettimeofday(tv, nil) 17 | if r < 0 { 18 | return syscall.GetErrno() 19 | } 20 | return 0 21 | } 22 | -------------------------------------------------------------------------------- /lib/metrics-server/source/manifests/high-availability/patch.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: apps/v1 3 | kind: Deployment 4 | metadata: 5 | name: metrics-server 6 | spec: 7 | replicas: 2 8 | strategy: 9 | rollingUpdate: 10 | maxUnavailable: 1 11 | template: 12 | spec: 13 | affinity: 14 | podAntiAffinity: 15 | requiredDuringSchedulingIgnoredDuringExecution: 16 | - labelSelector: 17 | matchLabels: 18 | k8s-app: metrics-server 19 | namespaces: 20 | - kube-system 21 | topologyKey: kubernetes.io/hostname 22 | -------------------------------------------------------------------------------- /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 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /lib/metrics-server/source/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | s-urbaniak 14 | serathius 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 | //go:build windows && !race 6 | // +build windows,!race 7 | 8 | package windows 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRoleBinding 4 | metadata: 5 | name: {{ printf "system:%s" (include "metrics-server.fullname" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | roleRef: 9 | apiGroup: rbac.authorization.k8s.io 10 | kind: ClusterRole 11 | name: system:{{ template "metrics-server.fullname" . }} 12 | subjects: 13 | - kind: ServiceAccount 14 | name: {{ include "metrics-server.serviceAccountName" . }} 15 | namespace: {{ .Release.Namespace }} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | // +build linux 7 | // +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 8 | 9 | package unix 10 | 11 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 12 | // values. 13 | 14 | //sys Alarm(seconds uint) (remaining uint, err error) 15 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/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 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/clusterrolebinding-auth-delegator.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRoleBinding 4 | metadata: 5 | name: {{ printf "%s:system:auth-delegator" (include "metrics-server.fullname" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | roleRef: 9 | apiGroup: rbac.authorization.k8s.io 10 | kind: ClusterRole 11 | name: system:auth-delegator 12 | subjects: 13 | - kind: ServiceAccount 14 | name: {{ include "metrics-server.serviceAccountName" . }} 15 | namespace: {{ .Release.Namespace }} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/sync.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Sync struct{} 8 | 9 | func (*Sync) Frontend() {} 10 | 11 | func (dst *Sync) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "Sync", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *Sync) Encode(dst []byte) []byte { 20 | return append(dst, 'S', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *Sync) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "Sync", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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:build 386 && hurd 6 | // +build 386,hurd 7 | 8 | package unix 9 | 10 | const ( 11 | TIOCGETA = 0x62251713 12 | ) 13 | 14 | type Winsize struct { 15 | Row uint16 16 | Col uint16 17 | Xpixel uint16 18 | Ypixel uint16 19 | } 20 | 21 | type Termios struct { 22 | Iflag uint32 23 | Oflag uint32 24 | Cflag uint32 25 | Lflag uint32 26 | Cc [20]uint8 27 | Ispeed int32 28 | Ospeed int32 29 | } 30 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/rolebinding.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: RoleBinding 4 | metadata: 5 | name: {{ printf "%s-auth-reader" (include "metrics-server.fullname" .) }} 6 | namespace: kube-system 7 | labels: 8 | {{- include "metrics-server.labels" . | nindent 4 }} 9 | roleRef: 10 | apiGroup: rbac.authorization.k8s.io 11 | kind: Role 12 | name: extension-apiserver-authentication-reader 13 | subjects: 14 | - kind: ServiceAccount 15 | name: {{ include "metrics-server.serviceAccountName" . }} 16 | namespace: {{ .Release.Namespace }} 17 | {{- end -}} 18 | -------------------------------------------------------------------------------- /lib/metrics-server/source/Dockerfile: -------------------------------------------------------------------------------- 1 | # Update the base image in Makefile when updating golang version. This has to 2 | # be pre-pulled in order to work on GCB. 3 | ARG ARCH 4 | FROM golang:1.17.6 as build 5 | 6 | WORKDIR /go/src/sigs.k8s.io/metrics-server 7 | COPY go.mod . 8 | COPY go.sum . 9 | RUN go mod download 10 | 11 | COPY pkg pkg 12 | COPY cmd cmd 13 | COPY Makefile Makefile 14 | 15 | ARG ARCH 16 | ARG GIT_COMMIT 17 | ARG GIT_TAG 18 | RUN make metrics-server 19 | 20 | FROM gcr.io/distroless/static:latest-$ARCH 21 | COPY --from=build /go/src/sigs.k8s.io/metrics-server/metrics-server / 22 | USER 65534 23 | ENTRYPOINT ["/metrics-server"] 24 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/doc.go: -------------------------------------------------------------------------------- 1 | // Package sqlx provides general purpose extensions to database/sql. 2 | // 3 | // It is intended to seamlessly wrap database/sql and provide convenience 4 | // methods which are useful in the development of database driven applications. 5 | // None of the underlying database/sql methods are changed. Instead all extended 6 | // behavior is implemented through new methods defined on wrapper types. 7 | // 8 | // Additions include scanning into structs, named query support, rebinding 9 | // queries for different drivers, convenient shorthands for common error handling 10 | // and more. 11 | // 12 | package sqlx 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build protoreflect 7 | // +build protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = false 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/flush.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Flush struct{} 8 | 9 | func (*Flush) Frontend() {} 10 | 11 | func (dst *Flush) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "Flush", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *Flush) Encode(dst []byte) []byte { 20 | return append(dst, 'H', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *Flush) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "Flush", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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:build !purego && !appengine 6 | // +build !purego,!appengine 7 | 8 | package impl 9 | 10 | // When using unsafe pointers, we can just treat enum values as int32s. 11 | 12 | var ( 13 | coderEnumNoZero = coderInt32NoZero 14 | coderEnum = coderInt32 15 | coderEnumPtr = coderInt32Ptr 16 | coderEnumSlice = coderInt32Slice 17 | coderEnumPackedSlice = coderInt32PackedSlice 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/no_data.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type NoData struct{} 8 | 9 | func (*NoData) Backend() {} 10 | 11 | func (dst *NoData) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "NoData", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *NoData) Encode(dst []byte) []byte { 20 | return append(dst, 'n', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *NoData) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "NoData", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 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 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + itoa(-val) 13 | } 14 | var buf [32]byte // big enough for int64 15 | i := len(buf) - 1 16 | for val >= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/clusterrolebinding-auth-delegator.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRoleBinding 4 | metadata: 5 | name: {{ printf "%s:system:auth-delegator" (include "metrics-server.fullname" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | roleRef: 9 | apiGroup: rbac.authorization.k8s.io 10 | kind: ClusterRole 11 | name: system:auth-delegator 12 | subjects: 13 | - kind: ServiceAccount 14 | name: {{ include "metrics-server.serviceAccountName" . }} 15 | namespace: {{ .Release.Namespace }} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRoleBinding 4 | metadata: 5 | name: {{ printf "system:%s" (include "metrics-server.fullname" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | roleRef: 9 | apiGroup: rbac.authorization.k8s.io 10 | kind: ClusterRole 11 | name: system:{{ template "metrics-server.fullname" . }} 12 | subjects: 13 | - kind: ServiceAccount 14 | name: {{ include "metrics-server.serviceAccountName" . }} 15 | namespace: {{ .Release.Namespace }} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build !protoreflect 7 | // +build !protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = true 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return m.ProtoMethods() 20 | } 21 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/rolebinding.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: RoleBinding 4 | metadata: 5 | name: {{ printf "%s-auth-reader" (include "metrics-server.fullname" .) }} 6 | namespace: kube-system 7 | labels: 8 | {{- include "metrics-server.labels" . | nindent 4 }} 9 | roleRef: 10 | apiGroup: rbac.authorization.k8s.io 11 | kind: Role 12 | name: extension-apiserver-authentication-reader 13 | subjects: 14 | - kind: ServiceAccount 15 | name: {{ include "metrics-server.serviceAccountName" . }} 16 | namespace: {{ .Release.Namespace }} 17 | {{- end -}} 18 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_118.go: -------------------------------------------------------------------------------- 1 | //+build !go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | return &UnsafeMapIterator{ 17 | hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)), 18 | pKeyRType: type2.pKeyRType, 19 | pElemRType: type2.pElemRType, 20 | } 21 | } -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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:build linux 6 | // +build linux 7 | 8 | package unix 9 | 10 | import "runtime" 11 | 12 | // SysvShmCtl performs control operations on the shared memory segment 13 | // specified by id. 14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 15 | if runtime.GOARCH == "arm" || 16 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 17 | cmd |= ipc_64 18 | } 19 | 20 | return shmctl(id, cmd, desc) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/map_entry.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/copy_done.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type CopyDone struct { 8 | } 9 | 10 | func (*CopyDone) Backend() {} 11 | 12 | func (dst *CopyDone) Decode(src []byte) error { 13 | if len(src) != 0 { 14 | return &invalidMessageLenErr{messageType: "CopyDone", expectedLen: 0, actualLen: len(src)} 15 | } 16 | 17 | return nil 18 | } 19 | 20 | func (src *CopyDone) Encode(dst []byte) []byte { 21 | return append(dst, 'c', 0, 0, 0, 4) 22 | } 23 | 24 | func (src *CopyDone) MarshalJSON() ([]byte, error) { 25 | return json.Marshal(struct { 26 | Type string 27 | }{ 28 | Type: "CopyDone", 29 | }) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/terminate.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Terminate struct{} 8 | 9 | func (*Terminate) Frontend() {} 10 | 11 | func (dst *Terminate) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "Terminate", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *Terminate) Encode(dst []byte) []byte { 20 | return append(dst, 'X', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *Terminate) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "Terminate", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/uuid.go: -------------------------------------------------------------------------------- 1 | package pq 2 | 3 | import ( 4 | "encoding/hex" 5 | "fmt" 6 | ) 7 | 8 | // decodeUUIDBinary interprets the binary format of a uuid, returning it in text format. 9 | func decodeUUIDBinary(src []byte) ([]byte, error) { 10 | if len(src) != 16 { 11 | return nil, fmt.Errorf("pq: unable to decode uuid; bad length: %d", len(src)) 12 | } 13 | 14 | dst := make([]byte, 36) 15 | dst[8], dst[13], dst[18], dst[23] = '-', '-', '-', '-' 16 | hex.Encode(dst[0:], src[0:4]) 17 | hex.Encode(dst[9:], src[4:6]) 18 | hex.Encode(dst[14:], src[6:8]) 19 | hex.Encode(dst[19:], src[8:10]) 20 | hex.Encode(dst[24:], src[10:16]) 21 | 22 | return dst, nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/sort.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import "unicode" 4 | 5 | // lexicographicLess compares strings alphabetically considering case. 6 | func lexicographicLess(i, j string) bool { 7 | iRunes := []rune(i) 8 | jRunes := []rune(j) 9 | 10 | lenShared := len(iRunes) 11 | if lenShared > len(jRunes) { 12 | lenShared = len(jRunes) 13 | } 14 | 15 | for index := 0; index < lenShared; index++ { 16 | ir := iRunes[index] 17 | jr := jRunes[index] 18 | 19 | if lir, ljr := unicode.ToLower(ir), unicode.ToLower(jr); lir != ljr { 20 | return lir < ljr 21 | } 22 | 23 | if ir != jr { 24 | return ir < jr 25 | } 26 | } 27 | 28 | return i < j 29 | } 30 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /lib/metrics-server/source/scripts/boilerplate.go.txt: -------------------------------------------------------------------------------- 1 | // Copyright The Kubernetes Authors. 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/github.com/modern-go/reflect2/go_above_118.go: -------------------------------------------------------------------------------- 1 | //+build go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | var it hiter 17 | mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) 18 | return &UnsafeMapIterator{ 19 | hiter: &it, 20 | pKeyRType: type2.pKeyRType, 21 | pElemRType: type2.pElemRType, 22 | } 23 | } -------------------------------------------------------------------------------- /vendor/gopkg.in/ldap.v3/debug.go: -------------------------------------------------------------------------------- 1 | package ldap 2 | 3 | import ( 4 | "log" 5 | 6 | ber "gopkg.in/asn1-ber.v1" 7 | ) 8 | 9 | // debugging type 10 | // - has a Printf method to write the debug output 11 | type debugging bool 12 | 13 | // Enable controls debugging mode. 14 | func (debug *debugging) Enable(b bool) { 15 | *debug = debugging(b) 16 | } 17 | 18 | // Printf writes debug output. 19 | func (debug debugging) Printf(format string, args ...interface{}) { 20 | if debug { 21 | log.Printf(format, args...) 22 | } 23 | } 24 | 25 | // PrintPacket dumps a packet. 26 | func (debug debugging) PrintPacket(packet *ber.Packet) { 27 | if debug { 28 | ber.PrintPacket(packet) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "metrics-server.fullname" . }} 5 | {{- with .Values.service.annotations }} 6 | annotations: 7 | {{- toYaml . | nindent 4 }} 8 | {{- end }} 9 | labels: 10 | {{- include "metrics-server.labels" . | nindent 4 }} 11 | {{- with .Values.service.labels -}} 12 | {{- toYaml . | nindent 4 }} 13 | {{- end }} 14 | spec: 15 | type: {{ .Values.service.type }} 16 | ports: 17 | - name: https 18 | port: {{ .Values.service.port }} 19 | protocol: TCP 20 | targetPort: https 21 | selector: 22 | {{- include "metrics-server.selectorLabels" . | nindent 4 }} 23 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/bind_complete.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type BindComplete struct{} 8 | 9 | func (*BindComplete) Backend() {} 10 | 11 | func (dst *BindComplete) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "BindComplete", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *BindComplete) Encode(dst []byte) []byte { 20 | return append(dst, '2', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *BindComplete) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "BindComplete", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/close_complete.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type CloseComplete struct{} 8 | 9 | func (*CloseComplete) Backend() {} 10 | 11 | func (dst *CloseComplete) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "CloseComplete", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *CloseComplete) Encode(dst []byte) []byte { 20 | return append(dst, '3', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *CloseComplete) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "CloseComplete", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/parse_complete.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type ParseComplete struct{} 8 | 9 | func (*ParseComplete) Backend() {} 10 | 11 | func (dst *ParseComplete) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "ParseComplete", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *ParseComplete) Encode(dst []byte) []byte { 20 | return append(dst, '1', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *ParseComplete) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "ParseComplete", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/psp.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.pspEnabled }} 2 | apiVersion: policy/v1beta1 3 | kind: PodSecurityPolicy 4 | metadata: 5 | name: {{ printf "privileged-%s" (include "metrics-server.fullname" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | spec: 9 | allowedCapabilities: 10 | - '*' 11 | fsGroup: 12 | rule: RunAsAny 13 | privileged: true 14 | runAsUser: 15 | rule: RunAsAny 16 | seLinux: 17 | rule: RunAsAny 18 | supplementalGroups: 19 | rule: RunAsAny 20 | volumes: 21 | - '*' 22 | hostPID: true 23 | hostIPC: true 24 | hostNetwork: true 25 | hostPorts: 26 | - min: 1 27 | max: 65536 28 | {{- end }} 29 | -------------------------------------------------------------------------------- /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/json-iterator/go/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [[projects]] 11 | name = "github.com/modern-go/reflect2" 12 | packages = ["."] 13 | revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" 14 | version = "1.0.1" 15 | 16 | [solve-meta] 17 | analyzer-name = "dep" 18 | analyzer-version = 1 19 | inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" 20 | solver-name = "gps-cdcl" 21 | solver-version = 1 22 | -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/user_posix.go: -------------------------------------------------------------------------------- 1 | // Package pq is a pure Go Postgres driver for the database/sql package. 2 | 3 | //go:build aix || darwin || dragonfly || freebsd || (linux && !android) || nacl || netbsd || openbsd || plan9 || solaris || rumprun || illumos 4 | // +build aix darwin dragonfly freebsd linux,!android nacl netbsd openbsd plan9 solaris rumprun illumos 5 | 6 | package pq 7 | 8 | import ( 9 | "os" 10 | "os/user" 11 | ) 12 | 13 | func userCurrent() (string, error) { 14 | u, err := user.Current() 15 | if err == nil { 16 | return u.Username, nil 17 | } 18 | 19 | name := os.Getenv("USER") 20 | if name != "" { 21 | return name, nil 22 | } 23 | 24 | return "", ErrCouldNotDetectUsername 25 | } 26 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/clusterrole-aggregated-reader.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | name: {{ printf "system:%s-aggregated-reader" (include "metrics-server.name" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | rbac.authorization.k8s.io/aggregate-to-admin: "true" 9 | rbac.authorization.k8s.io/aggregate-to-edit: "true" 10 | rbac.authorization.k8s.io/aggregate-to-view: "true" 11 | rules: 12 | - apiGroups: 13 | - metrics.k8s.io 14 | resources: 15 | - pods 16 | - nodes 17 | verbs: 18 | - get 19 | - list 20 | - watch 21 | {{- end -}} 22 | -------------------------------------------------------------------------------- /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 | //go:build linux && gc && 386 6 | // +build linux,gc,386 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 18 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "metrics-server.fullname" . }} 5 | {{- with .Values.service.annotations }} 6 | annotations: 7 | {{- toYaml . | nindent 4 }} 8 | {{- end }} 9 | labels: 10 | {{- include "metrics-server.labels" . | nindent 4 }} 11 | {{- with .Values.service.labels -}} 12 | {{- toYaml . | nindent 4 }} 13 | {{- end }} 14 | spec: 15 | type: {{ .Values.service.type }} 16 | ports: 17 | - name: https 18 | port: {{ .Values.service.port }} 19 | protocol: TCP 20 | targetPort: https 21 | selector: 22 | {{- include "metrics-server.selectorLabels" . | nindent 4 }} 23 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/portal_suspended.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type PortalSuspended struct{} 8 | 9 | func (*PortalSuspended) Backend() {} 10 | 11 | func (dst *PortalSuspended) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "PortalSuspended", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *PortalSuspended) Encode(dst []byte) []byte { 20 | return append(dst, 's', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *PortalSuspended) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "PortalSuspended", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/enum.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 impl 6 | 7 | import ( 8 | "reflect" 9 | 10 | "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | type EnumInfo struct { 14 | GoReflectType reflect.Type // int32 kind 15 | Desc protoreflect.EnumDescriptor 16 | } 17 | 18 | func (t *EnumInfo) New(n protoreflect.EnumNumber) protoreflect.Enum { 19 | return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum) 20 | } 21 | func (t *EnumInfo) Descriptor() protoreflect.EnumDescriptor { return t.Desc } 22 | -------------------------------------------------------------------------------- /deploy/docker/app-ui-build.sh: -------------------------------------------------------------------------------- 1 | echo "Current directory:" 2 | pwd 3 | 4 | export LOG_FILE=$(pwd)/app-ui-build.log 5 | 6 | echo "Go to working directory:" 7 | pushd ./../../ 8 | 9 | export APP_VERSION=$(cat ./deploy/version) 10 | export APP_UI_APP_NAME=$(cat ./deploy/app_ui_app_name) 11 | export APP_REPOSITORY=$(cat ./deploy/default_repository) 12 | export APP_BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S') 13 | export APP_COMMIT=$(git rev-parse --short HEAD) 14 | 15 | docker build --build-arg APP_VERSION=$APP_VERSION --build-arg APP_BUILD_TIME=$APP_BUILD_TIME --build-arg APP_COMMIT=$APP_COMMIT -t $APP_REPOSITORY/$APP_UI_APP_NAME:$APP_VERSION -f ./deploy/docker/app-ui.Dockerfile . 1>$LOG_FILE 2>&1 16 | 17 | echo "Go to current directory:" 18 | popd -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/psp.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.pspEnabled }} 2 | apiVersion: policy/v1beta1 3 | kind: PodSecurityPolicy 4 | metadata: 5 | name: {{ printf "privileged-%s" (include "metrics-server.fullname" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | spec: 9 | allowedCapabilities: 10 | - '*' 11 | fsGroup: 12 | rule: RunAsAny 13 | privileged: true 14 | runAsUser: 15 | rule: RunAsAny 16 | seLinux: 17 | rule: RunAsAny 18 | supplementalGroups: 19 | rule: RunAsAny 20 | volumes: 21 | - '*' 22 | hostPID: true 23 | hostIPC: true 24 | hostNetwork: true 25 | hostPorts: 26 | - min: 1 27 | max: 65536 28 | {{- end }} 29 | -------------------------------------------------------------------------------- /deploy/helm/app/templates/app-db-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "app.fullname" . }}-{{ .Values.appDb.tierSuffix }} 5 | labels: 6 | variant: {{ include "app.variant" . }} 7 | tier: {{ include "app.name" . }}-{{ .Values.appDb.tierSuffix }} 8 | {{- include "app.labels" . | nindent 4 }} 9 | namespace: {{ include "app.namespace" . }} 10 | spec: 11 | type: {{ .Values.appDb.service.type }} 12 | ports: 13 | - port: {{ .Values.appDb.service.port }} 14 | targetPort: pgport 15 | protocol: TCP 16 | name: pgport 17 | selector: 18 | tier: {{ include "app.name" . }}-{{ .Values.appDb.tierSuffix }} 19 | {{- include "app.selectorLabels" . | nindent 4 }} 20 | 21 | -------------------------------------------------------------------------------- /lib/metrics-server/source/.golangci.yml: -------------------------------------------------------------------------------- 1 | run: 2 | deadline: 2m 3 | 4 | linters: 5 | disable-all: true 6 | enable: 7 | - bodyclose 8 | - deadcode 9 | - depguard 10 | - dogsled 11 | - dupl 12 | - errcheck 13 | - exportloopref 14 | - exhaustive 15 | - gocritic 16 | - gocyclo 17 | - gofmt 18 | - goimports 19 | - goprintffuncname 20 | - gosimple 21 | - govet 22 | - ineffassign 23 | - misspell 24 | - nakedret 25 | - nolintlint 26 | - rowserrcheck 27 | - structcheck 28 | - typecheck 29 | - unconvert 30 | - unused 31 | - varcheck 32 | - whitespace 33 | 34 | linters-settings: 35 | goimports: 36 | local-prefixes: sigs.k8s.io/metrics-server 37 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/clusterrole-aggregated-reader.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | name: {{ printf "system:%s-aggregated-reader" (include "metrics-server.name" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | rbac.authorization.k8s.io/aggregate-to-admin: "true" 9 | rbac.authorization.k8s.io/aggregate-to-edit: "true" 10 | rbac.authorization.k8s.io/aggregate-to-view: "true" 11 | rules: 12 | - apiGroups: 13 | - metrics.k8s.io 14 | resources: 15 | - pods 16 | - nodes 17 | verbs: 18 | - get 19 | - list 20 | - watch 21 | {{- end -}} 22 | -------------------------------------------------------------------------------- /deploy/docker/app-api-build.sh: -------------------------------------------------------------------------------- 1 | echo "Current directory:" 2 | pwd 3 | 4 | export LOG_FILE=$(pwd)/app-api-build.log 5 | 6 | echo "Go to working directory:" 7 | pushd ./../../ 8 | 9 | export APP_VERSION=$(cat ./deploy/version) 10 | export APP_API_APP_NAME=$(cat ./deploy/app_api_app_name) 11 | export APP_REPOSITORY=$(cat ./deploy/default_repository) 12 | export APP_BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S') 13 | export APP_COMMIT=$(git rev-parse --short HEAD) 14 | 15 | docker build --build-arg APP_VERSION=$APP_VERSION --build-arg APP_BUILD_TIME=$APP_BUILD_TIME --build-arg APP_COMMIT=$APP_COMMIT -t $APP_REPOSITORY/$APP_API_APP_NAME:$APP_VERSION -f ./deploy/docker/app-api.Dockerfile . 1>$LOG_FILE 2>&1 16 | 17 | echo "Go to current directory:" 18 | popd -------------------------------------------------------------------------------- /deploy/helm/app/templates/app-secret-cfg.yaml: -------------------------------------------------------------------------------- 1 | #https://helm.sh/docs/chart_template_guide/accessing_files/#lines 2 | apiVersion: v1 3 | kind: Secret 4 | metadata: 5 | name: {{ include "app.fullname" . }}-secret-cfg 6 | labels: 7 | variant: {{ include "app.variant" . }} 8 | {{- include "app.labels" . | nindent 4 }} 9 | namespace: {{ include "app.namespace" . }} 10 | type: Opaque 11 | stringData: 12 | {{ range .Files.Lines "files/app-secret.cfg" }}{{ . | indent 2 }}{{ end }} 13 | {{/*data:*/}} 14 | {{/* {{ (.Files.Glob "files/app-secret.cfg").AsSecrets | indent 2 }}*/}} 15 | {{/* {{ (.Files.Glob "files/app-secret.cfg").AsConfig | indent 2 }}*/}} 16 | {{/* token: |-*/}} 17 | {{/* {{ .Files.Get "files/app-secret.cfg" | indent 2 }}*/}} 18 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/pdb.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.podDisruptionBudget.enabled -}} 2 | apiVersion: {{ include "metrics-server.pdb.apiVersion" . }} 3 | kind: PodDisruptionBudget 4 | metadata: 5 | name: {{ include "metrics-server.fullname" . }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | spec: 9 | {{- if .Values.podDisruptionBudget.minAvailable }} 10 | minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} 11 | {{- end }} 12 | {{- if .Values.podDisruptionBudget.maxUnavailable }} 13 | maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} 14 | {{- end }} 15 | selector: 16 | matchLabels: 17 | {{- include "metrics-server.selectorLabels" . | nindent 6 }} 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /deploy/helm/app/templates/app-api-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "app.fullname" . }}-{{ .Values.appApi.tierSuffix }} 5 | labels: 6 | variant: {{ include "app.variant" . }} 7 | tier: {{ include "app.name" . }}-{{ .Values.appApi.tierSuffix }} 8 | {{- include "app.labels" . | nindent 4 }} 9 | namespace: {{ include "app.namespace" . }} 10 | spec: 11 | type: {{ .Values.appApi.service.type }} 12 | ports: 13 | - port: {{ .Values.appApi.service.port }} 14 | targetPort: apiport 15 | protocol: TCP 16 | name: apiport 17 | selector: 18 | tier: {{ include "app.name" . }}-{{ .Values.appApi.tierSuffix }} 19 | {{- include "app.selectorLabels" . | nindent 4 }} 20 | 21 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.x 5 | - tip 6 | 7 | # Derived from https://github.com/lib/pq/blob/master/.travis.yml 8 | before_install: 9 | - ./travis/before_install.bash 10 | 11 | env: 12 | global: 13 | - PGX_TEST_DATABASE=postgres://pgx_md5:secret@127.0.0.1/pgx_test 14 | matrix: 15 | - CRATEVERSION=2.1 16 | - PGVERSION=12 17 | - PGVERSION=11 18 | - PGVERSION=10 19 | - PGVERSION=9.6 20 | - PGVERSION=9.5 21 | - PGVERSION=9.4 22 | - PGVERSION=9.3 23 | 24 | before_script: 25 | - ./travis/before_script.bash 26 | 27 | install: 28 | - ./travis/install.bash 29 | 30 | script: 31 | - ./travis/script.bash 32 | 33 | matrix: 34 | allow_failures: 35 | - go: tip 36 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/empty_query_response.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type EmptyQueryResponse struct{} 8 | 9 | func (*EmptyQueryResponse) Backend() {} 10 | 11 | func (dst *EmptyQueryResponse) Decode(src []byte) error { 12 | if len(src) != 0 { 13 | return &invalidMessageLenErr{messageType: "EmptyQueryResponse", expectedLen: 0, actualLen: len(src)} 14 | } 15 | 16 | return nil 17 | } 18 | 19 | func (src *EmptyQueryResponse) Encode(dst []byte) []byte { 20 | return append(dst, 'I', 0, 0, 0, 4) 21 | } 22 | 23 | func (src *EmptyQueryResponse) MarshalJSON() ([]byte, error) { 24 | return json.Marshal(struct { 25 | Type string 26 | }{ 27 | Type: "EmptyQueryResponse", 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_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 | //go:build linux && gccgo && arm 6 | // +build linux,gccgo,arm 7 | 8 | package unix 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 16 | var newoffset int64 17 | offsetLow := uint32(offset & 0xffffffff) 18 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 19 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 20 | return newoffset, err 21 | } 22 | -------------------------------------------------------------------------------- /deploy/run/local.helm.global.config/dev-helm-install.sh: -------------------------------------------------------------------------------- 1 | export HELM_VALUE_FILE=$(pwd)/value.yaml 2 | echo "Helm value file:" $HELM_VALUE_FILE 3 | 4 | export LOG_DIR=$(pwd)/log 5 | echo "Log file:" $LOG_DIR 6 | 7 | export KUBE_VARIANT=dev 8 | echo "Kube variant:" $KUBE_VARIANT 9 | 10 | export KUBE_NAMESPACE=go-app 11 | echo "Kube namespace:" $KUBE_NAMESPACE 12 | 13 | export LOG_FILE=$(echo $LOG_DIR)/$(echo $KUBE_VARIANT)-helm-install.log 14 | echo "Log file:" $LOG_FILE 15 | 16 | export HELM_DIR=../helm/app 17 | echo "HELM directory:" $HELM_DIR 18 | 19 | export HELM_VALUES=$(pwd)/values.yaml 20 | echo "HELM values:" $HELM_VALUES 21 | 22 | (cd .. && ./_script/helm-install.sh install $KUBE_VARIANT $KUBE_NAMESPACE $LOG_DIR $HELM_DIR $HELM_VALUES 1>$LOG_FILE 2>&1) 23 | -------------------------------------------------------------------------------- /deploy/run/local.helm.global.config/dev-helm-upgrade.sh: -------------------------------------------------------------------------------- 1 | export HELM_VALUE_FILE=$(pwd)/value.yaml 2 | echo "Helm value file:" $HELM_VALUE_FILE 3 | 4 | export LOG_DIR=$(pwd)/log 5 | echo "Log file:" $LOG_DIR 6 | 7 | export KUBE_VARIANT=dev 8 | echo "Kube variant:" $KUBE_VARIANT 9 | 10 | export KUBE_NAMESPACE=go-app 11 | echo "Kube namespace:" $KUBE_NAMESPACE 12 | 13 | export LOG_FILE=$(echo $LOG_DIR)/$(echo $KUBE_VARIANT)-helm-upgrade.log 14 | echo "Log file:" $LOG_FILE 15 | 16 | export HELM_DIR=../helm/app 17 | echo "HELM directory:" $HELM_DIR 18 | 19 | export HELM_VALUES=$(pwd)/values.yaml 20 | echo "HELM values:" $HELM_VALUES 21 | 22 | (cd .. && ./_script/helm-install.sh upgrade $KUBE_VARIANT $KUBE_NAMESPACE $LOG_DIR $HELM_DIR $HELM_VALUES 1>$LOG_FILE 2>&1) 23 | 24 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/templates/pdb.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.podDisruptionBudget.enabled -}} 2 | apiVersion: {{ include "metrics-server.pdb.apiVersion" . }} 3 | kind: PodDisruptionBudget 4 | metadata: 5 | name: {{ include "metrics-server.fullname" . }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | spec: 9 | {{- if .Values.podDisruptionBudget.minAvailable }} 10 | minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} 11 | {{- end }} 12 | {{- if .Values.podDisruptionBudget.maxUnavailable }} 13 | maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} 14 | {{- end }} 15 | selector: 16 | matchLabels: 17 | {{- include "metrics-server.selectorLabels" . | nindent 6 }} 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ldap.v3/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - "1.5.x" 5 | - "1.6.x" 6 | - "1.7.x" 7 | - "1.8.x" 8 | - "1.9.x" 9 | - "1.10.x" 10 | - "1.11.x" 11 | - "1.12.x" 12 | - "1.13.x" 13 | - tip 14 | 15 | git: 16 | depth: 1 17 | 18 | matrix: 19 | fast_finish: true 20 | allow_failures: 21 | - go: tip 22 | go_import_path: gopkg.in/ldap.v3 23 | install: 24 | - go get gopkg.in/asn1-ber.v1 25 | - go get code.google.com/p/go.tools/cmd/cover || go get golang.org/x/tools/cmd/cover 26 | - go get github.com/golang/lint/golint || go get golang.org/x/lint/golint || true 27 | - go build -v ./... 28 | script: 29 | - make test 30 | - make fmt 31 | - make vet 32 | - make lint 33 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/.travis.yml: -------------------------------------------------------------------------------- 1 | # vim: ft=yaml sw=2 ts=2 2 | 3 | language: go 4 | 5 | # enable database services 6 | services: 7 | - mysql 8 | - postgresql 9 | 10 | # create test database 11 | before_install: 12 | - mysql -e 'CREATE DATABASE IF NOT EXISTS sqlxtest;' 13 | - psql -c 'create database sqlxtest;' -U postgres 14 | - go get github.com/mattn/goveralls 15 | - export SQLX_MYSQL_DSN="travis:@/sqlxtest?parseTime=true" 16 | - export SQLX_POSTGRES_DSN="postgres://postgres:@localhost/sqlxtest?sslmode=disable" 17 | - export SQLX_SQLITE_DSN="$HOME/sqlxtest.db" 18 | 19 | # go versions to test 20 | go: 21 | - "1.15.x" 22 | - "1.16.x" 23 | 24 | # run tests w/ coverage 25 | script: 26 | - travis_retry $GOPATH/bin/goveralls -service=travis-ci 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/precis/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 | // Package precis contains types and functions for the preparation, 6 | // enforcement, and comparison of internationalized strings ("PRECIS") as 7 | // defined in RFC 8264. It also contains several pre-defined profiles for 8 | // passwords, nicknames, and usernames as defined in RFC 8265 and RFC 8266. 9 | // 10 | // BE ADVISED: This package is under construction and the API may change in 11 | // backwards incompatible ways and without notice. 12 | package precis // import "golang.org/x/text/secure/precis" 13 | 14 | //go:generate go run gen.go gen_trieval.go 15 | -------------------------------------------------------------------------------- /deploy/docker/app-liquibase-build.sh: -------------------------------------------------------------------------------- 1 | echo "Current directory:" 2 | pwd 3 | 4 | export LOG_FILE=$(pwd)/app-liquibase-build.log 5 | 6 | echo "Go to working directory:" 7 | pushd ./../../ 8 | 9 | export APP_VERSION=$(cat ./deploy/version) 10 | export APP_LUQUIBASE_APP_NAME=$(cat ./deploy/app_liquibase_app_name) 11 | export APP_REPOSITORY=$(cat ./deploy/default_repository) 12 | export APP_BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S') 13 | export APP_COMMIT=$(git rev-parse --short HEAD) 14 | 15 | docker build --build-arg APP_VERSION=$APP_VERSION --build-arg APP_BUILD_TIME=$APP_BUILD_TIME --build-arg APP_COMMIT=$APP_COMMIT -t $APP_REPOSITORY/$APP_LUQUIBASE_APP_NAME:$APP_VERSION -f ./deploy/docker/app-liquibase.Dockerfile . 1>$LOG_FILE 2>&1 16 | 17 | echo "Go to current directory:" 18 | popd -------------------------------------------------------------------------------- /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 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos 7 | 8 | package unix 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /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 | //go:build amd64 && solaris 6 | // +build amd64,solaris 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: usec} 16 | } 17 | 18 | func (iov *Iovec) SetLen(length int) { 19 | iov.Len = uint64(length) 20 | } 21 | 22 | func (msghdr *Msghdr) SetIovlen(length int) { 23 | msghdr.Iovlen = int32(length) 24 | } 25 | 26 | func (cmsg *Cmsghdr) SetLen(length int) { 27 | cmsg.Len = uint32(length) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.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 | //go:build windows && race 6 | // +build windows,race 7 | 8 | package windows 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/reflectx/README.md: -------------------------------------------------------------------------------- 1 | # reflectx 2 | 3 | The sqlx package has special reflect needs. In particular, it needs to: 4 | 5 | * be able to map a name to a field 6 | * understand embedded structs 7 | * understand mapping names to fields by a particular tag 8 | * user specified name -> field mapping functions 9 | 10 | These behaviors mimic the behaviors by the standard library marshallers and also the 11 | behavior of standard Go accessors. 12 | 13 | The first two are amply taken care of by `Reflect.Value.FieldByName`, and the third is 14 | addressed by `Reflect.Value.FieldByNameFunc`, but these don't quite understand struct 15 | tags in the ways that are vital to most marshallers, and they are slow. 16 | 17 | This reflectx package extends reflect to achieve these goals. 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/strs/strings_pure.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 | //go:build purego || appengine 6 | // +build purego appengine 7 | 8 | package strs 9 | 10 | import pref "google.golang.org/protobuf/reflect/protoreflect" 11 | 12 | func UnsafeString(b []byte) string { 13 | return string(b) 14 | } 15 | 16 | func UnsafeBytes(s string) []byte { 17 | return []byte(s) 18 | } 19 | 20 | type Builder struct{} 21 | 22 | func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { 23 | return prefix.Append(name) 24 | } 25 | 26 | func (*Builder) MakeString(b []byte) string { 27 | return string(b) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_s390x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build linux 15 | // +build linux 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoS390X 20 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/sql.go: -------------------------------------------------------------------------------- 1 | package pgx 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | // QueryArgs is a container for arguments to an SQL query. It is helpful when 8 | // building SQL statements where the number of arguments is variable. 9 | type QueryArgs []interface{} 10 | 11 | var placeholders []string 12 | 13 | func init() { 14 | placeholders = make([]string, 64) 15 | 16 | for i := 1; i < 64; i++ { 17 | placeholders[i] = "$" + strconv.Itoa(i) 18 | } 19 | } 20 | 21 | // Append adds a value to qa and returns the placeholder value for the 22 | // argument. e.g. $1, $2, etc. 23 | func (qa *QueryArgs) Append(v interface{}) string { 24 | *qa = append(*qa, v) 25 | if len(*qa) < len(placeholders) { 26 | return placeholders[len(*qa)] 27 | } 28 | return "$" + strconv.Itoa(len(*qa)) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/povilasv/prommod/Makefile: -------------------------------------------------------------------------------- 1 | LINT_FLAGS := run --deadline=120s 2 | LINTER_EXE := golangci-lint 3 | LINTER := ./bin/$(LINTER_EXE) 4 | TESTFLAGS := -v -cover 5 | 6 | GO111MODULE := on 7 | all: $(LINTER) deps test lint build 8 | 9 | $(LINTER): 10 | # go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.15.0 11 | # curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.15.0 12 | curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.15.0 13 | 14 | .PHONY: lint 15 | lint: $(LINTER) 16 | $(LINTER) $(LINT_FLAGS) ./... 17 | 18 | .PHONY: deps 19 | deps: 20 | go get . 21 | 22 | .PHONY: build 23 | build: 24 | go build . 25 | 26 | .PHONY: test 27 | test: 28 | go test $(TESTFLAGS) ./... 29 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_loong64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build linux 15 | // +build linux 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoLoong 20 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Matt T. Proud 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 | 15 | // Package pbutil provides record length-delimited Protocol Buffer streaming. 16 | package pbutil 17 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: build-{build}.{branch} 2 | 3 | clone_folder: C:\gopath\src\github.com\pkg\errors 4 | shallow_clone: true # for startup speed 5 | 6 | environment: 7 | GOPATH: C:\gopath 8 | 9 | platform: 10 | - x64 11 | 12 | # http://www.appveyor.com/docs/installed-software 13 | install: 14 | # some helpful output for debugging builds 15 | - go version 16 | - go env 17 | # pre-installed MinGW at C:\MinGW is 32bit only 18 | # but MSYS2 at C:\msys64 has mingw64 19 | - set PATH=C:\msys64\mingw64\bin;%PATH% 20 | - gcc --version 21 | - g++ --version 22 | 23 | build_script: 24 | - go install -v ./... 25 | 26 | test_script: 27 | - set PATH=C:\gopath\bin;%PATH% 28 | - go test -v ./... 29 | 30 | #artifacts: 31 | # - path: '%GOPATH%\bin\*.exe' 32 | deploy: off 33 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/cli.go: -------------------------------------------------------------------------------- 1 | // Package cli provides a minimal framework for creating and organizing command line 2 | // Go applications. cli is designed to be easy to understand and write, the most simple 3 | // cli application can be written as follows: 4 | // func main() { 5 | // cli.NewApp().Run(os.Args) 6 | // } 7 | // 8 | // Of course this application does not do much, so let's make this an actual application: 9 | // func main() { 10 | // app := cli.NewApp() 11 | // app.Name = "greet" 12 | // app.Usage = "say a greeting" 13 | // app.Action = func(c *cli.Context) error { 14 | // println("Greetings") 15 | // return nil 16 | // } 17 | // 18 | // app.Run(os.Args) 19 | // } 20 | package cli 21 | 22 | //go:generate go run flag-gen/main.go flag-gen/assets_vfsdata.go 23 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/common/model/model.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // Package model contains common data structures that are shared across 15 | // Prometheus components and libraries. 16 | package model 17 | -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/TESTS.md: -------------------------------------------------------------------------------- 1 | # Tests 2 | 3 | ## Running Tests 4 | 5 | `go test` is used for testing. A running PostgreSQL 6 | server is required, with the ability to log in. The 7 | database to connect to test with is "pqgotest," on 8 | "localhost" but these can be overridden using [environment 9 | variables](https://www.postgresql.org/docs/9.3/static/libpq-envars.html). 10 | 11 | Example: 12 | 13 | PGHOST=/run/postgresql go test 14 | 15 | ## Benchmarks 16 | 17 | A benchmark suite can be run as part of the tests: 18 | 19 | go test -bench . 20 | 21 | ## Example setup (Docker) 22 | 23 | Run a postgres container: 24 | 25 | ``` 26 | docker run --expose 5432:5432 postgres 27 | ``` 28 | 29 | Run tests: 30 | 31 | ``` 32 | PGHOST=localhost PGPORT=5432 PGUSER=postgres PGSSLMODE=disable PGDATABASE=postgres go test 33 | ``` 34 | -------------------------------------------------------------------------------- /lib/metrics-server/source/pkg/api/generated/openapi/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Kubernetes Authors. 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 | 15 | // package openapi contains autogenerated openapi schema definitions 16 | // for the metrics.k8s.io API. 17 | package openapi 18 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/copy_data.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/hex" 5 | "encoding/json" 6 | 7 | "github.com/jackc/pgx/pgio" 8 | ) 9 | 10 | type CopyData struct { 11 | Data []byte 12 | } 13 | 14 | func (*CopyData) Backend() {} 15 | func (*CopyData) Frontend() {} 16 | 17 | func (dst *CopyData) Decode(src []byte) error { 18 | dst.Data = src 19 | return nil 20 | } 21 | 22 | func (src *CopyData) Encode(dst []byte) []byte { 23 | dst = append(dst, 'd') 24 | dst = pgio.AppendInt32(dst, int32(4+len(src.Data))) 25 | dst = append(dst, src.Data...) 26 | return dst 27 | } 28 | 29 | func (src *CopyData) MarshalJSON() ([]byte, error) { 30 | return json.Marshal(struct { 31 | Type string 32 | Data string 33 | }{ 34 | Type: "CopyData", 35 | Data: hex.EncodeToString(src.Data), 36 | }) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map implements a thread safe map for go version below 1.9 using mutex 8 | type Map struct { 9 | lock sync.RWMutex 10 | data map[interface{}]interface{} 11 | } 12 | 13 | // NewMap creates a thread safe map 14 | func NewMap() *Map { 15 | return &Map{ 16 | data: make(map[interface{}]interface{}, 32), 17 | } 18 | } 19 | 20 | // Load is same as sync.Map Load 21 | func (m *Map) Load(key interface{}) (elem interface{}, found bool) { 22 | m.lock.RLock() 23 | elem, found = m.data[key] 24 | m.lock.RUnlock() 25 | return 26 | } 27 | 28 | // Load is same as sync.Map Store 29 | func (m *Map) Store(key interface{}, elem interface{}) { 30 | m.lock.Lock() 31 | m.data[key] = elem 32 | m.lock.Unlock() 33 | } 34 | -------------------------------------------------------------------------------- /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 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | // +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris 7 | // +build gc 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_armx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build linux && (arm || arm64) 15 | // +build linux 16 | // +build arm arm64 17 | 18 | package procfs 19 | 20 | var parseCPUInfo = parseCPUInfoARM 21 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build linux && (386 || amd64) 15 | // +build linux 16 | // +build 386 amd64 17 | 18 | package procfs 19 | 20 | var parseCPUInfo = parseCPUInfoX86 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.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 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | // +build darwin,race linux,race freebsd,race 7 | 8 | package unix 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://golang.github.io/dep/docs/Gopkg.toml.html 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | # 22 | # [prune] 23 | # non-go = false 24 | # go-tests = true 25 | # unused-packages = true 26 | 27 | ignored = [] 28 | 29 | [prune] 30 | go-tests = true 31 | unused-packages = true 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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:build darwin 6 | // +build darwin 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | // ReadDirent reads directory entries from fd and writes them into buf. 13 | func ReadDirent(fd int, buf []byte) (n int, err error) { 14 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 15 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 16 | // actual system call is getdirentries64, 64 is a good guess. 17 | // TODO(rsc): Can we use a single global basep for all calls? 18 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 19 | return Getdirentries(fd, buf, base) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_ppcx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build linux && (ppc64 || ppc64le) 15 | // +build linux 16 | // +build ppc64 ppc64le 17 | 18 | package procfs 19 | 20 | var parseCPUInfo = parseCPUInfoPPC 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/goname.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 genid 6 | 7 | // Go names of implementation-specific struct fields in generated messages. 8 | const ( 9 | State_goname = "state" 10 | 11 | SizeCache_goname = "sizeCache" 12 | SizeCacheA_goname = "XXX_sizecache" 13 | 14 | WeakFields_goname = "weakFields" 15 | WeakFieldsA_goname = "XXX_weak" 16 | 17 | UnknownFields_goname = "unknownFields" 18 | UnknownFieldsA_goname = "XXX_unrecognized" 19 | 20 | ExtensionFields_goname = "extensionFields" 21 | ExtensionFieldsA_goname = "XXX_InternalExtensions" 22 | ExtensionFieldsB_goname = "XXX_extensions" 23 | 24 | WeakFieldPrefix_goname = "XXX_weak_" 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/ready_for_query.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type ReadyForQuery struct { 8 | TxStatus byte 9 | } 10 | 11 | func (*ReadyForQuery) Backend() {} 12 | 13 | func (dst *ReadyForQuery) Decode(src []byte) error { 14 | if len(src) != 1 { 15 | return &invalidMessageLenErr{messageType: "ReadyForQuery", expectedLen: 1, actualLen: len(src)} 16 | } 17 | 18 | dst.TxStatus = src[0] 19 | 20 | return nil 21 | } 22 | 23 | func (src *ReadyForQuery) Encode(dst []byte) []byte { 24 | return append(dst, 'Z', 0, 0, 0, 5, src.TxStatus) 25 | } 26 | 27 | func (src *ReadyForQuery) MarshalJSON() ([]byte, error) { 28 | return json.Marshal(struct { 29 | Type string 30 | TxStatus string 31 | }{ 32 | Type: "ReadyForQuery", 33 | TxStatus: string(src.TxStatus), 34 | }) 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/sasl_response.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/hex" 5 | "encoding/json" 6 | 7 | "github.com/jackc/pgx/pgio" 8 | ) 9 | 10 | type SASLResponse struct { 11 | Data []byte 12 | } 13 | 14 | func (*SASLResponse) Frontend() {} 15 | 16 | func (dst *SASLResponse) Decode(src []byte) error { 17 | *dst = SASLResponse{Data: src} 18 | return nil 19 | } 20 | 21 | func (src *SASLResponse) Encode(dst []byte) []byte { 22 | dst = append(dst, 'p') 23 | dst = pgio.AppendInt32(dst, int32(4+len(src.Data))) 24 | 25 | dst = append(dst, src.Data...) 26 | 27 | return dst 28 | } 29 | 30 | func (src *SASLResponse) MarshalJSON() ([]byte, error) { 31 | return json.Marshal(struct { 32 | Type string 33 | Data string 34 | }{ 35 | Type: "SASLResponse", 36 | Data: hex.EncodeToString(src.Data), 37 | }) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_riscvx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build linux && (riscv || riscv64) 15 | // +build linux 16 | // +build riscv riscv64 17 | 18 | package procfs 19 | 20 | var parseCPUInfo = parseCPUInfoRISCV 21 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/.codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: 80..100 3 | round: down 4 | precision: 2 5 | 6 | status: 7 | project: # measuring the overall project coverage 8 | default: # context, you can create multiple ones with custom titles 9 | enabled: yes # must be yes|true to enable this status 10 | target: 100 # specify the target coverage for each commit status 11 | # option: "auto" (must increase from parent commit or pull request base) 12 | # option: "X%" a static target percentage to hit 13 | if_not_found: success # if parent is not found report status as success, error, or failure 14 | if_ci_failed: error # if ci fails report status as success, error, or failure 15 | 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for mips64, OpenBSD 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | JMP syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | JMP syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | JMP syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | JMP syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | JMP syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | 22 | ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"] 23 | 24 | [[constraint]] 25 | name = "github.com/modern-go/reflect2" 26 | version = "1.0.1" 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/width/trieval.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package width 4 | 5 | // elem is an entry of the width trie. The high byte is used to encode the type 6 | // of the rune. The low byte is used to store the index to a mapping entry in 7 | // the inverseData array. 8 | type elem uint16 9 | 10 | const ( 11 | tagNeutral elem = iota << typeShift 12 | tagAmbiguous 13 | tagWide 14 | tagNarrow 15 | tagFullwidth 16 | tagHalfwidth 17 | ) 18 | 19 | const ( 20 | numTypeBits = 3 21 | typeShift = 16 - numTypeBits 22 | 23 | // tagNeedsFold is true for all fullwidth and halfwidth runes except for 24 | // the Won sign U+20A9. 25 | tagNeedsFold = 0x1000 26 | 27 | // The Korean Won sign is halfwidth, but SHOULD NOT be mapped to a wide 28 | // variant. 29 | wonSign rune = 0x20A9 30 | ) 31 | -------------------------------------------------------------------------------- /pkg/common/recover/recover.go: -------------------------------------------------------------------------------- 1 | package recover 2 | 3 | import ( 4 | _err "github.com/romapres2010/goapp/pkg/common/error" 5 | _log "github.com/romapres2010/goapp/pkg/common/logger" 6 | ) 7 | 8 | // GetRecoverError - формирует и логирует ошибку 9 | func GetRecoverError(r any, externalId uint64, args ...interface{}) (err error) { 10 | if r != nil { 11 | caller := _log.GetCallerShort(4) 12 | _log.Info("Recover from panic: [caller='" + caller + "']") 13 | switch t := r.(type) { 14 | case error: 15 | err = _err.WithCauseTyped(_err.ERR_PANIC_RECOVER_ERROR, externalId, t, caller, t, args) 16 | _log.Log(_log.LEVEL_ERROR, 2, err.Error()) 17 | default: 18 | err = _err.NewTyped(_err.ERR_PANIC_RECOVER_ERROR, externalId, caller, t, args) 19 | _log.Log(_log.LEVEL_ERROR, 2, err.Error()) 20 | } 21 | return err 22 | } else { 23 | return nil 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/big_endian.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "encoding/binary" 5 | ) 6 | 7 | type BigEndianBuf [8]byte 8 | 9 | func (b BigEndianBuf) Int16(n int16) []byte { 10 | buf := b[0:2] 11 | binary.BigEndian.PutUint16(buf, uint16(n)) 12 | return buf 13 | } 14 | 15 | func (b BigEndianBuf) Uint16(n uint16) []byte { 16 | buf := b[0:2] 17 | binary.BigEndian.PutUint16(buf, n) 18 | return buf 19 | } 20 | 21 | func (b BigEndianBuf) Int32(n int32) []byte { 22 | buf := b[0:4] 23 | binary.BigEndian.PutUint32(buf, uint32(n)) 24 | return buf 25 | } 26 | 27 | func (b BigEndianBuf) Uint32(n uint32) []byte { 28 | buf := b[0:4] 29 | binary.BigEndian.PutUint32(buf, n) 30 | return buf 31 | } 32 | 33 | func (b BigEndianBuf) Int64(n int64) []byte { 34 | buf := b[0:8] 35 | binary.BigEndian.PutUint64(buf, uint64(n)) 36 | return buf 37 | } 38 | -------------------------------------------------------------------------------- /deploy/run/_script/compose-app-down.sh: -------------------------------------------------------------------------------- 1 | if [ $# -eq 0 ] 2 | then 3 | echo "No arguments supplied" 4 | exit 1 5 | fi 6 | 7 | if [ -z "$1" ] 8 | then 9 | echo "No env file supplied" 10 | exit 1 11 | else 12 | echo "Env file:" $1 13 | fi 14 | 15 | echo "Current directory:" 16 | pwd 17 | 18 | echo "Go to working directory:" 19 | pushd ./../../ 20 | 21 | export APP_VERSION=$(cat ./deploy/version) 22 | export APP_API_APP_NAME=$(cat ./deploy/app_api_app_name) 23 | export APP_LUQUIBASE_APP_NAME=$(cat ./deploy/app_liquibase_app_name) 24 | export APP_REPOSITORY=$(cat ./deploy/default_repository) 25 | export APP_BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S') 26 | export APP_COMMIT=$(git rev-parse --short HEAD) 27 | 28 | echo "Down compose" 29 | docker compose --env-file $1 -f ./deploy/compose/compose-app.yaml down 30 | 31 | echo "Go to current directory:" 32 | popd 33 | 34 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/test_helpers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Gorilla 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 mux 6 | 7 | import "net/http" 8 | 9 | // SetURLVars sets the URL variables for the given request, to be accessed via 10 | // mux.Vars for testing route behaviour. Arguments are not modified, a shallow 11 | // copy is returned. 12 | // 13 | // This API should only be used for testing purposes; it provides a way to 14 | // inject variables into the request context. Alternatively, URL variables 15 | // can be set by making a route that captures the required variables, 16 | // starting a server and sending the request to that server. 17 | func SetURLVars(r *http.Request, val map[string]string) *http.Request { 18 | return requestWithVars(r, val) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.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 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | HCI_CHANNEL_LOGGING = 4 27 | ) 28 | 29 | // Socketoption Level 30 | const ( 31 | SOL_BLUETOOTH = 0x112 32 | SOL_HCI = 0x0 33 | SOL_L2CAP = 0x6 34 | SOL_RFCOMM = 0x12 35 | SOL_SCO = 0x11 36 | ) 37 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build linux && (mips || mipsle || mips64 || mips64le) 15 | // +build linux 16 | // +build mips mipsle mips64 mips64le 17 | 18 | package procfs 19 | 20 | var parseCPUInfo = parseCPUInfoMips 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_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 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Darwin's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a Darwin device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev >> 24) & 0xff) 13 | } 14 | 15 | // Minor returns the minor component of a Darwin device number. 16 | func Minor(dev uint64) uint32 { 17 | return uint32(dev & 0xffffff) 18 | } 19 | 20 | // Mkdev returns a Darwin device number generated from the given major and minor 21 | // components. 22 | func Mkdev(major, minor uint32) uint64 { 23 | return (uint64(major) << 24) | uint64(minor) 24 | } 25 | -------------------------------------------------------------------------------- /lib/metrics-server/source/pkg/storage/interface.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Kubernetes Authors. 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 | 15 | package storage 16 | 17 | import "sigs.k8s.io/metrics-server/pkg/api" 18 | 19 | type Storage interface { 20 | api.MetricsGetter 21 | Store(batch *MetricsBatch) 22 | Ready() bool 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgtype/cidr.go: -------------------------------------------------------------------------------- 1 | package pgtype 2 | 3 | type CIDR Inet 4 | 5 | func (dst *CIDR) Set(src interface{}) error { 6 | return (*Inet)(dst).Set(src) 7 | } 8 | 9 | func (dst *CIDR) Get() interface{} { 10 | return (*Inet)(dst).Get() 11 | } 12 | 13 | func (src *CIDR) AssignTo(dst interface{}) error { 14 | return (*Inet)(src).AssignTo(dst) 15 | } 16 | 17 | func (dst *CIDR) DecodeText(ci *ConnInfo, src []byte) error { 18 | return (*Inet)(dst).DecodeText(ci, src) 19 | } 20 | 21 | func (dst *CIDR) DecodeBinary(ci *ConnInfo, src []byte) error { 22 | return (*Inet)(dst).DecodeBinary(ci, src) 23 | } 24 | 25 | func (src *CIDR) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) { 26 | return (*Inet)(src).EncodeText(ci, buf) 27 | } 28 | 29 | func (src *CIDR) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) { 30 | return (*Inet)(src).EncodeBinary(ci, buf) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 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:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | // Unix environment variables. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getenv(key string) (value string, found bool) { 15 | return syscall.Getenv(key) 16 | } 17 | 18 | func Setenv(key, value string) error { 19 | return syscall.Setenv(key, value) 20 | } 21 | 22 | func Clearenv() { 23 | syscall.Clearenv() 24 | } 25 | 26 | func Environ() []string { 27 | return syscall.Environ() 28 | } 29 | 30 | func Unsetenv(key string) error { 31 | return syscall.Unsetenv(key) 32 | } 33 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/.codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: 80..100 3 | round: down 4 | precision: 2 5 | 6 | status: 7 | project: # measuring the overall project coverage 8 | default: # context, you can create multiple ones with custom titles 9 | enabled: yes # must be yes|true to enable this status 10 | target: 95% # specify the target coverage for each commit status 11 | # option: "auto" (must increase from parent commit or pull request base) 12 | # option: "X%" a static target percentage to hit 13 | if_not_found: success # if parent is not found report status as success, error, or failure 14 | if_ci_failed: error # if ci fails report status as success, error, or failure 15 | ignore: 16 | - internal/readme/readme.go 17 | 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for 386 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/coverage.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 language 6 | 7 | // BaseLanguages returns the list of all supported base languages. It generates 8 | // the list by traversing the internal structures. 9 | func BaseLanguages() []Language { 10 | base := make([]Language, 0, NumLanguages) 11 | for i := 0; i < langNoIndexOffset; i++ { 12 | // We included "und" already for the value 0. 13 | if i != nonCanonicalUnd { 14 | base = append(base, Language(i)) 15 | } 16 | } 17 | i := langNoIndexOffset 18 | for _, v := range langNoIndex { 19 | for k := 0; k < 8; k++ { 20 | if v&1 == 1 { 21 | base = append(base, Language(i)) 22 | } 23 | v >>= 1 24 | i++ 25 | } 26 | } 27 | return base 28 | } 29 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ldap.v3/client.go: -------------------------------------------------------------------------------- 1 | package ldap 2 | 3 | import ( 4 | "crypto/tls" 5 | "time" 6 | ) 7 | 8 | // Client knows how to interact with an LDAP server 9 | type Client interface { 10 | Start() 11 | StartTLS(*tls.Config) error 12 | Close() 13 | SetTimeout(time.Duration) 14 | 15 | Bind(username, password string) error 16 | UnauthenticatedBind(username string) error 17 | SimpleBind(*SimpleBindRequest) (*SimpleBindResult, error) 18 | ExternalBind() error 19 | 20 | Add(*AddRequest) error 21 | Del(*DelRequest) error 22 | Modify(*ModifyRequest) error 23 | ModifyDN(*ModifyDNRequest) error 24 | 25 | Compare(dn, attribute, value string) (bool, error) 26 | PasswordModify(*PasswordModifyRequest) (*PasswordModifyResult, error) 27 | 28 | Search(*SearchRequest) (*SearchResult, error) 29 | SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/get_pid_gopherjs.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build js && !wasm 15 | // +build js,!wasm 16 | 17 | package prometheus 18 | 19 | func getPIDFn() func() (int, error) { 20 | return func() (int, error) { 21 | return 1, nil 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc.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 | //go:build aix && ppc 6 | // +build aix,ppc 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev >> 16) & 0xffff) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32(dev & 0xffff) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | return uint64(((major) << 16) | (minor)) 27 | } 28 | -------------------------------------------------------------------------------- /lib/metrics-server/source/pkg/scraper/interface.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Kubernetes Authors. 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 | 15 | package scraper 16 | 17 | import ( 18 | "context" 19 | 20 | "sigs.k8s.io/metrics-server/pkg/storage" 21 | ) 22 | 23 | type Scraper interface { 24 | Scrape(ctx context.Context) *storage.MetricsBatch 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for RISCV64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/num_threads_gopherjs.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build js && !wasm 15 | // +build js,!wasm 16 | 17 | package prometheus 18 | 19 | // getRuntimeNumThreads returns the number of open OS threads. 20 | func getRuntimeNumThreads() float64 { 21 | return 1 22 | } 23 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/README.md: -------------------------------------------------------------------------------- 1 | # multierr [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] 2 | 3 | `multierr` allows combining one or more Go `error`s together. 4 | 5 | ## Installation 6 | 7 | go get -u go.uber.org/multierr 8 | 9 | ## Status 10 | 11 | Stable: No breaking changes will be made before 2.0. 12 | 13 | ------------------------------------------------------------------------------- 14 | 15 | Released under the [MIT License]. 16 | 17 | [MIT License]: LICENSE.txt 18 | [doc-img]: https://pkg.go.dev/badge/go.uber.org/multierr 19 | [doc]: https://pkg.go.dev/go.uber.org/multierr 20 | [ci-img]: https://github.com/uber-go/multierr/actions/workflows/go.yml/badge.svg 21 | [cov-img]: https://codecov.io/gh/uber-go/multierr/branch/master/graph/badge.svg 22 | [ci]: https://github.com/uber-go/multierr/actions/workflows/go.yml 23 | [cov]: https://codecov.io/gh/uber-go/multierr 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System call support for ppc64, BSD 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | JMP syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | JMP syscall·Syscall6(SB) 23 | 24 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 25 | JMP syscall·Syscall9(SB) 26 | 27 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 28 | JMP syscall·RawSyscall(SB) 29 | 30 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 31 | JMP syscall·RawSyscall6(SB) 32 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgtype/decimal.go: -------------------------------------------------------------------------------- 1 | package pgtype 2 | 3 | type Decimal Numeric 4 | 5 | func (dst *Decimal) Set(src interface{}) error { 6 | return (*Numeric)(dst).Set(src) 7 | } 8 | 9 | func (dst *Decimal) Get() interface{} { 10 | return (*Numeric)(dst).Get() 11 | } 12 | 13 | func (src *Decimal) AssignTo(dst interface{}) error { 14 | return (*Numeric)(src).AssignTo(dst) 15 | } 16 | 17 | func (dst *Decimal) DecodeText(ci *ConnInfo, src []byte) error { 18 | return (*Numeric)(dst).DecodeText(ci, src) 19 | } 20 | 21 | func (dst *Decimal) DecodeBinary(ci *ConnInfo, src []byte) error { 22 | return (*Numeric)(dst).DecodeBinary(ci, src) 23 | } 24 | 25 | func (src *Decimal) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) { 26 | return (*Numeric)(src).EncodeText(ci, buf) 27 | } 28 | 29 | func (src *Decimal) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) { 30 | return (*Numeric)(src).EncodeBinary(ci, buf) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc 6 | // +build darwin dragonfly freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for AMD64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/gopkg.in/asn1-ber.v1/README.md: -------------------------------------------------------------------------------- 1 | [![GoDoc](https://godoc.org/gopkg.in/asn1-ber.v1?status.svg)](https://godoc.org/gopkg.in/asn1-ber.v1) [![Build Status](https://travis-ci.org/go-asn1-ber/asn1-ber.svg)](https://travis-ci.org/go-asn1-ber/asn1-ber) 2 | 3 | 4 | ASN1 BER Encoding / Decoding Library for the GO programming language. 5 | --------------------------------------------------------------------- 6 | 7 | Required libraries: 8 | None 9 | 10 | Working: 11 | Very basic encoding / decoding needed for LDAP protocol 12 | 13 | Tests Implemented: 14 | A few 15 | 16 | TODO: 17 | Fix all encoding / decoding to conform to ASN1 BER spec 18 | Implement Tests / Benchmarks 19 | 20 | --- 21 | 22 | The Go gopher was designed by Renee French. (http://reneefrench.blogspot.com/) 23 | The design is licensed under the Creative Commons 3.0 Attributions license. 24 | Read this article for more details: http://blog.golang.org/gopher 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | 20 | // FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command. 21 | func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error { 22 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore)))) 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /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 "strconv" 6 | 7 | func _() { 8 | // An "invalid array index" compiler error signifies that the constant values have changed. 9 | // Re-run the stringer command to generate them again. 10 | var x [1]struct{} 11 | _ = x[Neutral-0] 12 | _ = x[EastAsianAmbiguous-1] 13 | _ = x[EastAsianWide-2] 14 | _ = x[EastAsianNarrow-3] 15 | _ = x[EastAsianFullwidth-4] 16 | _ = x[EastAsianHalfwidth-5] 17 | } 18 | 19 | const _Kind_name = "NeutralEastAsianAmbiguousEastAsianWideEastAsianNarrowEastAsianFullwidthEastAsianHalfwidth" 20 | 21 | var _Kind_index = [...]uint8{0, 7, 25, 38, 53, 71, 89} 22 | 23 | func (i Kind) String() string { 24 | if i < 0 || i >= Kind(len(_Kind_index)-1) { 25 | return "Kind(" + strconv.FormatInt(int64(i), 10) + ")" 26 | } 27 | return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 28 | } 29 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/Chart.yaml: -------------------------------------------------------------------------------- 1 | annotations: 2 | artifacthub.io/changes: | 3 | - kind: changed 4 | description: "Allow probes to be turned off completly (this is not advised unless you know what you're doing)." 5 | apiVersion: v2 6 | appVersion: 0.6.1 7 | description: Metrics Server is a scalable, efficient source of container resource 8 | metrics for Kubernetes built-in autoscaling pipelines. 9 | home: https://github.com/kubernetes-sigs/metrics-server 10 | icon: https://avatars.githubusercontent.com/u/36015203?s=400&v=4 11 | keywords: 12 | - kubernetes 13 | - metrics-server 14 | - metrics 15 | maintainers: 16 | - name: stevehipwell 17 | url: https://github.com/stevehipwell 18 | - name: krmichel 19 | url: https://github.com/krmichel 20 | - name: endrec 21 | url: https://github.com/endrec 22 | name: metrics-server 23 | sources: 24 | - https://github.com/kubernetes-sigs/metrics-server 25 | type: application 26 | version: 3.8.2 27 | -------------------------------------------------------------------------------- /lib/metrics-server/source/pkg/storage/main_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Kubernetes Authors. 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 | 15 | package storage 16 | 17 | import ( 18 | "testing" 19 | 20 | . "github.com/onsi/ginkgo" 21 | . "github.com/onsi/gomega" 22 | ) 23 | 24 | func TestStorage(t *testing.T) { 25 | RegisterFailHandler(Fail) 26 | RunSpecs(t, "storage suite") 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/safe_struct.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | type safeStructType struct { 4 | safeType 5 | } 6 | 7 | func (type2 *safeStructType) FieldByName(name string) StructField { 8 | field, found := type2.Type.FieldByName(name) 9 | if !found { 10 | panic("field " + name + " not found") 11 | } 12 | return &safeField{StructField: field} 13 | } 14 | 15 | func (type2 *safeStructType) Field(i int) StructField { 16 | return &safeField{StructField: type2.Type.Field(i)} 17 | } 18 | 19 | func (type2 *safeStructType) FieldByIndex(index []int) StructField { 20 | return &safeField{StructField: type2.Type.FieldByIndex(index)} 21 | } 22 | 23 | func (type2 *safeStructType) FieldByNameFunc(match func(string) bool) StructField { 24 | field, found := type2.Type.FieldByNameFunc(match) 25 | if !found { 26 | panic("field match condition not found in " + type2.Type.String()) 27 | } 28 | return &safeField{StructField: field} 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/povilasv/prommod/prommod_oldgo.go: -------------------------------------------------------------------------------- 1 | // +build !go1.12 2 | 3 | package prommod 4 | 5 | import ( 6 | "fmt" 7 | 8 | "github.com/prometheus/client_golang/prometheus" 9 | ) 10 | 11 | // NewCollector returns a collector which exports metrics about current dependency information. 12 | func NewCollector(program string) *prometheus.GaugeVec { 13 | gauge := prometheus.NewGaugeVec( 14 | prometheus.GaugeOpts{ 15 | Namespace: program, 16 | Name: "go_mod_info", 17 | Help: fmt.Sprintf( 18 | "A metric with a constant '1' value labeled by dependency name, version, from which %s was built.", 19 | program, 20 | ), 21 | }, 22 | []string{"name", "version"}, 23 | ) 24 | 25 | return gauge 26 | } 27 | 28 | // Print returns module version information. 29 | func Print(program string) string { 30 | return program 31 | } 32 | 33 | // Info returns dependency versions 34 | func Info() string { 35 | return "()" 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/get_pid.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build !js || wasm 15 | // +build !js wasm 16 | 17 | package prometheus 18 | 19 | import "os" 20 | 21 | func getPIDFn() func() (int, error) { 22 | pid := os.Getpid() 23 | return func() (int, error) { 24 | return pid, nil 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go.uber.org/zap 2 | license: MIT 3 | import: 4 | - package: go.uber.org/atomic 5 | version: ^1 6 | - package: go.uber.org/multierr 7 | version: ^1 8 | testImport: 9 | - package: github.com/satori/go.uuid 10 | - package: github.com/sirupsen/logrus 11 | - package: github.com/apex/log 12 | subpackages: 13 | - handlers/json 14 | - package: github.com/go-kit/kit 15 | subpackages: 16 | - log 17 | - package: github.com/stretchr/testify 18 | subpackages: 19 | - assert 20 | - require 21 | - package: gopkg.in/inconshreveable/log15.v2 22 | - package: github.com/mattn/goveralls 23 | - package: github.com/pborman/uuid 24 | - package: github.com/pkg/errors 25 | - package: github.com/rs/zerolog 26 | - package: golang.org/x/tools 27 | subpackages: 28 | - cover 29 | - package: golang.org/x/lint 30 | subpackages: 31 | - golint 32 | - package: github.com/axw/gocov 33 | subpackages: 34 | - gocov 35 | -------------------------------------------------------------------------------- /vendor/github.com/lib/pq/krb.go: -------------------------------------------------------------------------------- 1 | package pq 2 | 3 | // NewGSSFunc creates a GSS authentication provider, for use with 4 | // RegisterGSSProvider. 5 | type NewGSSFunc func() (GSS, error) 6 | 7 | var newGss NewGSSFunc 8 | 9 | // RegisterGSSProvider registers a GSS authentication provider. For example, if 10 | // you need to use Kerberos to authenticate with your server, add this to your 11 | // main package: 12 | // 13 | // import "github.com/lib/pq/auth/kerberos" 14 | // 15 | // func init() { 16 | // pq.RegisterGSSProvider(func() (pq.GSS, error) { return kerberos.NewGSS() }) 17 | // } 18 | func RegisterGSSProvider(newGssArg NewGSSFunc) { 19 | newGss = newGssArg 20 | } 21 | 22 | // GSS provides GSSAPI authentication (e.g., Kerberos). 23 | type GSS interface { 24 | GetInitToken(host string, service string) ([]byte, error) 25 | GetInitTokenFromSpn(spn string) ([]byte, error) 26 | Continue(inToken []byte) (done bool, outToken []byte, err error) 27 | } 28 | -------------------------------------------------------------------------------- /lib/metrics-server/helm/templates/clusterrole.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.rbac.create -}} 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | name: {{ printf "system:%s" (include "metrics-server.fullname" .) }} 6 | labels: 7 | {{- include "metrics-server.labels" . | nindent 4 }} 8 | rules: 9 | - apiGroups: 10 | - "" 11 | resources: 12 | - nodes/metrics 13 | verbs: 14 | - get 15 | - apiGroups: 16 | - "" 17 | resources: 18 | - pods 19 | - nodes 20 | - namespaces 21 | - configmaps 22 | verbs: 23 | - get 24 | - list 25 | - watch 26 | {{- if .Values.rbac.pspEnabled }} 27 | - apiGroups: 28 | - extensions 29 | - policy 30 | resources: 31 | - podsecuritypolicies 32 | resourceNames: 33 | - {{ printf "privileged-%s" (include "metrics-server.fullname" .) }} 34 | verbs: 35 | - use 36 | {{- end -}} 37 | {{- end -}} 38 | -------------------------------------------------------------------------------- /vendor/github.com/jackc/pgx/pgproto3/query.go: -------------------------------------------------------------------------------- 1 | package pgproto3 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | 7 | "github.com/jackc/pgx/pgio" 8 | ) 9 | 10 | type Query struct { 11 | String string 12 | } 13 | 14 | func (*Query) Frontend() {} 15 | 16 | func (dst *Query) Decode(src []byte) error { 17 | i := bytes.IndexByte(src, 0) 18 | if i != len(src)-1 { 19 | return &invalidMessageFormatErr{messageType: "Query"} 20 | } 21 | 22 | dst.String = string(src[:i]) 23 | 24 | return nil 25 | } 26 | 27 | func (src *Query) Encode(dst []byte) []byte { 28 | dst = append(dst, 'Q') 29 | dst = pgio.AppendInt32(dst, int32(4+len(src.String)+1)) 30 | 31 | dst = append(dst, src.String...) 32 | dst = append(dst, 0) 33 | 34 | return dst 35 | } 36 | 37 | func (src *Query) MarshalJSON() ([]byte, error) { 38 | return json.Marshal(struct { 39 | Type string 40 | String string 41 | }{ 42 | Type: "Query", 43 | String: src.String, 44 | }) 45 | } 46 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/eventlog.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 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | const ( 11 | EVENTLOG_SUCCESS = 0 12 | EVENTLOG_ERROR_TYPE = 1 13 | EVENTLOG_WARNING_TYPE = 2 14 | EVENTLOG_INFORMATION_TYPE = 4 15 | EVENTLOG_AUDIT_SUCCESS = 8 16 | EVENTLOG_AUDIT_FAILURE = 16 17 | ) 18 | 19 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW 20 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource 21 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW 22 | -------------------------------------------------------------------------------- /vendor/gopkg.in/asn1-ber.v1/header.go: -------------------------------------------------------------------------------- 1 | package ber 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "io" 7 | ) 8 | 9 | func readHeader(reader io.Reader) (identifier Identifier, length int, read int, err error) { 10 | if i, c, err := readIdentifier(reader); err != nil { 11 | return Identifier{}, 0, read, err 12 | } else { 13 | identifier = i 14 | read += c 15 | } 16 | 17 | if l, c, err := readLength(reader); err != nil { 18 | return Identifier{}, 0, read, err 19 | } else { 20 | length = l 21 | read += c 22 | } 23 | 24 | // Validate length type with identifier (x.600, 8.1.3.2.a) 25 | if length == LengthIndefinite && identifier.TagType == TypePrimitive { 26 | return Identifier{}, 0, read, errors.New("indefinite length used with primitive type") 27 | } 28 | 29 | if length < LengthIndefinite { 30 | err = fmt.Errorf("length cannot be less than %d", LengthIndefinite) 31 | return 32 | } 33 | 34 | return identifier, length, read, nil 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/process_collector_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | //go:build js 15 | // +build js 16 | 17 | package prometheus 18 | 19 | func canCollectProcess() bool { 20 | return false 21 | } 22 | 23 | func (c *processCollector) processCollect(ch chan<- Metric) { 24 | // noop on this platform 25 | return 26 | } 27 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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:build !go1.12 6 | // +build !go1.12 7 | 8 | package impl 9 | 10 | import "reflect" 11 | 12 | type mapIter struct { 13 | v reflect.Value 14 | keys []reflect.Value 15 | } 16 | 17 | // mapRange provides a less-efficient equivalent to 18 | // the Go 1.12 reflect.Value.MapRange method. 19 | func mapRange(v reflect.Value) *mapIter { 20 | return &mapIter{v: v} 21 | } 22 | 23 | func (i *mapIter) Next() bool { 24 | if i.keys == nil { 25 | i.keys = i.v.MapKeys() 26 | } else { 27 | i.keys = i.keys[1:] 28 | } 29 | return len(i.keys) > 0 30 | } 31 | 32 | func (i *mapIter) Key() reflect.Value { 33 | return i.keys[0] 34 | } 35 | 36 | func (i *mapIter) Value() reflect.Value { 37 | return i.v.MapIndex(i.keys[0]) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/NOTICE: -------------------------------------------------------------------------------- 1 | Prometheus instrumentation library for Go applications 2 | Copyright 2012-2015 The Prometheus Authors 3 | 4 | This product includes software developed at 5 | SoundCloud Ltd. (http://soundcloud.com/). 6 | 7 | 8 | The following components are included in this product: 9 | 10 | perks - a fork of https://github.com/bmizerany/perks 11 | https://github.com/beorn7/perks 12 | Copyright 2013-2015 Blake Mizerany, Björn Rabenstein 13 | See https://github.com/beorn7/perks/blob/master/README.md for license details. 14 | 15 | Go support for Protocol Buffers - Google's data interchange format 16 | http://github.com/golang/protobuf/ 17 | Copyright 2010 The Go Authors 18 | See source code for license details. 19 | 20 | Support for streaming Protocol Buffer messages for the Go language (golang). 21 | https://github.com/matttproud/golang_protobuf_extensions 22 | Copyright 2013 Matt T. Proud 23 | Licensed under the Apache License, Version 2.0 24 | -------------------------------------------------------------------------------- /lib/metrics-server/source/charts/metrics-server/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | name: metrics-server 3 | description: Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines. 4 | type: application 5 | version: 3.8.2 6 | appVersion: 0.6.1 7 | keywords: 8 | - kubernetes 9 | - metrics-server 10 | - metrics 11 | home: https://github.com/kubernetes-sigs/metrics-server 12 | icon: https://avatars.githubusercontent.com/u/36015203?s=400&v=4 13 | sources: 14 | - https://github.com/kubernetes-sigs/metrics-server 15 | maintainers: 16 | - name: stevehipwell 17 | url: https://github.com/stevehipwell 18 | - name: krmichel 19 | url: https://github.com/krmichel 20 | - name: endrec 21 | url: https://github.com/endrec 22 | annotations: 23 | artifacthub.io/changes: | 24 | - kind: changed 25 | description: "Allow probes to be turned off completly (this is not advised unless you know what you're doing)." 26 | --------------------------------------------------------------------------------