├── .gitignore ├── .travis.yml ├── .travis ├── get_access_token.sh └── write_golab_yml.sh ├── LICENSE ├── README.md ├── cmd ├── branches.go ├── cmd_suite_test.go ├── commits.go ├── deploy_keys.go ├── environments.go ├── fixtures │ ├── commit-actions.json │ ├── group-members-add.json │ ├── group-members-get.json │ ├── group-members-ls.json │ └── project-ls.json ├── gendoc.go ├── golab_command.go ├── group.go ├── group_members.go ├── group_members_test.go ├── helpers │ ├── browser_helper.go │ ├── git_helper.go │ ├── git_helper_test.go │ ├── helpers_suite_test.go │ ├── json_helpers.go │ └── time_helpers.go ├── labels.go ├── login.go ├── mapper │ ├── flag_mapper.go │ ├── flag_mapper_test.go │ └── mapper_suite_test.go ├── merge_requests.go ├── namespaces.go ├── open.go ├── project.go ├── project_test.go ├── protected_branches.go ├── root.go ├── user.go ├── version.go └── zsh_completion.go ├── doc ├── golab.md ├── golab_branches.md ├── golab_branches_create.md ├── golab_branches_delete-merged.md ├── golab_branches_delete.md ├── golab_branches_get.md ├── golab_branches_list.md ├── golab_branches_protect.md ├── golab_branches_unprotect.md ├── golab_commits.md ├── golab_commits_create.md ├── golab_commits_list.md ├── golab_deploy-keys.md ├── golab_deploy-keys_add.md ├── golab_deploy-keys_delete.md ├── golab_deploy-keys_enable.md ├── golab_deploy-keys_get.md ├── golab_deploy-keys_list-all.md ├── golab_deploy-keys_list.md ├── golab_environments.md ├── golab_environments_create.md ├── golab_environments_delete.md ├── golab_environments_edit.md ├── golab_environments_list.md ├── golab_gendoc.md ├── golab_group-members.md ├── golab_group-members_add.md ├── golab_group-members_delete.md ├── golab_group-members_edit.md ├── golab_group-members_get.md ├── golab_group-members_ls.md ├── golab_group-members_sync.md ├── golab_group-members_update.md ├── golab_group.md ├── golab_group_create.md ├── golab_group_delete.md ├── golab_group_get.md ├── golab_group_ls.md ├── golab_group_projects.md ├── golab_group_search.md ├── golab_group_transfer-project.md ├── golab_group_update.md ├── golab_labels.md ├── golab_labels_create.md ├── golab_labels_delete.md ├── golab_labels_edit.md ├── golab_labels_list.md ├── golab_labels_subscribe.md ├── golab_labels_unsubscribe.md ├── golab_login.md ├── golab_merge-requests.md ├── golab_merge-requests_accept.md ├── golab_merge-requests_add-spent-time.md ├── golab_merge-requests_cancel-when-pipeline-succeeds.md ├── golab_merge-requests_create-todo.md ├── golab_merge-requests_create.md ├── golab_merge-requests_delete.md ├── golab_merge-requests_get-changes.md ├── golab_merge-requests_get-commits.md ├── golab_merge-requests_get-diff-version.md ├── golab_merge-requests_get-diff-versions.md ├── golab_merge-requests_get.md ├── golab_merge-requests_list-issues.md ├── golab_merge-requests_ls.md ├── golab_merge-requests_project-ls.md ├── golab_merge-requests_reset-spent-time.md ├── golab_merge-requests_reset-time-estimate.md ├── golab_merge-requests_set-time-estimate.md ├── golab_merge-requests_subscribe.md ├── golab_merge-requests_time-tracking-stats.md ├── golab_merge-requests_unsubscribe.md ├── golab_merge-requests_update.md ├── golab_namespaces.md ├── golab_namespaces_get.md ├── golab_namespaces_ls.md ├── golab_namespaces_search.md ├── golab_open.md ├── golab_personal-access-token.md ├── golab_project.md ├── golab_project_archive.md ├── golab_project_create.md ├── golab_project_delete.md ├── golab_project_edit.md ├── golab_project_fork.md ├── golab_project_forks.md ├── golab_project_forks_create.md ├── golab_project_forks_delete.md ├── golab_project_get.md ├── golab_project_hooks.md ├── golab_project_hooks_add.md ├── golab_project_hooks_delete.md ├── golab_project_hooks_edit.md ├── golab_project_hooks_get.md ├── golab_project_hooks_ls.md ├── golab_project_housekeeping.md ├── golab_project_list-forks.md ├── golab_project_ls.md ├── golab_project_search.md ├── golab_project_share.md ├── golab_project_star.md ├── golab_project_unarchive.md ├── golab_project_unshare.md ├── golab_project_unstar.md ├── golab_project_upload-file.md ├── golab_protected-branches.md ├── golab_protected-branches_get.md ├── golab_protected-branches_ls.md ├── golab_protected-branches_protect-branch.md ├── golab_protected-branches_unprotect-branch.md ├── golab_user.md ├── golab_user_activities.md ├── golab_user_block.md ├── golab_user_create.md ├── golab_user_delete.md ├── golab_user_emails.md ├── golab_user_emails_add.md ├── golab_user_emails_delete.md ├── golab_user_emails_get.md ├── golab_user_emails_ls.md ├── golab_user_get-as-admin.md ├── golab_user_get-by-username.md ├── golab_user_get.md ├── golab_user_impersonation-token.md ├── golab_user_impersonation-token_create.md ├── golab_user_impersonation-token_get-all.md ├── golab_user_impersonation-token_get.md ├── golab_user_impersonation-token_revoke.md ├── golab_user_ls.md ├── golab_user_modify.md ├── golab_user_ssh-keys.md ├── golab_user_ssh-keys_add.md ├── golab_user_ssh-keys_delete.md ├── golab_user_ssh-keys_get.md ├── golab_user_ssh-keys_ls.md ├── golab_user_unblock.md ├── golab_user_update.md ├── golab_version.md └── golab_zsh-completion.md ├── main.go ├── makefile ├── tests ├── login_test.go └── user_test.go ├── vendor ├── github.com │ ├── anaskhan96 │ │ └── soup │ │ │ ├── README.md │ │ │ ├── license │ │ │ └── soup.go │ ├── armon │ │ └── consul-api │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── acl.go │ │ │ ├── agent.go │ │ │ ├── api.go │ │ │ ├── catalog.go │ │ │ ├── event.go │ │ │ ├── health.go │ │ │ ├── kv.go │ │ │ ├── session.go │ │ │ └── status.go │ ├── coreos │ │ ├── etcd │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ ├── client │ │ │ │ ├── README.md │ │ │ │ ├── auth_role.go │ │ │ │ ├── auth_user.go │ │ │ │ ├── cancelreq.go │ │ │ │ ├── client.go │ │ │ │ ├── cluster_error.go │ │ │ │ ├── curl.go │ │ │ │ ├── discover.go │ │ │ │ ├── doc.go │ │ │ │ ├── keys.generated.go │ │ │ │ ├── keys.go │ │ │ │ ├── members.go │ │ │ │ └── util.go │ │ │ ├── pkg │ │ │ │ ├── pathutil │ │ │ │ │ └── path.go │ │ │ │ ├── srv │ │ │ │ │ └── srv.go │ │ │ │ └── types │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── id.go │ │ │ │ │ ├── set.go │ │ │ │ │ ├── slice.go │ │ │ │ │ ├── urls.go │ │ │ │ │ └── urlsmap.go │ │ │ └── version │ │ │ │ └── version.go │ │ └── go-semver │ │ │ ├── LICENSE │ │ │ └── semver │ │ │ ├── semver.go │ │ │ └── sort.go │ ├── cpuguy83 │ │ └── go-md2man │ │ │ ├── LICENSE.md │ │ │ └── md2man │ │ │ ├── md2man.go │ │ │ └── roff.go │ ├── fsnotify │ │ └── fsnotify │ │ │ ├── AUTHORS │ │ │ ├── CHANGELOG.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── fen.go │ │ │ ├── fsnotify.go │ │ │ ├── inotify.go │ │ │ ├── inotify_poller.go │ │ │ ├── kqueue.go │ │ │ ├── open_mode_bsd.go │ │ │ ├── open_mode_darwin.go │ │ │ └── windows.go │ ├── google │ │ └── go-querystring │ │ │ ├── LICENSE │ │ │ └── query │ │ │ └── encode.go │ ├── hashicorp │ │ ├── go-cleanhttp │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── cleanhttp.go │ │ │ └── doc.go │ │ ├── go-rootcerts │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── rootcerts.go │ │ │ ├── rootcerts_base.go │ │ │ └── rootcerts_darwin.go │ │ └── hcl │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── appveyor.yml │ │ │ ├── decoder.go │ │ │ ├── hcl.go │ │ │ ├── hcl │ │ │ ├── ast │ │ │ │ ├── ast.go │ │ │ │ └── walk.go │ │ │ ├── parser │ │ │ │ ├── error.go │ │ │ │ └── parser.go │ │ │ ├── scanner │ │ │ │ └── scanner.go │ │ │ ├── strconv │ │ │ │ └── quote.go │ │ │ └── token │ │ │ │ ├── position.go │ │ │ │ └── token.go │ │ │ ├── json │ │ │ ├── parser │ │ │ │ ├── flatten.go │ │ │ │ └── parser.go │ │ │ ├── scanner │ │ │ │ └── scanner.go │ │ │ └── token │ │ │ │ ├── position.go │ │ │ │ └── token.go │ │ │ ├── lex.go │ │ │ └── parse.go │ ├── howeyc │ │ └── gopass │ │ │ ├── LICENSE.txt │ │ │ ├── OPENSOLARIS.LICENSE │ │ │ ├── README.md │ │ │ ├── pass.go │ │ │ ├── terminal.go │ │ │ └── terminal_solaris.go │ ├── inconshreveable │ │ └── mousetrap │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── trap_others.go │ │ │ ├── trap_windows.go │ │ │ └── trap_windows_1.4.go │ ├── jinzhu │ │ └── copier │ │ │ ├── Guardfile │ │ │ ├── License │ │ │ ├── README.md │ │ │ └── copier.go │ ├── magiconair │ │ └── properties │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── assert │ │ │ └── assert.go │ │ │ ├── decode.go │ │ │ ├── doc.go │ │ │ ├── integrate.go │ │ │ ├── lex.go │ │ │ ├── load.go │ │ │ ├── parser.go │ │ │ ├── properties.go │ │ │ └── rangecheck.go │ ├── michaellihs │ │ └── gogpat │ │ │ ├── Gopkg.lock │ │ │ ├── Gopkg.toml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── gitlab │ │ │ ├── gitlab.go │ │ │ └── scope.go │ │ │ ├── gogpat │ │ │ ├── gitlab.go │ │ │ └── scope.go │ │ │ └── main.go │ ├── mitchellh │ │ ├── go-homedir │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── homedir.go │ │ └── mapstructure │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── decode_hooks.go │ │ │ ├── error.go │ │ │ └── mapstructure.go │ ├── pelletier │ │ ├── go-buffruneio │ │ │ ├── README.md │ │ │ └── buffruneio.go │ │ └── go-toml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── clean.sh │ │ │ ├── doc.go │ │ │ ├── example-crlf.toml │ │ │ ├── example.toml │ │ │ ├── keysparsing.go │ │ │ ├── lexer.go │ │ │ ├── match.go │ │ │ ├── parser.go │ │ │ ├── position.go │ │ │ ├── query.go │ │ │ ├── querylexer.go │ │ │ ├── queryparser.go │ │ │ ├── test.sh │ │ │ ├── token.go │ │ │ ├── toml.go │ │ │ └── tomltree_conversions.go │ ├── russross │ │ └── blackfriday │ │ │ ├── LICENSE.txt │ │ │ ├── README.md │ │ │ ├── block.go │ │ │ ├── html.go │ │ │ ├── inline.go │ │ │ ├── latex.go │ │ │ ├── markdown.go │ │ │ └── smartypants.go │ ├── shurcooL │ │ └── sanitized_anchor_name │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── main.go │ ├── sirupsen │ │ └── logrus │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── alt_exit.go │ │ │ ├── appveyor.yml │ │ │ ├── doc.go │ │ │ ├── entry.go │ │ │ ├── exported.go │ │ │ ├── formatter.go │ │ │ ├── hooks.go │ │ │ ├── json_formatter.go │ │ │ ├── logger.go │ │ │ ├── logrus.go │ │ │ ├── terminal_bsd.go │ │ │ ├── terminal_check_appengine.go │ │ │ ├── terminal_check_notappengine.go │ │ │ ├── terminal_linux.go │ │ │ ├── text_formatter.go │ │ │ └── writer.go │ ├── spf13 │ │ ├── afero │ │ │ ├── LICENSE.txt │ │ │ ├── README.md │ │ │ ├── afero.go │ │ │ ├── appveyor.yml │ │ │ ├── basepath.go │ │ │ ├── cacheOnReadFs.go │ │ │ ├── const_bsds.go │ │ │ ├── const_win_unix.go │ │ │ ├── copyOnWriteFs.go │ │ │ ├── httpFs.go │ │ │ ├── ioutil.go │ │ │ ├── mem │ │ │ │ ├── dir.go │ │ │ │ ├── dirmap.go │ │ │ │ └── file.go │ │ │ ├── memmap.go │ │ │ ├── memradix.go │ │ │ ├── os.go │ │ │ ├── path.go │ │ │ ├── readonlyfs.go │ │ │ ├── regexpfs.go │ │ │ ├── unionFile.go │ │ │ └── util.go │ │ ├── cast │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── cast.go │ │ │ └── caste.go │ │ ├── cobra │ │ │ ├── LICENSE.txt │ │ │ ├── README.md │ │ │ ├── args.go │ │ │ ├── bash_completions.go │ │ │ ├── bash_completions.md │ │ │ ├── cobra.go │ │ │ ├── cobra │ │ │ │ ├── README.md │ │ │ │ ├── cmd │ │ │ │ │ ├── add.go │ │ │ │ │ ├── helpers.go │ │ │ │ │ ├── init.go │ │ │ │ │ ├── license_agpl.go │ │ │ │ │ ├── license_apache_2.go │ │ │ │ │ ├── license_bsd_clause_2.go │ │ │ │ │ ├── license_bsd_clause_3.go │ │ │ │ │ ├── license_gpl_2.go │ │ │ │ │ ├── license_gpl_3.go │ │ │ │ │ ├── license_lgpl.go │ │ │ │ │ ├── license_mit.go │ │ │ │ │ ├── licenses.go │ │ │ │ │ ├── project.go │ │ │ │ │ └── root.go │ │ │ │ └── main.go │ │ │ ├── command.go │ │ │ ├── command_notwin.go │ │ │ ├── command_win.go │ │ │ ├── doc │ │ │ │ ├── man_docs.go │ │ │ │ ├── man_docs.md │ │ │ │ ├── md_docs.go │ │ │ │ ├── md_docs.md │ │ │ │ ├── rest_docs.go │ │ │ │ ├── rest_docs.md │ │ │ │ ├── util.go │ │ │ │ ├── yaml_docs.go │ │ │ │ └── yaml_docs.md │ │ │ └── zsh_completions.go │ │ ├── jwalterweatherman │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── default_notepad.go │ │ │ ├── log_counter.go │ │ │ └── notepad.go │ │ ├── pflag │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bool.go │ │ │ ├── bool_slice.go │ │ │ ├── count.go │ │ │ ├── duration.go │ │ │ ├── flag.go │ │ │ ├── float32.go │ │ │ ├── float64.go │ │ │ ├── golangflag.go │ │ │ ├── int.go │ │ │ ├── int16.go │ │ │ ├── int32.go │ │ │ ├── int64.go │ │ │ ├── int8.go │ │ │ ├── int_slice.go │ │ │ ├── ip.go │ │ │ ├── ip_slice.go │ │ │ ├── ipmask.go │ │ │ ├── ipnet.go │ │ │ ├── string.go │ │ │ ├── string_array.go │ │ │ ├── string_slice.go │ │ │ ├── uint.go │ │ │ ├── uint16.go │ │ │ ├── uint32.go │ │ │ ├── uint64.go │ │ │ ├── uint8.go │ │ │ ├── uint_slice.go │ │ │ └── verify │ │ │ │ ├── all.sh │ │ │ │ ├── gofmt.sh │ │ │ │ └── golint.sh │ │ └── viper │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── flags.go │ │ │ ├── nohup.out │ │ │ ├── remote │ │ │ └── remote.go │ │ │ ├── util.go │ │ │ └── viper.go │ ├── ugorji │ │ └── go │ │ │ ├── LICENSE │ │ │ └── codec │ │ │ ├── 0doc.go │ │ │ ├── README.md │ │ │ ├── binc.go │ │ │ ├── cbor.go │ │ │ ├── decode.go │ │ │ ├── encode.go │ │ │ ├── fast-path.generated.go │ │ │ ├── fast-path.go.tmpl │ │ │ ├── fast-path.not.go │ │ │ ├── gen-dec-array.go.tmpl │ │ │ ├── gen-dec-map.go.tmpl │ │ │ ├── gen-helper.generated.go │ │ │ ├── gen-helper.go.tmpl │ │ │ ├── gen.generated.go │ │ │ ├── gen.go │ │ │ ├── goversion_arrayof_gte_go15.go │ │ │ ├── goversion_arrayof_lt_go15.go │ │ │ ├── goversion_makemap_gte_go19.go │ │ │ ├── goversion_makemap_lt_go19.go │ │ │ ├── goversion_unexportedembeddedptr_gte_go110.go │ │ │ ├── goversion_unexportedembeddedptr_lt_go110.go │ │ │ ├── goversion_unsupported_lt_go14.go │ │ │ ├── goversion_vendor_eq_go15.go │ │ │ ├── goversion_vendor_eq_go16.go │ │ │ ├── goversion_vendor_gte_go17.go │ │ │ ├── goversion_vendor_lt_go15.go │ │ │ ├── helper.go │ │ │ ├── helper_internal.go │ │ │ ├── helper_not_unsafe.go │ │ │ ├── helper_unsafe.go │ │ │ ├── json.go │ │ │ ├── mammoth-test.go.tmpl │ │ │ ├── mammoth2-test.go.tmpl │ │ │ ├── msgpack.go │ │ │ ├── rpc.go │ │ │ ├── simple.go │ │ │ ├── test-cbor-goldens.json │ │ │ ├── test.py │ │ │ └── time.go │ ├── urfave │ │ └── cli │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── app.go │ │ │ ├── appveyor.yml │ │ │ ├── category.go │ │ │ ├── cli.go │ │ │ ├── command.go │ │ │ ├── context.go │ │ │ ├── errors.go │ │ │ ├── flag-types.json │ │ │ ├── flag.go │ │ │ ├── flag_generated.go │ │ │ ├── funcs.go │ │ │ ├── generate-flag-types │ │ │ ├── help.go │ │ │ ├── runtests │ │ │ └── sort.go │ ├── xanzy │ │ └── go-gitlab │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── branches.go │ │ │ ├── build_variables.go │ │ │ ├── commits.go │ │ │ ├── deploy_keys.go │ │ │ ├── environments.go │ │ │ ├── events.go │ │ │ ├── feature_flags.go │ │ │ ├── gitlab.go │ │ │ ├── group_members.go │ │ │ ├── groups.go │ │ │ ├── issues.go │ │ │ ├── jobs.go │ │ │ ├── labels.go │ │ │ ├── merge_requests.go │ │ │ ├── milestones.go │ │ │ ├── namespaces.go │ │ │ ├── notes.go │ │ │ ├── notifications.go │ │ │ ├── pipeline_triggers.go │ │ │ ├── pipelines.go │ │ │ ├── project_members.go │ │ │ ├── project_snippets.go │ │ │ ├── projects.go │ │ │ ├── protected_branches.go │ │ │ ├── repositories.go │ │ │ ├── repository_files.go │ │ │ ├── services.go │ │ │ ├── session.go │ │ │ ├── settings.go │ │ │ ├── snippets.go │ │ │ ├── strings.go │ │ │ ├── system_hooks.go │ │ │ ├── tags.go │ │ │ ├── time_stats.go │ │ │ ├── todos.go │ │ │ ├── users.go │ │ │ ├── version.go │ │ │ └── wikis.go │ └── xordataexchange │ │ └── crypt │ │ ├── LICENSE │ │ ├── backend │ │ ├── backend.go │ │ ├── consul │ │ │ └── consul.go │ │ └── etcd │ │ │ └── etcd.go │ │ ├── config │ │ ├── README.md │ │ └── config.go │ │ └── encoding │ │ └── secconf │ │ └── secconf.go ├── golang.org │ └── x │ │ ├── crypto │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── cast5 │ │ │ └── cast5.go │ │ ├── openpgp │ │ │ ├── armor │ │ │ │ ├── armor.go │ │ │ │ └── encode.go │ │ │ ├── canonical_text.go │ │ │ ├── elgamal │ │ │ │ └── elgamal.go │ │ │ ├── errors │ │ │ │ └── errors.go │ │ │ ├── keys.go │ │ │ ├── packet │ │ │ │ ├── compressed.go │ │ │ │ ├── config.go │ │ │ │ ├── encrypted_key.go │ │ │ │ ├── literal.go │ │ │ │ ├── ocfb.go │ │ │ │ ├── one_pass_signature.go │ │ │ │ ├── opaque.go │ │ │ │ ├── packet.go │ │ │ │ ├── private_key.go │ │ │ │ ├── public_key.go │ │ │ │ ├── public_key_v3.go │ │ │ │ ├── reader.go │ │ │ │ ├── signature.go │ │ │ │ ├── signature_v3.go │ │ │ │ ├── symmetric_key_encrypted.go │ │ │ │ ├── symmetrically_encrypted.go │ │ │ │ ├── userattribute.go │ │ │ │ └── userid.go │ │ │ ├── read.go │ │ │ ├── s2k │ │ │ │ └── s2k.go │ │ │ └── write.go │ │ └── ssh │ │ │ └── terminal │ │ │ ├── terminal.go │ │ │ ├── util.go │ │ │ ├── util_bsd.go │ │ │ ├── util_linux.go │ │ │ ├── util_plan9.go │ │ │ ├── util_solaris.go │ │ │ └── util_windows.go │ │ ├── net │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── html │ │ │ ├── atom │ │ │ ├── atom.go │ │ │ └── table.go │ │ │ ├── const.go │ │ │ ├── doc.go │ │ │ ├── doctype.go │ │ │ ├── entity.go │ │ │ ├── escape.go │ │ │ ├── foreign.go │ │ │ ├── node.go │ │ │ ├── parse.go │ │ │ ├── render.go │ │ │ └── token.go │ │ ├── sys │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── unix │ │ │ ├── README.md │ │ │ ├── asm_darwin_386.s │ │ │ ├── asm_darwin_amd64.s │ │ │ ├── asm_darwin_arm.s │ │ │ ├── asm_darwin_arm64.s │ │ │ ├── asm_dragonfly_amd64.s │ │ │ ├── asm_freebsd_386.s │ │ │ ├── asm_freebsd_amd64.s │ │ │ ├── asm_freebsd_arm.s │ │ │ ├── asm_linux_386.s │ │ │ ├── asm_linux_amd64.s │ │ │ ├── asm_linux_arm.s │ │ │ ├── asm_linux_arm64.s │ │ │ ├── asm_linux_mips64x.s │ │ │ ├── asm_linux_mipsx.s │ │ │ ├── asm_linux_ppc64x.s │ │ │ ├── asm_linux_s390x.s │ │ │ ├── asm_netbsd_386.s │ │ │ ├── asm_netbsd_amd64.s │ │ │ ├── asm_netbsd_arm.s │ │ │ ├── asm_openbsd_386.s │ │ │ ├── asm_openbsd_amd64.s │ │ │ ├── asm_openbsd_arm.s │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── bluetooth_linux.go │ │ │ ├── cap_freebsd.go │ │ │ ├── constants.go │ │ │ ├── dev_darwin.go │ │ │ ├── dev_dragonfly.go │ │ │ ├── dev_freebsd.go │ │ │ ├── dev_linux.go │ │ │ ├── dev_netbsd.go │ │ │ ├── dev_openbsd.go │ │ │ ├── dirent.go │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── env_unix.go │ │ │ ├── env_unset.go │ │ │ ├── errors_freebsd_386.go │ │ │ ├── errors_freebsd_amd64.go │ │ │ ├── errors_freebsd_arm.go │ │ │ ├── flock.go │ │ │ ├── flock_linux_32bit.go │ │ │ ├── gccgo.go │ │ │ ├── gccgo_c.c │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── mkall.sh │ │ │ ├── mkerrors.sh │ │ │ ├── mksyscall.pl │ │ │ ├── mksyscall_solaris.pl │ │ │ ├── mksysctl_openbsd.pl │ │ │ ├── mksysnum_darwin.pl │ │ │ ├── mksysnum_dragonfly.pl │ │ │ ├── mksysnum_freebsd.pl │ │ │ ├── mksysnum_netbsd.pl │ │ │ ├── mksysnum_openbsd.pl │ │ │ ├── openbsd_pledge.go │ │ │ ├── pagesize_unix.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── sockcmsg_linux.go │ │ │ ├── sockcmsg_unix.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_bsd.go │ │ │ ├── syscall_darwin.go │ │ │ ├── syscall_darwin_386.go │ │ │ ├── syscall_darwin_amd64.go │ │ │ ├── syscall_darwin_arm.go │ │ │ ├── syscall_darwin_arm64.go │ │ │ ├── syscall_dragonfly.go │ │ │ ├── syscall_dragonfly_amd64.go │ │ │ ├── syscall_freebsd.go │ │ │ ├── syscall_freebsd_386.go │ │ │ ├── syscall_freebsd_amd64.go │ │ │ ├── syscall_freebsd_arm.go │ │ │ ├── syscall_linux.go │ │ │ ├── syscall_linux_386.go │ │ │ ├── syscall_linux_amd64.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── syscall_linux_arm.go │ │ │ ├── syscall_linux_arm64.go │ │ │ ├── syscall_linux_mips64x.go │ │ │ ├── syscall_linux_mipsx.go │ │ │ ├── syscall_linux_ppc64x.go │ │ │ ├── syscall_linux_s390x.go │ │ │ ├── syscall_linux_sparc64.go │ │ │ ├── syscall_netbsd.go │ │ │ ├── syscall_netbsd_386.go │ │ │ ├── syscall_netbsd_amd64.go │ │ │ ├── syscall_netbsd_arm.go │ │ │ ├── syscall_no_getwd.go │ │ │ ├── syscall_openbsd.go │ │ │ ├── syscall_openbsd_386.go │ │ │ ├── syscall_openbsd_amd64.go │ │ │ ├── syscall_openbsd_arm.go │ │ │ ├── syscall_solaris.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_unix.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── timestruct.go │ │ │ ├── zerrors_darwin_386.go │ │ │ ├── zerrors_darwin_amd64.go │ │ │ ├── zerrors_darwin_arm.go │ │ │ ├── zerrors_darwin_arm64.go │ │ │ ├── zerrors_dragonfly_amd64.go │ │ │ ├── zerrors_freebsd_386.go │ │ │ ├── zerrors_freebsd_amd64.go │ │ │ ├── zerrors_freebsd_arm.go │ │ │ ├── zerrors_linux_386.go │ │ │ ├── zerrors_linux_amd64.go │ │ │ ├── zerrors_linux_arm.go │ │ │ ├── zerrors_linux_arm64.go │ │ │ ├── zerrors_linux_mips.go │ │ │ ├── zerrors_linux_mips64.go │ │ │ ├── zerrors_linux_mips64le.go │ │ │ ├── zerrors_linux_mipsle.go │ │ │ ├── zerrors_linux_ppc64.go │ │ │ ├── zerrors_linux_ppc64le.go │ │ │ ├── zerrors_linux_s390x.go │ │ │ ├── zerrors_linux_sparc64.go │ │ │ ├── zerrors_netbsd_386.go │ │ │ ├── zerrors_netbsd_amd64.go │ │ │ ├── zerrors_netbsd_arm.go │ │ │ ├── zerrors_openbsd_386.go │ │ │ ├── zerrors_openbsd_amd64.go │ │ │ ├── zerrors_openbsd_arm.go │ │ │ ├── zerrors_solaris_amd64.go │ │ │ ├── zptrace386_linux.go │ │ │ ├── zptracearm_linux.go │ │ │ ├── zptracemips_linux.go │ │ │ ├── zptracemipsle_linux.go │ │ │ ├── zsyscall_darwin_386.go │ │ │ ├── zsyscall_darwin_amd64.go │ │ │ ├── zsyscall_darwin_arm.go │ │ │ ├── zsyscall_darwin_arm64.go │ │ │ ├── zsyscall_dragonfly_amd64.go │ │ │ ├── zsyscall_freebsd_386.go │ │ │ ├── zsyscall_freebsd_amd64.go │ │ │ ├── zsyscall_freebsd_arm.go │ │ │ ├── zsyscall_linux_386.go │ │ │ ├── zsyscall_linux_amd64.go │ │ │ ├── zsyscall_linux_arm.go │ │ │ ├── zsyscall_linux_arm64.go │ │ │ ├── zsyscall_linux_mips.go │ │ │ ├── zsyscall_linux_mips64.go │ │ │ ├── zsyscall_linux_mips64le.go │ │ │ ├── zsyscall_linux_mipsle.go │ │ │ ├── zsyscall_linux_ppc64.go │ │ │ ├── zsyscall_linux_ppc64le.go │ │ │ ├── zsyscall_linux_s390x.go │ │ │ ├── zsyscall_linux_sparc64.go │ │ │ ├── zsyscall_netbsd_386.go │ │ │ ├── zsyscall_netbsd_amd64.go │ │ │ ├── zsyscall_netbsd_arm.go │ │ │ ├── zsyscall_openbsd_386.go │ │ │ ├── zsyscall_openbsd_amd64.go │ │ │ ├── zsyscall_openbsd_arm.go │ │ │ ├── zsyscall_solaris_amd64.go │ │ │ ├── zsysctl_openbsd_386.go │ │ │ ├── zsysctl_openbsd_amd64.go │ │ │ ├── zsysctl_openbsd_arm.go │ │ │ ├── zsysnum_darwin_386.go │ │ │ ├── zsysnum_darwin_amd64.go │ │ │ ├── zsysnum_darwin_arm.go │ │ │ ├── zsysnum_darwin_arm64.go │ │ │ ├── zsysnum_dragonfly_amd64.go │ │ │ ├── zsysnum_freebsd_386.go │ │ │ ├── zsysnum_freebsd_amd64.go │ │ │ ├── zsysnum_freebsd_arm.go │ │ │ ├── zsysnum_linux_386.go │ │ │ ├── zsysnum_linux_amd64.go │ │ │ ├── zsysnum_linux_arm.go │ │ │ ├── zsysnum_linux_arm64.go │ │ │ ├── zsysnum_linux_mips.go │ │ │ ├── zsysnum_linux_mips64.go │ │ │ ├── zsysnum_linux_mips64le.go │ │ │ ├── zsysnum_linux_mipsle.go │ │ │ ├── zsysnum_linux_ppc64.go │ │ │ ├── zsysnum_linux_ppc64le.go │ │ │ ├── zsysnum_linux_s390x.go │ │ │ ├── zsysnum_linux_sparc64.go │ │ │ ├── zsysnum_netbsd_386.go │ │ │ ├── zsysnum_netbsd_amd64.go │ │ │ ├── zsysnum_netbsd_arm.go │ │ │ ├── zsysnum_openbsd_386.go │ │ │ ├── zsysnum_openbsd_amd64.go │ │ │ ├── zsysnum_openbsd_arm.go │ │ │ ├── zsysnum_solaris_amd64.go │ │ │ ├── ztypes_darwin_386.go │ │ │ ├── ztypes_darwin_amd64.go │ │ │ ├── ztypes_darwin_arm.go │ │ │ ├── ztypes_darwin_arm64.go │ │ │ ├── ztypes_dragonfly_amd64.go │ │ │ ├── ztypes_freebsd_386.go │ │ │ ├── ztypes_freebsd_amd64.go │ │ │ ├── ztypes_freebsd_arm.go │ │ │ ├── ztypes_linux_386.go │ │ │ ├── ztypes_linux_amd64.go │ │ │ ├── ztypes_linux_arm.go │ │ │ ├── ztypes_linux_arm64.go │ │ │ ├── ztypes_linux_mips.go │ │ │ ├── ztypes_linux_mips64.go │ │ │ ├── ztypes_linux_mips64le.go │ │ │ ├── ztypes_linux_mipsle.go │ │ │ ├── ztypes_linux_ppc64.go │ │ │ ├── ztypes_linux_ppc64le.go │ │ │ ├── ztypes_linux_s390x.go │ │ │ ├── ztypes_linux_sparc64.go │ │ │ ├── ztypes_netbsd_386.go │ │ │ ├── ztypes_netbsd_amd64.go │ │ │ ├── ztypes_netbsd_arm.go │ │ │ ├── ztypes_openbsd_386.go │ │ │ ├── ztypes_openbsd_amd64.go │ │ │ ├── ztypes_openbsd_arm.go │ │ │ └── ztypes_solaris_amd64.go │ │ └── windows │ │ │ ├── asm_windows_386.s │ │ │ ├── asm_windows_amd64.s │ │ │ ├── dll_windows.go │ │ │ ├── env_unset.go │ │ │ ├── env_windows.go │ │ │ ├── eventlog.go │ │ │ ├── exec_windows.go │ │ │ ├── memory_windows.go │ │ │ ├── mksyscall.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── security_windows.go │ │ │ ├── service.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_windows.go │ │ │ ├── types_windows.go │ │ │ ├── types_windows_386.go │ │ │ ├── types_windows_amd64.go │ │ │ └── zsyscall_windows.go │ │ └── text │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── transform │ │ └── transform.go │ │ └── unicode │ │ └── norm │ │ ├── composition.go │ │ ├── forminfo.go │ │ ├── input.go │ │ ├── iter.go │ │ ├── maketables.go │ │ ├── normalize.go │ │ ├── readwriter.go │ │ ├── tables.go │ │ ├── transform.go │ │ ├── trie.go │ │ └── triegen.go ├── gopkg.in │ └── yaml.v2 │ │ ├── LICENSE │ │ ├── LICENSE.libyaml │ │ ├── README.md │ │ ├── apic.go │ │ ├── decode.go │ │ ├── emitterc.go │ │ ├── encode.go │ │ ├── parserc.go │ │ ├── readerc.go │ │ ├── resolve.go │ │ ├── scannerc.go │ │ ├── sorter.go │ │ ├── writerc.go │ │ ├── yaml.go │ │ ├── yamlh.go │ │ └── yamlprivateh.go └── vendor.json └── zsh └── _golab /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .golab.yml 3 | vendor/**/*.local 4 | id_rsa* 5 | -------------------------------------------------------------------------------- /.travis/write_golab_yml.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "---" > .golab.yml 4 | echo "url: \"http://localhost:8080\"" >> .golab.yml 5 | echo "token: \"${GITLAB_ROOT_PRIVATE_TOKEN}\"" >> .golab.yml 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright © 2017 Michael Lihs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /cmd/fixtures/commit-actions.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "action": "create", 4 | "file_path": "foo/bar", 5 | "content": "some content" 6 | }, 7 | { 8 | "action": "update", 9 | "file_path": "README.md", 10 | "content": "new content" 11 | } 12 | ] -------------------------------------------------------------------------------- /cmd/fixtures/group-members-add.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": 1, 3 | "username": "root", 4 | "email": "", 5 | "name": "Administrator", 6 | "state": "active", 7 | "created_at": null, 8 | "access_level": 50, 9 | "expires_at": null 10 | } -------------------------------------------------------------------------------- /cmd/fixtures/group-members-get.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": 1, 3 | "username": "root", 4 | "email": "", 5 | "name": "Administrator", 6 | "state": "active", 7 | "created_at": null, 8 | "access_level": 50, 9 | "expires_at": null 10 | } -------------------------------------------------------------------------------- /cmd/fixtures/group-members-ls.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "username": "root", 5 | "email": "", 6 | "name": "Administrator", 7 | "state": "active", 8 | "created_at": null, 9 | "access_level": 50, 10 | "expires_at": null 11 | } 12 | ] -------------------------------------------------------------------------------- /doc/golab_branches_create.md: -------------------------------------------------------------------------------- 1 | ## golab branches create 2 | 3 | Create repository branch 4 | 5 | ### Synopsis 6 | 7 | 8 | Create repository branch 9 | 10 | ``` 11 | golab branches create [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -b, --branch string (required) The name of the branch 18 | -h, --help help for create 19 | -i, --id string (required) The ID or URL-encoded path of the project 20 | -r, --ref string (required) The branch name or commit SHA to create branch from 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab branches](golab_branches.md) - Branches 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_branches_delete-merged.md: -------------------------------------------------------------------------------- 1 | ## golab branches delete-merged 2 | 3 | Delete merged branches 4 | 5 | ### Synopsis 6 | 7 | 8 | Will delete all branches that are merged into the project's default branch. 9 | 10 | Protected branches will not be deleted as part of this operation. 11 | 12 | ``` 13 | golab branches delete-merged [flags] 14 | ``` 15 | 16 | ### Options 17 | 18 | ``` 19 | -h, --help help for delete-merged 20 | -i, --id string (required) The ID or URL-encoded path of the project 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab branches](golab_branches.md) - Branches 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_branches_delete.md: -------------------------------------------------------------------------------- 1 | ## golab branches delete 2 | 3 | Delete repository branch 4 | 5 | ### Synopsis 6 | 7 | 8 | Delete repository branch 9 | 10 | ``` 11 | golab branches delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -b, --branch string (required) The name of the branch 18 | -h, --help help for delete 19 | -i, --id string (required) The ID or URL-encoded path of the project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab branches](golab_branches.md) - Branches 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_branches_get.md: -------------------------------------------------------------------------------- 1 | ## golab branches get 2 | 3 | Get single repository branch 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a single project repository branch. This endpoint can be accessed without authentication if the repository is publicly accessible. 9 | 10 | ``` 11 | golab branches get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -b, --branch string (required) The name of the branch 18 | -h, --help help for get 19 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab branches](golab_branches.md) - Branches 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_branches_list.md: -------------------------------------------------------------------------------- 1 | ## golab branches list 2 | 3 | List repository branches 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of repository branches from a project, sorted by name alphabetically. This endpoint can be accessed without authentication if the repository is publicly accessible. 9 | 10 | ``` 11 | golab branches list [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for list 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab branches](golab_branches.md) - Branches 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_branches_unprotect.md: -------------------------------------------------------------------------------- 1 | ## golab branches unprotect 2 | 3 | Unprotect repository branch 4 | 5 | ### Synopsis 6 | 7 | 8 | Unprotects a single project repository branch. This is an idempotent function, unprotecting an already unprotected repository branch still returns a 200 OK status code. 9 | 10 | ``` 11 | golab branches unprotect [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -b, --branch string (required) The name of the branch 18 | -h, --help help for unprotect 19 | -i, --id string (required) The ID or URL-encoded path of the project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab branches](golab_branches.md) - Branches 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_commits.md: -------------------------------------------------------------------------------- 1 | ## golab commits 2 | 3 | Manage Commits 4 | 5 | ### Synopsis 6 | 7 | 8 | Manage Commits 9 | 10 | ``` 11 | golab commits [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for commits 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab](golab.md) - Gitlab CLI written in Go 30 | * [golab commits create](golab_commits_create.md) - Create a commit with multiple files and actions 31 | * [golab commits list](golab_commits_list.md) - List repository commits 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_deploy-keys_delete.md: -------------------------------------------------------------------------------- 1 | ## golab deploy-keys delete 2 | 3 | Delete deploy key 4 | 5 | ### Synopsis 6 | 7 | 8 | Removes a deploy key from the project. If the deploy key is used only for this project, it will be deleted from the system. 9 | 10 | ``` 11 | golab deploy-keys delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -k, --key_id int (required) The ID of the deploy key 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab deploy-keys](golab_deploy-keys.md) - Deploy Keys API 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_deploy-keys_enable.md: -------------------------------------------------------------------------------- 1 | ## golab deploy-keys enable 2 | 3 | Enable a deploy key 4 | 5 | ### Synopsis 6 | 7 | 8 | Enables a deploy key for a project so this can be used. Returns the enabled key, with a status code 201 when successful. 9 | 10 | ``` 11 | golab deploy-keys enable [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for enable 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -k, --key_id int (required) The ID of the deploy key 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab deploy-keys](golab_deploy-keys.md) - Deploy Keys API 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_deploy-keys_get.md: -------------------------------------------------------------------------------- 1 | ## golab deploy-keys get 2 | 3 | Get single deploy key 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a single deploy key 9 | 10 | ``` 11 | golab deploy-keys get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -k, --key_id int (required) The ID of the deploy key 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab deploy-keys](golab_deploy-keys.md) - Deploy Keys API 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_deploy-keys_list-all.md: -------------------------------------------------------------------------------- 1 | ## golab deploy-keys list-all 2 | 3 | List all deploy keys 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of all deploy keys across all projects of the GitLab instance. This endpoint requires admin access. 9 | 10 | ``` 11 | golab deploy-keys list-all [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for list-all 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab deploy-keys](golab_deploy-keys.md) - Deploy Keys API 30 | 31 | -------------------------------------------------------------------------------- /doc/golab_deploy-keys_list.md: -------------------------------------------------------------------------------- 1 | ## golab deploy-keys list 2 | 3 | List project deploy keys 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of a project's deploy keys. 9 | 10 | ``` 11 | golab deploy-keys list [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for list 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab deploy-keys](golab_deploy-keys.md) - Deploy Keys API 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_environments.md: -------------------------------------------------------------------------------- 1 | ## golab environments 2 | 3 | Manage environments 4 | 5 | ### Synopsis 6 | 7 | 8 | Manage environments 9 | 10 | ``` 11 | golab environments [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for environments 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab](golab.md) - Gitlab CLI written in Go 30 | * [golab environments create](golab_environments_create.md) - Create a new environment 31 | * [golab environments delete](golab_environments_delete.md) - Delete an environment 32 | * [golab environments edit](golab_environments_edit.md) - Edit an existing environment 33 | * [golab environments list](golab_environments_list.md) - List environments 34 | 35 | -------------------------------------------------------------------------------- /doc/golab_environments_create.md: -------------------------------------------------------------------------------- 1 | ## golab environments create 2 | 3 | Create a new environment 4 | 5 | ### Synopsis 6 | 7 | 8 | Creates a new environment for the given project with the given name and external URL. 9 | 10 | ``` 11 | golab environments create [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | --external_url string (optional) Place to link to for this environment 18 | -h, --help help for create 19 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 20 | --name string (required) The name of the environment 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab environments](golab_environments.md) - Manage environments 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_environments_delete.md: -------------------------------------------------------------------------------- 1 | ## golab environments delete 2 | 3 | Delete an environment 4 | 5 | ### Synopsis 6 | 7 | 8 | Deletes an environment with a given ID. 9 | 10 | ``` 11 | golab environments delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -e, --environment_id int (required) The ID of the environment 18 | -h, --help help for delete 19 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab environments](golab_environments.md) - Manage environments 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_environments_list.md: -------------------------------------------------------------------------------- 1 | ## golab environments list 2 | 3 | List environments 4 | 5 | ### Synopsis 6 | 7 | 8 | Get all environments for a project 9 | 10 | ``` 11 | golab environments list [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for list 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab environments](golab_environments.md) - Manage environments 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_gendoc.md: -------------------------------------------------------------------------------- 1 | ## golab gendoc 2 | 3 | Render the Markdown Documentation for golab 4 | 5 | ### Synopsis 6 | 7 | 8 | Renders the Markdown Documentation for golab into 9 | 10 | ``` 11 | golab gendoc [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for gendoc 18 | -p, --path string (required) Path into which to render Markdown documentation 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab](golab.md) - Gitlab CLI written in Go 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_group-members_delete.md: -------------------------------------------------------------------------------- 1 | ## golab group-members delete 2 | 3 | Remove a member from a group or project 4 | 5 | ### Synopsis 6 | 7 | 8 | Removes a user from a group or project. 9 | 10 | ``` 11 | golab group-members delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | -i, --id int (required) the id of the group to delete user from 19 | -u, --user_id int (required) the id of the user to be removed from group 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab group-members](golab_group-members.md) - Access group members 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_group-members_get.md: -------------------------------------------------------------------------------- 1 | ## golab group-members get 2 | 3 | Get a member of a group 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a member of a group 9 | 10 | ``` 11 | golab group-members get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id int (required) id of group to get member from 19 | -u, --user_id int (required) id of user to get group member infos 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab group-members](golab_group-members.md) - Access group members 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_group-members_ls.md: -------------------------------------------------------------------------------- 1 | ## golab group-members ls 2 | 3 | List all members of a group 4 | 5 | ### Synopsis 6 | 7 | 8 | Gets a list of groupmembers viewable by the authenticated user 9 | 10 | ``` 11 | golab group-members ls [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for ls 18 | -i, --id int (required) id of group to show members for 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab group-members](golab_group-members.md) - Access group members 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_group-members_update.md: -------------------------------------------------------------------------------- 1 | ## golab group-members update 2 | 3 | Edit a member of a group or project 4 | 5 | ### Synopsis 6 | 7 | 8 | Updates a member of a group or project. 9 | 10 | Access Levels: 11 | 12 | 10 = Guest Permissions 13 | 20 = Reporter Permissions 14 | 30 = Developer Permissions 15 | 40 = Master Permissions 16 | 50 = Owner Permissions 17 | 18 | ``` 19 | golab group-members update 20 | ``` 21 | 22 | ### Options 23 | 24 | ``` 25 | -a, --access_level int (required) a valid access level 26 | -e, --expires_at string (optional) expiry date of membership (yyy-mm-dd) 27 | -i, --id int (required) id of group to change membership for 28 | -u, --user_id int (required) id the user to change membership for 29 | ``` 30 | 31 | ### Options inherited from parent commands 32 | 33 | ``` 34 | --config string (optional) CURRENTLY NOT SUPPORTED config file (default is ./.golab.yml and $HOME/.golab.yml) 35 | ``` 36 | 37 | ### SEE ALSO 38 | * [golab group-members](golab_group-members.md) - Access group members 39 | 40 | ###### Auto generated by spf13/cobra on 22-Nov-2017 41 | -------------------------------------------------------------------------------- /doc/golab_group_delete.md: -------------------------------------------------------------------------------- 1 | ## golab group delete 2 | 3 | Remove group 4 | 5 | ### Synopsis 6 | 7 | 8 | Removes group with all projects inside. 9 | 10 | ``` 11 | golab group delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | --id string (required) The ID or URL encoded path of a user group 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab group](golab_group.md) - Manage Gitlab Groups 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_group_get.md: -------------------------------------------------------------------------------- 1 | ## golab group get 2 | 3 | Details of a group 4 | 5 | ### Synopsis 6 | 7 | 8 | Get all details of a group. This command can be accessed without authentication if the group is publicly accessible. 9 | 10 | ``` 11 | golab group get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | --id string (required) The ID or URL-encoded path of the group owned by the authenticated user 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab group](golab_group.md) - Manage Gitlab Groups 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_group_search.md: -------------------------------------------------------------------------------- 1 | ## golab group search 2 | 3 | Search for group 4 | 5 | ### Synopsis 6 | 7 | 8 | Get all groups that match your string in their name or path. 9 | 10 | ``` 11 | golab group search [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for search 18 | -s, --search string (required) Search phrase 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab group](golab_group.md) - Manage Gitlab Groups 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_group_transfer-project.md: -------------------------------------------------------------------------------- 1 | ## golab group transfer-project 2 | 3 | Transfer project to group 4 | 5 | ### Synopsis 6 | 7 | 8 | Transfer a project to the Group namespace. Available only for admin. 9 | 10 | ``` 11 | golab group transfer-project [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for transfer-project 18 | -i, --id string (required) The ID or URL-encoded path of the group owned by the authenticated user 19 | -p, --project_id int (required) The ID or URL-encoded path of a project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab group](golab_group.md) - Manage Gitlab Groups 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_labels.md: -------------------------------------------------------------------------------- 1 | ## golab labels 2 | 3 | Manage labels 4 | 5 | ### Synopsis 6 | 7 | 8 | Manage labels 9 | 10 | ``` 11 | golab labels [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for labels 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab](golab.md) - Gitlab CLI written in Go 30 | * [golab labels create](golab_labels_create.md) - Create a new label 31 | * [golab labels delete](golab_labels_delete.md) - Delete a label 32 | * [golab labels edit](golab_labels_edit.md) - Edit an existing label 33 | * [golab labels list](golab_labels_list.md) - List labels 34 | * [golab labels subscribe](golab_labels_subscribe.md) - Subscribe to a label 35 | * [golab labels unsubscribe](golab_labels_unsubscribe.md) - Unsubscribe from a label 36 | 37 | -------------------------------------------------------------------------------- /doc/golab_labels_delete.md: -------------------------------------------------------------------------------- 1 | ## golab labels delete 2 | 3 | Delete a label 4 | 5 | ### Synopsis 6 | 7 | 8 | Deletes a label with a given name. 9 | 10 | ``` 11 | golab labels delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -n, --name string (required) The name of the label 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab labels](golab_labels.md) - Manage labels 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_labels_list.md: -------------------------------------------------------------------------------- 1 | ## golab labels list 2 | 3 | List labels 4 | 5 | ### Synopsis 6 | 7 | 8 | Get all labels for a project 9 | 10 | ``` 11 | golab labels list [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for list 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab labels](golab_labels.md) - Manage labels 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_labels_subscribe.md: -------------------------------------------------------------------------------- 1 | ## golab labels subscribe 2 | 3 | Subscribe to a label 4 | 5 | ### Synopsis 6 | 7 | 8 | Subscribes the authenticated user to a label to receive notifications. If the user is already subscribed to the label, the status code 304 is returned. 9 | 10 | ``` 11 | golab labels subscribe [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for subscribe 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -l, --label_id string (required) The ID or title of a project's label 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab labels](golab_labels.md) - Manage labels 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_labels_unsubscribe.md: -------------------------------------------------------------------------------- 1 | ## golab labels unsubscribe 2 | 3 | Unsubscribe from a label 4 | 5 | ### Synopsis 6 | 7 | 8 | Unsubscribes the authenticated user from a label to not receive notifications from it. If the user is not subscribed to the label, the status code 304 is returned. 9 | 10 | ``` 11 | golab labels unsubscribe [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for unsubscribe 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -l, --label_id string (required) The ID or title of a project's label 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab labels](golab_labels.md) - Manage labels 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_login.md: -------------------------------------------------------------------------------- 1 | ## golab login 2 | 3 | Login to Gitlab 4 | 5 | ### Synopsis 6 | 7 | 8 | Login to Gitlab using username and password 9 | 10 | ``` 11 | golab login [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for login 18 | -s, --host string (required) Hostname (http://gitlab.my-domain.com) of the gitlab server 19 | -p, --password string (optional) Password for the login 20 | -u, --user string (required) Username for the login 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab](golab.md) - Gitlab CLI written in Go 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_add-spent-time.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests add-spent-time 2 | 3 | Add spent time for a merge request 4 | 5 | ### Synopsis 6 | 7 | 8 | Adds spent time for this merge request 9 | 10 | ``` 11 | golab merge-requests add-spent-time [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -d, --duration string (required) The duration in human format. e.g: 3h30m 18 | -h, --help help for add-spent-time 19 | -i, --id string (required) The ID or URL encoded path of a project 20 | -m, --iid int (required) The internal ID of the merge request 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_create-todo.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests create-todo 2 | 3 | Create a todo 4 | 5 | ### Synopsis 6 | 7 | 8 | Manually creates a todo for the current user on a merge request. If there already exists a todo for the user on that merge request, status code 304 is returned. 9 | 10 | ``` 11 | golab merge-requests create-todo [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for create-todo 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_delete.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests delete 2 | 3 | Delete a merge request 4 | 5 | ### Synopsis 6 | 7 | 8 | Only for admins and project owners. Soft deletes the merge request in question. 9 | 10 | ``` 11 | golab merge-requests delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_get-changes.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests get-changes 2 | 3 | Get single Merge Request changes 4 | 5 | ### Synopsis 6 | 7 | 8 | Shows information about the merge request including its files and changes. 9 | 10 | ``` 11 | golab merge-requests get-changes [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get-changes 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_get-commits.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests get-commits 2 | 3 | Get single Merge Request commits 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of merge request commits. 9 | 10 | ``` 11 | golab merge-requests get-commits [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get-commits 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_get-diff-version.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests get-diff-version 2 | 3 | Get a single merge request diff version 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a single merge request diff version. 9 | 10 | ``` 11 | golab merge-requests get-diff-version [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get-diff-version 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | -v, --version_id int (required) The ID of the merge request diff version 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_get-diff-versions.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests get-diff-versions 2 | 3 | Get merge request diff versions 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of merge request diff versions. 9 | 10 | ``` 11 | golab merge-requests get-diff-versions [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get-diff-versions 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_get.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests get 2 | 3 | Get single Merge Request 4 | 5 | ### Synopsis 6 | 7 | 8 | Shows information about a single merge request. 9 | 10 | ``` 11 | golab merge-requests get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_list-issues.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests list-issues 2 | 3 | List issues that will close on merge 4 | 5 | ### Synopsis 6 | 7 | 8 | Get all the issues that would be closed by merging the provided merge request. 9 | 10 | ``` 11 | golab merge-requests list-issues [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for list-issues 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_reset-spent-time.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests reset-spent-time 2 | 3 | Reset spent time for a merge request 4 | 5 | ### Synopsis 6 | 7 | 8 | Resets the total spent time for this merge request to 0 seconds. 9 | 10 | ``` 11 | golab merge-requests reset-spent-time [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for reset-spent-time 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_reset-time-estimate.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests reset-time-estimate 2 | 3 | Reset the time estimate for a merge request 4 | 5 | ### Synopsis 6 | 7 | 8 | Resets the estimated time for this merge request to 0 seconds. 9 | 10 | ``` 11 | golab merge-requests reset-time-estimate [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for reset-time-estimate 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_set-time-estimate.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests set-time-estimate 2 | 3 | Set a time estimate for a merge request 4 | 5 | ### Synopsis 6 | 7 | 8 | Sets an estimated time of work for this merge request. 9 | 10 | ``` 11 | golab merge-requests set-time-estimate [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -d, --duration string (required) The duration in human format. e.g: 3h30m 18 | -h, --help help for set-time-estimate 19 | -i, --id string (required) The ID or URL encoded path of a project 20 | -m, --iid int (required) The internal ID of the merge request 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_subscribe.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests subscribe 2 | 3 | Subscribe to a merge request 4 | 5 | ### Synopsis 6 | 7 | 8 | Subscribes the authenticated user to a merge request to receive notification. If the user is already subscribed to the merge request, the status code 304 is returned. 9 | 10 | ``` 11 | golab merge-requests subscribe [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for subscribe 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_time-tracking-stats.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests time-tracking-stats 2 | 3 | Get time tracking stats 4 | 5 | ### Synopsis 6 | 7 | 8 | Get time tracking stats 9 | 10 | ``` 11 | golab merge-requests time-tracking-stats [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for time-tracking-stats 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_merge-requests_unsubscribe.md: -------------------------------------------------------------------------------- 1 | ## golab merge-requests unsubscribe 2 | 3 | Unsubscribe from a merge request 4 | 5 | ### Synopsis 6 | 7 | 8 | Unsubscribes the authenticated user from a merge request to not receive notification. If the user is not subscribed to the merge request, the status code 304 is returned. 9 | 10 | ``` 11 | golab merge-requests unsubscribe [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for unsubscribe 18 | -i, --id string (required) The ID or URL encoded path of a project 19 | -m, --iid int (required) The internal ID of the merge request 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab merge-requests](golab_merge-requests.md) - Manage Merge Requests 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_namespaces.md: -------------------------------------------------------------------------------- 1 | ## golab namespaces 2 | 3 | Manage namespaces 4 | 5 | ### Synopsis 6 | 7 | 8 | Usernames and groupnames fall under a special category called namespaces. 9 | 10 | For users and groups supported API calls see the users and groups documentation respectively. 11 | 12 | Pagination is used. 13 | 14 | ``` 15 | golab namespaces [flags] 16 | ``` 17 | 18 | ### Options 19 | 20 | ``` 21 | -h, --help help for namespaces 22 | ``` 23 | 24 | ### Options inherited from parent commands 25 | 26 | ``` 27 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 28 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 29 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 30 | ``` 31 | 32 | ### SEE ALSO 33 | * [golab](golab.md) - Gitlab CLI written in Go 34 | * [golab namespaces get](golab_namespaces_get.md) - Get namespace by ID 35 | * [golab namespaces ls](golab_namespaces_ls.md) - List namespaces 36 | * [golab namespaces search](golab_namespaces_search.md) - Search for namespace 37 | 38 | -------------------------------------------------------------------------------- /doc/golab_namespaces_get.md: -------------------------------------------------------------------------------- 1 | ## golab namespaces get 2 | 3 | Get namespace by ID 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a namespace by ID. 9 | 10 | ``` 11 | golab namespaces get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id string (required) ID or path of the namespace 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab namespaces](golab_namespaces.md) - Manage namespaces 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_namespaces_ls.md: -------------------------------------------------------------------------------- 1 | ## golab namespaces ls 2 | 3 | List namespaces 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of the namespaces of the authenticated user. If the user is an administrator, a list of all namespaces in the GitLab instance is shown. 9 | 10 | ``` 11 | golab namespaces ls [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for ls 18 | --page int (optional) Page of results to retrieve 19 | --per_page int (optional) The number of results to include per page (max 100) 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab namespaces](golab_namespaces.md) - Manage namespaces 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_namespaces_search.md: -------------------------------------------------------------------------------- 1 | ## golab namespaces search 2 | 3 | Search for namespace 4 | 5 | ### Synopsis 6 | 7 | 8 | Get all namespaces that match a string in their name or path. 9 | 10 | ``` 11 | golab namespaces search [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for search 18 | -s, --search string (optional) Returns a list of namespaces the user is authorized to see based on the search criteria 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab namespaces](golab_namespaces.md) - Manage namespaces 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_open.md: -------------------------------------------------------------------------------- 1 | ## golab open 2 | 3 | Open Gitlab for project 4 | 5 | ### Synopsis 6 | 7 | 8 | Open the Gitlab project page for the repository in current directory 9 | 10 | ``` 11 | golab open [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for open 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab](golab.md) - Gitlab CLI written in Go 30 | 31 | -------------------------------------------------------------------------------- /doc/golab_project_archive.md: -------------------------------------------------------------------------------- 1 | ## golab project archive 2 | 3 | Archive a project 4 | 5 | ### Synopsis 6 | 7 | 8 | Archives the project if the user is either admin or the project owner of this project. This action is idempotent, thus archiving an already archived project will not change the project. 9 | 10 | ``` 11 | golab project archive [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for archive 18 | -i, --id string (required) The ID or URL-encoded path of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project](golab_project.md) - Manage projects 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_delete.md: -------------------------------------------------------------------------------- 1 | ## golab project delete 2 | 3 | Remove project 4 | 5 | ### Synopsis 6 | 7 | 8 | Removes a project including all associated resources (issues, merge requests etc.) 9 | 10 | ``` 11 | golab project delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | -i, --id string (required) The ID or URL-encoded path of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project](golab_project.md) - Manage projects 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_forks.md: -------------------------------------------------------------------------------- 1 | ## golab project forks 2 | 3 | Admin fork relation 4 | 5 | ### Synopsis 6 | 7 | 8 | Allows modification of the forked relationship between existing projects. Available only for admins. 9 | 10 | ``` 11 | golab project forks [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for forks 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab project](golab_project.md) - Manage projects 30 | * [golab project forks create](golab_project_forks_create.md) - Create a forked from/to relation between existing projects 31 | * [golab project forks delete](golab_project_forks_delete.md) - Delete an existing forked from relationship 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_project_forks_create.md: -------------------------------------------------------------------------------- 1 | ## golab project forks create 2 | 3 | Create a forked from/to relation between existing projects 4 | 5 | ### Synopsis 6 | 7 | 8 | Create a forked from/to relation between existing projects (available only for admins) 9 | 10 | ``` 11 | golab project forks create [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -f, --forked_from_id int (required) The ID of the project that was forked from 18 | -h, --help help for create 19 | -i, --id int (required) The ID of the project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab project forks](golab_project_forks.md) - Admin fork relation 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_project_forks_delete.md: -------------------------------------------------------------------------------- 1 | ## golab project forks delete 2 | 3 | Delete an existing forked from relationship 4 | 5 | ### Synopsis 6 | 7 | 8 | Delete an existing forked from relationship (available only for admins) 9 | 10 | ``` 11 | golab project forks delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | -i, --id int (required) The ID of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project forks](golab_project_forks.md) - Admin fork relation 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_get.md: -------------------------------------------------------------------------------- 1 | ## golab project get 2 | 3 | Get detailed information for a project 4 | 5 | ### Synopsis 6 | 7 | 8 | Get detailed information for a project identified by either project ID or 'namespace/project-name' 9 | 10 | ``` 11 | golab project get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id string (required) either the project ID (numeric) or 'namespace/project-name' 19 | -s, --statistics (optional) include project statistics 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab project](golab_project.md) - Manage projects 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_project_hooks_delete.md: -------------------------------------------------------------------------------- 1 | ## golab project hooks delete 2 | 3 | Delete project hook 4 | 5 | ### Synopsis 6 | 7 | 8 | Removes a hook from a project. This is an idempotent method and can be called multiple times. Either the hook is available or not. 9 | 10 | ``` 11 | golab project hooks delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | --hook_id int The ID of the project hook 19 | -i, --id string The ID or URL-encoded path of the project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab project hooks](golab_project_hooks.md) - Manage project hooks. 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_project_hooks_get.md: -------------------------------------------------------------------------------- 1 | ## golab project hooks get 2 | 3 | Get project hook 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a specific hook for a project. 9 | 10 | ``` 11 | golab project hooks get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | --hook_id int The ID of a project hook 19 | -i, --id string (required) The ID or URL-encoded path of the project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab project hooks](golab_project_hooks.md) - Manage project hooks. 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_project_hooks_ls.md: -------------------------------------------------------------------------------- 1 | ## golab project hooks ls 2 | 3 | List project hooks 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of project hooks. 9 | 10 | ``` 11 | golab project hooks ls [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for ls 18 | -i, --id string (required) The ID or URL-encoded path of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project hooks](golab_project_hooks.md) - Manage project hooks. 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_housekeeping.md: -------------------------------------------------------------------------------- 1 | ## golab project housekeeping 2 | 3 | Start the Housekeeping task for a Project 4 | 5 | ### Synopsis 6 | 7 | 8 | Start the Housekeeping task for a Project 9 | 10 | ``` 11 | golab project housekeeping [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for housekeeping 18 | -i, --id string (required) The ID or URL-encoded path of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project](golab_project.md) - Manage projects 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_share.md: -------------------------------------------------------------------------------- 1 | ## golab project share 2 | 3 | Share project with group 4 | 5 | ### Synopsis 6 | 7 | 8 | Allow to share project with group. 9 | 10 | ``` 11 | golab project share [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -e, --expires_at string (optional) Share expiration date in ISO 8601 format: 2016-09-26 18 | -a, --group_access string (required) The permissions level to grant the group 19 | -g, --group_id int (required) The ID of the group to share with 20 | -h, --help help for share 21 | -i, --id string (required) The ID or URL-encoded path of the project 22 | ``` 23 | 24 | ### Options inherited from parent commands 25 | 26 | ``` 27 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 28 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 29 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 30 | ``` 31 | 32 | ### SEE ALSO 33 | * [golab project](golab_project.md) - Manage projects 34 | 35 | -------------------------------------------------------------------------------- /doc/golab_project_star.md: -------------------------------------------------------------------------------- 1 | ## golab project star 2 | 3 | Star a project 4 | 5 | ### Synopsis 6 | 7 | 8 | Stars a given project. 9 | 10 | ``` 11 | golab project star [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for star 18 | -i, --id string (required) The ID or URL-encoded path of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project](golab_project.md) - Manage projects 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_unarchive.md: -------------------------------------------------------------------------------- 1 | ## golab project unarchive 2 | 3 | Unarchive a project 4 | 5 | ### Synopsis 6 | 7 | 8 | Unarchives the project if the user is either admin or the project owner of this project. This action is idempotent, thus unarchiving an non-archived project will not change the project. 9 | 10 | ``` 11 | golab project unarchive [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for unarchive 18 | -i, --id string (required) The ID or URL-encoded path of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project](golab_project.md) - Manage projects 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_unshare.md: -------------------------------------------------------------------------------- 1 | ## golab project unshare 2 | 3 | Delete a shared project link within a group 4 | 5 | ### Synopsis 6 | 7 | 8 | Unshare the project from the group. 9 | 10 | ``` 11 | golab project unshare [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -g, --group_id string The ID of the group 18 | -h, --help help for unshare 19 | -i, --id string The ID or URL-encoded path of the project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab project](golab_project.md) - Manage projects 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_project_unstar.md: -------------------------------------------------------------------------------- 1 | ## golab project unstar 2 | 3 | Unstar a project 4 | 5 | ### Synopsis 6 | 7 | 8 | Unstars a given project. 9 | 10 | ``` 11 | golab project unstar [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for unstar 18 | -i, --id string (required) The ID or URL-encoded path of the project 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab project](golab_project.md) - Manage projects 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_project_upload-file.md: -------------------------------------------------------------------------------- 1 | ## golab project upload-file 2 | 3 | Upload a file 4 | 5 | ### Synopsis 6 | 7 | 8 | Uploads a file to the specified project to be used in an issue or merge request description, or a comment. 9 | 10 | ``` 11 | golab project upload-file [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -f, --file string (required) Path to the file to be uploaded 18 | -h, --help help for upload-file 19 | -i, --id string (required) The ID or URL-encoded path of the project 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab project](golab_project.md) - Manage projects 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_protected-branches_get.md: -------------------------------------------------------------------------------- 1 | ## golab protected-branches get 2 | 3 | Get a single protected branch or wildcard protected branch 4 | 5 | ### Synopsis 6 | 7 | 8 | Gets a single protected branch or wildcard protected branch. 9 | 10 | ``` 11 | golab protected-branches get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -n, --name string (required) The name of the branch or wildcard 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab protected-branches](golab_protected-branches.md) - Protected branches 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_protected-branches_ls.md: -------------------------------------------------------------------------------- 1 | ## golab protected-branches ls 2 | 3 | List protected branches 4 | 5 | ### Synopsis 6 | 7 | 8 | Gets a list of protected branches from a project. 9 | 10 | ``` 11 | golab protected-branches ls [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for ls 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab protected-branches](golab_protected-branches.md) - Protected branches 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_protected-branches_unprotect-branch.md: -------------------------------------------------------------------------------- 1 | ## golab protected-branches unprotect-branch 2 | 3 | Unprotect repository branches 4 | 5 | ### Synopsis 6 | 7 | 8 | Unprotects the given protected branch or wildcard protected branch 9 | 10 | ``` 11 | golab protected-branches unprotect-branch [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for unprotect-branch 18 | -i, --id string (required) The ID or URL-encoded path of the project owned by the authenticated user 19 | -n, --name string (required) The name of the branch or wildcard 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab protected-branches](golab_protected-branches.md) - Protected branches 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_block.md: -------------------------------------------------------------------------------- 1 | ## golab user block 2 | 3 | Block user 4 | 5 | ### Synopsis 6 | 7 | 8 | Blocks the specified user. Available only for admin. 9 | 10 | ``` 11 | golab user block [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for block 18 | -u, --user_id string (required) id or username of user to block 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab user](golab_user.md) - Manage Gitlab users 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_user_delete.md: -------------------------------------------------------------------------------- 1 | ## golab user delete 2 | 3 | User deletion 4 | 5 | ### Synopsis 6 | 7 | 8 | Deletes a user. Available only for administrators. This returns a 204 No Content status code if the operation was successfully or 404 if the resource was not found. 9 | 10 | ``` 11 | golab user delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -d, --hard_delete (optional) If true, contributions that would usually be moved to the ghost user will be deleted instead, as well as groups owned solely by this user. 18 | -h, --help help for delete 19 | -i, --id string (required) User ID or user name of user to be deleted 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab user](golab_user.md) - Manage Gitlab users 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_emails.md: -------------------------------------------------------------------------------- 1 | ## golab user emails 2 | 3 | User emails 4 | 5 | ### Synopsis 6 | 7 | 8 | Manage user's email' 9 | 10 | ``` 11 | golab user emails [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for emails 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab user](golab_user.md) - Manage Gitlab users 30 | * [golab user emails add](golab_user_emails_add.md) - Create new email (for user) 31 | * [golab user emails delete](golab_user_emails_delete.md) - Delete email for (current) user 32 | * [golab user emails get](golab_user_emails_get.md) - Single email 33 | * [golab user emails ls](golab_user_emails_ls.md) - List emails 34 | 35 | -------------------------------------------------------------------------------- /doc/golab_user_emails_add.md: -------------------------------------------------------------------------------- 1 | ## golab user emails add 2 | 3 | Create new email (for user) 4 | 5 | ### Synopsis 6 | 7 | 8 | If no user_id is given: Creates a new email owned by the currently authenticated user. 9 | If a user_id is given: Create new email owned by specified user. Available only for admin 10 | 11 | Will return created email on success. 12 | 13 | ``` 14 | golab user emails add [flags] 15 | ``` 16 | 17 | ### Options 18 | 19 | ``` 20 | -e, --email string (required) email address 21 | -h, --help help for add 22 | -u, --user_id string (optional) id or username of user to add email to 23 | ``` 24 | 25 | ### Options inherited from parent commands 26 | 27 | ``` 28 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 29 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 30 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 31 | ``` 32 | 33 | ### SEE ALSO 34 | * [golab user emails](golab_user_emails.md) - User emails 35 | 36 | -------------------------------------------------------------------------------- /doc/golab_user_emails_delete.md: -------------------------------------------------------------------------------- 1 | ## golab user emails delete 2 | 3 | Delete email for (current) user 4 | 5 | ### Synopsis 6 | 7 | 8 | If no user_id is given: Deletes email owned by currently authenticated user. 9 | If a user_id is given: Deletes email owned by a specified user. Available only for admin. 10 | 11 | ``` 12 | golab user emails delete [flags] 13 | ``` 14 | 15 | ### Options 16 | 17 | ``` 18 | -e, --email_id int (required) id of email to be deleted 19 | -h, --help help for delete 20 | -u, --user_id string (optional) id or username of user to delete email from 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab user emails](golab_user_emails.md) - User emails 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_user_emails_get.md: -------------------------------------------------------------------------------- 1 | ## golab user emails get 2 | 3 | Single email 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a single email. 9 | 10 | ``` 11 | golab user emails get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -e, --email_id int (required) email ID 18 | -h, --help help for get 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab user emails](golab_user_emails.md) - User emails 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_user_emails_ls.md: -------------------------------------------------------------------------------- 1 | ## golab user emails ls 2 | 3 | List emails 4 | 5 | ### Synopsis 6 | 7 | 8 | If no user_id is given: get a list of currently authenticated user's emails. 9 | If a user_id is given: Get a list of a specified user's emails. Available only for admin 10 | 11 | ``` 12 | golab user emails ls [flags] 13 | ``` 14 | 15 | ### Options 16 | 17 | ``` 18 | -h, --help help for ls 19 | -u, --user_id string (optional) The ID of the user or username of user to list emails for. If none is given, emails of currently logged in user are shown 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab user emails](golab_user_emails.md) - User emails 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_get-by-username.md: -------------------------------------------------------------------------------- 1 | ## golab user get-by-username 2 | 3 | Lookup users by username 4 | 5 | ### Synopsis 6 | 7 | 8 | Lookup users by username 9 | 10 | ``` 11 | golab user get-by-username [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get-by-username 18 | -u, --username string (required) Username of the user to look up 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab user](golab_user.md) - Manage Gitlab users 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_user_get.md: -------------------------------------------------------------------------------- 1 | ## golab user get 2 | 3 | Get a single user 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a single user. You can either provide --id or --username. 9 | 10 | ``` 11 | golab user get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id int (optional) The ID of a user 19 | -u, --username string (optional) Username of a user 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab user](golab_user.md) - Manage Gitlab users 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_impersonation-token_get-all.md: -------------------------------------------------------------------------------- 1 | ## golab user impersonation-token get-all 2 | 3 | Get all impersonation tokens of a user 4 | 5 | ### Synopsis 6 | 7 | 8 | It retrieves every impersonation token of the user. 9 | 10 | ``` 11 | golab user impersonation-token get-all [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get-all 18 | -s, --state string (optional) filter tokens based on state (all, active, inactive) 19 | -u, --user_id string (required) The ID of the user or the name of the user to get tokens for 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab user impersonation-token](golab_user_impersonation-token.md) - Impersonation token 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_impersonation-token_get.md: -------------------------------------------------------------------------------- 1 | ## golab user impersonation-token get 2 | 3 | Get an impersonation token of a user 4 | 5 | ### Synopsis 6 | 7 | 8 | It shows a user's impersonation token (admins only). 9 | 10 | ``` 11 | golab user impersonation-token get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -t, --impersonation_token_id int (required) The ID of the impersonation token 19 | -u, --user_id string (required) The ID of the user or the username for which to get a token 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab user impersonation-token](golab_user_impersonation-token.md) - Impersonation token 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_impersonation-token_revoke.md: -------------------------------------------------------------------------------- 1 | ## golab user impersonation-token revoke 2 | 3 | Revoke an impersonation token (admin only) 4 | 5 | ### Synopsis 6 | 7 | 8 | It revokes an impersonation token. Requires admin permissions. 9 | 10 | ``` 11 | golab user impersonation-token revoke [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for revoke 18 | -t, --impersonation_token_id int (required) The ID of the impersonation token 19 | -u, --user_id string (required) The ID of the user or username of user to revoke token for 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab user impersonation-token](golab_user_impersonation-token.md) - Impersonation token 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_ssh-keys.md: -------------------------------------------------------------------------------- 1 | ## golab user ssh-keys 2 | 3 | Manage a user's SSH keys 4 | 5 | ### Synopsis 6 | 7 | 8 | SSH key management for users 9 | 10 | ``` 11 | golab user ssh-keys [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for ssh-keys 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab user](golab_user.md) - Manage Gitlab users 30 | * [golab user ssh-keys add](golab_user_ssh-keys_add.md) - Add SSH key 31 | * [golab user ssh-keys delete](golab_user_ssh-keys_delete.md) - Delete SSH key 32 | * [golab user ssh-keys get](golab_user_ssh-keys_get.md) - Single SSH key 33 | * [golab user ssh-keys ls](golab_user_ssh-keys_ls.md) - List SSH keys 34 | 35 | -------------------------------------------------------------------------------- /doc/golab_user_ssh-keys_add.md: -------------------------------------------------------------------------------- 1 | ## golab user ssh-keys add 2 | 3 | Add SSH key 4 | 5 | ### Synopsis 6 | 7 | 8 | Creates a new key (owned by the currently authenticated user, if no user id was given) 9 | 10 | ``` 11 | golab user ssh-keys add [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for add 18 | -k, --key string (required) Public SSH key 19 | -t, --title string (required) New SSH Key's title 20 | -u, --user string (required) User ID or user name of user to delete SSH key from 21 | ``` 22 | 23 | ### Options inherited from parent commands 24 | 25 | ``` 26 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 27 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 28 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 29 | ``` 30 | 31 | ### SEE ALSO 32 | * [golab user ssh-keys](golab_user_ssh-keys.md) - Manage a user's SSH keys 33 | 34 | -------------------------------------------------------------------------------- /doc/golab_user_ssh-keys_delete.md: -------------------------------------------------------------------------------- 1 | ## golab user ssh-keys delete 2 | 3 | Delete SSH key 4 | 5 | ### Synopsis 6 | 7 | 8 | Deletes key owned by a specified user (available only for admin) or by currently logged in user. 9 | 10 | ``` 11 | golab user ssh-keys delete [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for delete 18 | -k, --key_id int (required) key id of SSH key to be deleted 19 | -u, --user string (required) User ID or user name of user to delete SSH key from 20 | ``` 21 | 22 | ### Options inherited from parent commands 23 | 24 | ``` 25 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 26 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 27 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 28 | ``` 29 | 30 | ### SEE ALSO 31 | * [golab user ssh-keys](golab_user_ssh-keys.md) - Manage a user's SSH keys 32 | 33 | -------------------------------------------------------------------------------- /doc/golab_user_ssh-keys_get.md: -------------------------------------------------------------------------------- 1 | ## golab user ssh-keys get 2 | 3 | Single SSH key 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a single SSH key for a given user. 9 | 10 | ``` 11 | golab user ssh-keys get [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for get 18 | -i, --id int (required) key id of SSH key to be shown 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab user ssh-keys](golab_user_ssh-keys.md) - Manage a user's SSH keys 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_user_ssh-keys_ls.md: -------------------------------------------------------------------------------- 1 | ## golab user ssh-keys ls 2 | 3 | List SSH keys 4 | 5 | ### Synopsis 6 | 7 | 8 | Get a list of (currently authenticated user's) SSH keys. 9 | 10 | ``` 11 | golab user ssh-keys ls [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for ls 18 | -i, --id string (optional) id of user to show SSH keys for - if none is given, logged in user will be used 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab user ssh-keys](golab_user_ssh-keys.md) - Manage a user's SSH keys 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_user_unblock.md: -------------------------------------------------------------------------------- 1 | ## golab user unblock 2 | 3 | Unblock user 4 | 5 | ### Synopsis 6 | 7 | 8 | Unblocks the specified user. Available only for admin 9 | 10 | ``` 11 | golab user unblock [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for unblock 18 | -u, --user_id string (required) id or username of user to unblock 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab user](golab_user.md) - Manage Gitlab users 31 | 32 | -------------------------------------------------------------------------------- /doc/golab_user_update.md: -------------------------------------------------------------------------------- 1 | ## golab user update 2 | 3 | Update a user 4 | 5 | ### Synopsis 6 | 7 | 8 | Allows updating a user 9 | 10 | ``` 11 | golab user update 12 | ``` 13 | 14 | ### Options inherited from parent commands 15 | 16 | ``` 17 | --config string config file (default is ./golab.yml and $HOME/.golab.yml) 18 | ``` 19 | 20 | ### SEE ALSO 21 | * [golab user](golab_user.md) - Manage Gitlab users 22 | 23 | ###### Auto generated by spf13/cobra on 13-Nov-2017 24 | -------------------------------------------------------------------------------- /doc/golab_version.md: -------------------------------------------------------------------------------- 1 | ## golab version 2 | 3 | Gitlab version 4 | 5 | ### Synopsis 6 | 7 | 8 | Retrieve version information for this GitLab instance. Responds 200 OK for authenticated users. 9 | 10 | ``` 11 | golab version [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for version 18 | ``` 19 | 20 | ### Options inherited from parent commands 21 | 22 | ``` 23 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 24 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 25 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 26 | ``` 27 | 28 | ### SEE ALSO 29 | * [golab](golab.md) - Gitlab CLI written in Go 30 | 31 | -------------------------------------------------------------------------------- /doc/golab_zsh-completion.md: -------------------------------------------------------------------------------- 1 | ## golab zsh-completion 2 | 3 | Generate ZSH completion file 4 | 5 | ### Synopsis 6 | 7 | 8 | Generate ZSH completion file 9 | 10 | ``` 11 | golab zsh-completion [flags] 12 | ``` 13 | 14 | ### Options 15 | 16 | ``` 17 | -h, --help help for zsh-completion 18 | -p, --path string (required) Path into which to render ZSH completion 19 | ``` 20 | 21 | ### Options inherited from parent commands 22 | 23 | ``` 24 | --ca-file string (optional) provides a .pem file to be used in certificates pool for SSL connection 25 | --ca-path string (optional) provides a directory with .pem certificates to be used for SSL connection 26 | --config string (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml) 27 | ``` 28 | 29 | ### SEE ALSO 30 | * [golab](golab.md) - Gitlab CLI written in Go 31 | 32 | -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- 1 | targets := $(wildcard *.go) 2 | 3 | compile: $(targets) 4 | go install github.com/michaellihs/golab 5 | 6 | gendoc: compile 7 | golab gendoc -p doc 8 | golab zsh-completion --path zsh/_golab 9 | 10 | test: compile 11 | ginkgo -r -v 12 | -------------------------------------------------------------------------------- /vendor/github.com/anaskhan96/soup/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Anas Khan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/armon/consul-api/README.md: -------------------------------------------------------------------------------- 1 | consul-api 2 | ========== 3 | 4 | *DEPRECATED* Please use [consul api package](https://github.com/hashicorp/consul/tree/master/api) instead. 5 | Godocs for that package [are here](http://godoc.org/github.com/hashicorp/consul/api). 6 | 7 | This package provides the `consulapi` package which attempts to 8 | provide programmatic access to the full Consul API. 9 | 10 | Currently, all of the Consul APIs included in version 0.4 are supported. 11 | 12 | Documentation 13 | ============= 14 | 15 | The full documentation is available on [Godoc](http://godoc.org/github.com/armon/consul-api) 16 | 17 | Usage 18 | ===== 19 | 20 | Below is an example of using the Consul client: 21 | 22 | ```go 23 | // Get a new client, with KV endpoints 24 | client, _ := consulapi.NewClient(consulapi.DefaultConfig()) 25 | kv := client.KV() 26 | 27 | // PUT a new KV pair 28 | p := &consulapi.KVPair{Key: "foo", Value: []byte("test")} 29 | _, err := kv.Put(p, nil) 30 | if err != nil { 31 | panic(err) 32 | } 33 | 34 | // Lookup the pair 35 | pair, _, err := kv.Get("foo", nil) 36 | if err != nil { 37 | panic(err) 38 | } 39 | fmt.Printf("KV: %v", pair) 40 | 41 | ``` 42 | 43 | -------------------------------------------------------------------------------- /vendor/github.com/armon/consul-api/status.go: -------------------------------------------------------------------------------- 1 | package consulapi 2 | 3 | // Status can be used to query the Status endpoints 4 | type Status struct { 5 | c *Client 6 | } 7 | 8 | // Status returns a handle to the status endpoints 9 | func (c *Client) Status() *Status { 10 | return &Status{c} 11 | } 12 | 13 | // Leader is used to query for a known leader 14 | func (s *Status) Leader() (string, error) { 15 | r := s.c.newRequest("GET", "/v1/status/leader") 16 | _, resp, err := requireOK(s.c.doRequest(r)) 17 | if err != nil { 18 | return "", err 19 | } 20 | defer resp.Body.Close() 21 | 22 | var leader string 23 | if err := decodeBody(resp, &leader); err != nil { 24 | return "", err 25 | } 26 | return leader, nil 27 | } 28 | 29 | // Peers is used to query for a known raft peers 30 | func (s *Status) Peers() ([]string, error) { 31 | r := s.c.newRequest("GET", "/v1/status/peers") 32 | _, resp, err := requireOK(s.c.doRequest(r)) 33 | if err != nil { 34 | return nil, err 35 | } 36 | defer resp.Body.Close() 37 | 38 | var peers []string 39 | if err := decodeBody(resp, &peers); err != nil { 40 | return nil, err 41 | } 42 | return peers, nil 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2014 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/client/cancelreq.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 | // borrowed from golang/net/context/ctxhttp/cancelreq.go 6 | 7 | package client 8 | 9 | import "net/http" 10 | 11 | func requestCanceler(tr CancelableTransport, req *http.Request) func() { 12 | ch := make(chan struct{}) 13 | req.Cancel = ch 14 | 15 | return func() { 16 | close(ch) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/client/cluster_error.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The etcd 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 client 16 | 17 | import "fmt" 18 | 19 | type ClusterError struct { 20 | Errors []error 21 | } 22 | 23 | func (ce *ClusterError) Error() string { 24 | s := ErrClusterUnavailable.Error() 25 | for i, e := range ce.Errors { 26 | s += fmt.Sprintf("; error #%d: %s\n", i, e) 27 | } 28 | return s 29 | } 30 | 31 | func (ce *ClusterError) Detail() string { 32 | s := "" 33 | for i, e := range ce.Errors { 34 | s += fmt.Sprintf("error #%d: %s\n", i, e) 35 | } 36 | return s 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/pkg/pathutil/path.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package pathutil implements utility functions for handling slash-separated 6 | // paths. 7 | package pathutil 8 | 9 | import "path" 10 | 11 | // CanonicalURLPath returns the canonical url path for p, which follows the rules: 12 | // 1. the path always starts with "/" 13 | // 2. replace multiple slashes with a single slash 14 | // 3. replace each '.' '..' path name element with equivalent one 15 | // 4. keep the trailing slash 16 | // The function is borrowed from stdlib http.cleanPath in server.go. 17 | func CanonicalURLPath(p string) string { 18 | if p == "" { 19 | return "/" 20 | } 21 | if p[0] != '/' { 22 | p = "/" + p 23 | } 24 | np := path.Clean(p) 25 | // path.Clean removes trailing slash except for root, 26 | // put the trailing slash back if necessary. 27 | if p[len(p)-1] == '/' && np != "/" { 28 | np += "/" 29 | } 30 | return np 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/pkg/types/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The etcd 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 types declares various data types and implements type-checking 16 | // functions. 17 | package types 18 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/pkg/types/slice.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The etcd 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 types 16 | 17 | // Uint64Slice implements sort interface 18 | type Uint64Slice []uint64 19 | 20 | func (p Uint64Slice) Len() int { return len(p) } 21 | func (p Uint64Slice) Less(i, j int) bool { return p[i] < p[j] } 22 | func (p Uint64Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } 23 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/go-semver/semver/sort.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013-2015 CoreOS, Inc. 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 semver 16 | 17 | import ( 18 | "sort" 19 | ) 20 | 21 | type Versions []*Version 22 | 23 | func (s Versions) Len() int { 24 | return len(s) 25 | } 26 | 27 | func (s Versions) Swap(i, j int) { 28 | s[i], s[j] = s[j], s[i] 29 | } 30 | 31 | func (s Versions) Less(i, j int) bool { 32 | return s[i].LessThan(*s[j]) 33 | } 34 | 35 | // Sort sorts the given slice of Version 36 | func Sort(versions []*Version) { 37 | sort.Sort(Versions(versions)) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go: -------------------------------------------------------------------------------- 1 | package md2man 2 | 3 | import ( 4 | "github.com/russross/blackfriday" 5 | ) 6 | 7 | func Render(doc []byte) []byte { 8 | renderer := RoffRenderer(0) 9 | extensions := 0 10 | extensions |= blackfriday.EXTENSION_NO_INTRA_EMPHASIS 11 | extensions |= blackfriday.EXTENSION_TABLES 12 | extensions |= blackfriday.EXTENSION_FENCED_CODE 13 | extensions |= blackfriday.EXTENSION_AUTOLINK 14 | extensions |= blackfriday.EXTENSION_SPACE_HEADERS 15 | extensions |= blackfriday.EXTENSION_FOOTNOTES 16 | extensions |= blackfriday.EXTENSION_TITLEBLOCK 17 | 18 | return blackfriday.Markdown(doc, renderer, extensions) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/fen.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 | // +build solaris 6 | 7 | package fsnotify 8 | 9 | import ( 10 | "errors" 11 | ) 12 | 13 | // Watcher watches a set of files, delivering events to a channel. 14 | type Watcher struct { 15 | Events chan Event 16 | Errors chan error 17 | } 18 | 19 | // NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. 20 | func NewWatcher() (*Watcher, error) { 21 | return nil, errors.New("FEN based watcher not yet supported for fsnotify\n") 22 | } 23 | 24 | // Close removes all watches and closes the events channel. 25 | func (w *Watcher) Close() error { 26 | return nil 27 | } 28 | 29 | // Add starts watching the named file or directory (non-recursively). 30 | func (w *Watcher) Add(name string) error { 31 | return nil 32 | } 33 | 34 | // Remove stops watching the the named file or directory (non-recursively). 35 | func (w *Watcher) Remove(name string) error { 36 | return nil 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build freebsd openbsd netbsd dragonfly 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | // note: this constant is not defined on BSD 12 | const openMode = unix.O_EVTONLY 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | test: 4 | go test $(TEST) $(TESTARGS) -timeout=3s -parallel=4 5 | go vet $(TEST) 6 | go test $(TEST) -race 7 | 8 | .PHONY: test 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/doc.go: -------------------------------------------------------------------------------- 1 | // Package rootcerts contains functions to aid in loading CA certificates for 2 | // TLS connections. 3 | // 4 | // In addition, its default behavior on Darwin works around an open issue [1] 5 | // in Go's crypto/x509 that prevents certicates from being loaded from the 6 | // System or Login keychains. 7 | // 8 | // [1] https://github.com/golang/go/issues/14514 9 | package rootcerts 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/rootcerts_base.go: -------------------------------------------------------------------------------- 1 | // +build !darwin 2 | 3 | package rootcerts 4 | 5 | import "crypto/x509" 6 | 7 | // LoadSystemCAs does nothing on non-Darwin systems. We return nil so that 8 | // default behavior of standard TLS config libraries is triggered, which is to 9 | // load system certs. 10 | func LoadSystemCAs() (*x509.CertPool, error) { 11 | return nil, nil 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | fmt: generate 6 | go fmt ./... 7 | 8 | test: generate 9 | go get -t ./... 10 | go test $(TEST) $(TESTARGS) 11 | 12 | generate: 13 | go generate ./... 14 | 15 | updatedeps: 16 | go get -u golang.org/x/tools/cmd/stringer 17 | 18 | .PHONY: default generate test updatedeps 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2015 3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl 4 | environment: 5 | GOPATH: c:\gopath 6 | init: 7 | - git config --global core.autocrlf true 8 | install: 9 | - cmd: >- 10 | echo %Path% 11 | 12 | go version 13 | 14 | go env 15 | 16 | go get -t ./... 17 | 18 | build_script: 19 | - cmd: go test -v ./... 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl.go: -------------------------------------------------------------------------------- 1 | // Package hcl decodes HCL into usable Go structures. 2 | // 3 | // hcl input can come in either pure HCL format or JSON format. 4 | // It can be parsed into an AST, and then decoded into a structure, 5 | // or it can be decoded directly from a string into a structure. 6 | // 7 | // If you choose to parse HCL into a raw AST, the benefit is that you 8 | // can write custom visitor implementations to implement custom 9 | // semantic checks. By default, HCL does not perform any semantic 10 | // checks. 11 | package hcl 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl/parser/error.go: -------------------------------------------------------------------------------- 1 | package parser 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/hcl/hcl/token" 7 | ) 8 | 9 | // PosError is a parse error that contains a position. 10 | type PosError struct { 11 | Pos token.Pos 12 | Err error 13 | } 14 | 15 | func (e *PosError) Error() string { 16 | return fmt.Sprintf("At %s: %s", e.Pos, e.Err) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/lex.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | import ( 4 | "unicode" 5 | "unicode/utf8" 6 | ) 7 | 8 | type lexModeValue byte 9 | 10 | const ( 11 | lexModeUnknown lexModeValue = iota 12 | lexModeHcl 13 | lexModeJson 14 | ) 15 | 16 | // lexMode returns whether we're going to be parsing in JSON 17 | // mode or HCL mode. 18 | func lexMode(v []byte) lexModeValue { 19 | var ( 20 | r rune 21 | w int 22 | offset int 23 | ) 24 | 25 | for { 26 | r, w = utf8.DecodeRune(v[offset:]) 27 | offset += w 28 | if unicode.IsSpace(r) { 29 | continue 30 | } 31 | if r == '{' { 32 | return lexModeJson 33 | } 34 | break 35 | } 36 | 37 | return lexModeHcl 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/parse.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/hcl/hcl/ast" 7 | hclParser "github.com/hashicorp/hcl/hcl/parser" 8 | jsonParser "github.com/hashicorp/hcl/json/parser" 9 | ) 10 | 11 | // ParseBytes accepts as input byte slice and returns ast tree. 12 | // 13 | // Input can be either JSON or HCL 14 | func ParseBytes(in []byte) (*ast.File, error) { 15 | return parse(in) 16 | } 17 | 18 | // ParseString accepts input as a string and returns ast tree. 19 | func ParseString(input string) (*ast.File, error) { 20 | return parse([]byte(input)) 21 | } 22 | 23 | func parse(in []byte) (*ast.File, error) { 24 | switch lexMode(in) { 25 | case lexModeHcl: 26 | return hclParser.Parse(in) 27 | case lexModeJson: 28 | return jsonParser.Parse(in) 29 | } 30 | 31 | return nil, fmt.Errorf("unknown config format") 32 | } 33 | 34 | // Parse parses the given input and returns the root object. 35 | // 36 | // The input format can be either HCL or JSON. 37 | func Parse(input string) (*ast.File, error) { 38 | return parse([]byte(input)) 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/howeyc/gopass/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012 Chris Howey 4 | 5 | Permission to use, copy, modify, and distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/howeyc/gopass/README.md: -------------------------------------------------------------------------------- 1 | # getpasswd in Go [![GoDoc](https://godoc.org/github.com/howeyc/gopass?status.svg)](https://godoc.org/github.com/howeyc/gopass) [![Build Status](https://secure.travis-ci.org/howeyc/gopass.png?branch=master)](http://travis-ci.org/howeyc/gopass) 2 | 3 | Retrieve password from user terminal or piped input without echo. 4 | 5 | Verified on BSD, Linux, and Windows. 6 | 7 | Example: 8 | ```go 9 | package main 10 | 11 | import "fmt" 12 | import "github.com/howeyc/gopass" 13 | 14 | func main() { 15 | fmt.Printf("Password: ") 16 | 17 | // Silent. For printing *'s use gopass.GetPasswdMasked() 18 | pass, err := gopass.GetPasswd() 19 | if err != nil { 20 | // Handle gopass.ErrInterrupted or getch() read error 21 | } 22 | 23 | // Do something with pass 24 | } 25 | ``` 26 | 27 | Caution: Multi-byte characters not supported! 28 | -------------------------------------------------------------------------------- /vendor/github.com/howeyc/gopass/terminal.go: -------------------------------------------------------------------------------- 1 | // +build !solaris 2 | 3 | package gopass 4 | 5 | import "golang.org/x/crypto/ssh/terminal" 6 | 7 | type terminalState struct { 8 | state *terminal.State 9 | } 10 | 11 | func isTerminal(fd uintptr) bool { 12 | return terminal.IsTerminal(int(fd)) 13 | } 14 | 15 | func makeRaw(fd uintptr) (*terminalState, error) { 16 | state, err := terminal.MakeRaw(int(fd)) 17 | 18 | return &terminalState{ 19 | state: state, 20 | }, err 21 | } 22 | 23 | func restore(fd uintptr, oldState *terminalState) error { 24 | return terminal.Restore(int(fd), oldState.state) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Alan Shreve 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/inconshreveable/mousetrap/README.md: -------------------------------------------------------------------------------- 1 | # mousetrap 2 | 3 | mousetrap is a tiny library that answers a single question. 4 | 5 | On a Windows machine, was the process invoked by someone double clicking on 6 | the executable file while browsing in explorer? 7 | 8 | ### Motivation 9 | 10 | Windows developers unfamiliar with command line tools will often "double-click" 11 | the executable for a tool. Because most CLI tools print the help and then exit 12 | when invoked without arguments, this is often very frustrating for those users. 13 | 14 | mousetrap provides a way to detect these invocations so that you can provide 15 | more helpful behavior and instructions on how to run the CLI tool. To see what 16 | this looks like, both from an organizational and a technical perspective, see 17 | https://inconshreveable.com/09-09-2014/sweat-the-small-stuff/ 18 | 19 | ### The interface 20 | 21 | The library exposes a single interface: 22 | 23 | func StartedByExplorer() (bool) 24 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/trap_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package mousetrap 4 | 5 | // StartedByExplorer returns true if the program was invoked by the user 6 | // double-clicking on the executable from explorer.exe 7 | // 8 | // It is conservative and returns false if any of the internal calls fail. 9 | // It does not guarantee that the program was run from a terminal. It only can tell you 10 | // whether it was launched from explorer.exe 11 | // 12 | // On non-Windows platforms, it always returns false. 13 | func StartedByExplorer() bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/copier/Guardfile: -------------------------------------------------------------------------------- 1 | guard 'gotest' do 2 | watch(%r{\.go$}) 3 | end 4 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/copier/License: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Jinzhu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vendor/github.com/magiconair/properties/integrate.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Frank Schroeder. All rights reserved. 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 properties 6 | 7 | import "flag" 8 | 9 | // MustFlag sets flags that are skipped by dst.Parse when p contains 10 | // the respective key for flag.Flag.Name. 11 | // 12 | // It's use is recommended with command line arguments as in: 13 | // flag.Parse() 14 | // p.MustFlag(flag.CommandLine) 15 | func (p *Properties) MustFlag(dst *flag.FlagSet) { 16 | m := make(map[string]*flag.Flag) 17 | dst.VisitAll(func(f *flag.Flag) { 18 | m[f.Name] = f 19 | }) 20 | dst.Visit(func(f *flag.Flag) { 21 | delete(m, f.Name) // overridden 22 | }) 23 | 24 | for name, f := range m { 25 | v, ok := p.Get(name) 26 | if !ok { 27 | continue 28 | } 29 | 30 | if err := f.Value.Set(v); err != nil { 31 | ErrorHandler(err) 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/magiconair/properties/rangecheck.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Frank Schroeder. All rights reserved. 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 properties 6 | 7 | import ( 8 | "fmt" 9 | "math" 10 | ) 11 | 12 | // make this a var to overwrite it in a test 13 | var is32Bit = ^uint(0) == math.MaxUint32 14 | 15 | // intRangeCheck checks if the value fits into the int type and 16 | // panics if it does not. 17 | func intRangeCheck(key string, v int64) int { 18 | if is32Bit && (v < math.MinInt32 || v > math.MaxInt32) { 19 | panic(fmt.Sprintf("Value %d for key %s out of range", v, key)) 20 | } 21 | return int(v) 22 | } 23 | 24 | // uintRangeCheck checks if the value fits into the uint type and 25 | // panics if it does not. 26 | func uintRangeCheck(key string, v uint64) uint { 27 | if is32Bit && v > math.MaxUint32 { 28 | panic(fmt.Sprintf("Value %d for key %s out of range", v, key)) 29 | } 30 | return uint(v) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/michaellihs/gogpat/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | # Gopkg.toml example 3 | # 4 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 5 | # for detailed Gopkg.toml documentation. 6 | # 7 | # required = ["github.com/user/thing/cmd/thing"] 8 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 9 | # 10 | # [[constraint]] 11 | # name = "github.com/user/project" 12 | # version = "1.0.0" 13 | # 14 | # [[constraint]] 15 | # name = "github.com/user/project2" 16 | # branch = "dev" 17 | # source = "github.com/myfork/project2" 18 | # 19 | # [[override]] 20 | # name = "github.com/x/y" 21 | # version = "2.4.0" 22 | 23 | 24 | [[constraint]] 25 | name = "github.com/anaskhan96/soup" 26 | version = "1.0.1" 27 | 28 | [[constraint]] 29 | branch = "master" 30 | name = "github.com/araddon/dateparse" 31 | -------------------------------------------------------------------------------- /vendor/github.com/michaellihs/gogpat/Makefile: -------------------------------------------------------------------------------- 1 | PROJECT_NAME := "gogpat" 2 | PKG := "github.com/solidnerd/$(PROJECT_NAME)" 3 | PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/) 4 | GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go) 5 | 6 | .PHONY: all dep build clean test coverage coverhtml lint ci 7 | 8 | all: build 9 | 10 | lint: ## Lint the files 11 | @golint -set_exit_status ${PKG_LIST} 12 | 13 | test: ## Run unittests 14 | @go test -short ${PKG_LIST} 15 | 16 | ci: ## Runs test in an ci bootstaps a gitlab instance 17 | ci/test.sh ${PKG_LIST} 18 | 19 | race: dep ## Run data race detector 20 | @go test -race -short ${PKG_LIST} 21 | 22 | dep: ## Get the dependencies 23 | @go get -v -d ./... 24 | @go get -u github.com/golang/lint/golint 25 | 26 | build: dep ## Build the binary file 27 | @go build -i -o bin/${PROJECT_NAME} -v $(PKG) 28 | 29 | clean: ## Remove previous build 30 | @rm -rf bin/ 31 | 32 | help: ## Display this help screen 33 | @grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2} 34 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-homedir/README.md: -------------------------------------------------------------------------------- 1 | # go-homedir 2 | 3 | This is a Go library for detecting the user's home directory without 4 | the use of cgo, so the library can be used in cross-compilation environments. 5 | 6 | Usage is incredibly simple, just call `homedir.Dir()` to get the home directory 7 | for a user, and `homedir.Expand()` to expand the `~` in a path to the home 8 | directory. 9 | 10 | **Why not just use `os/user`?** The built-in `os/user` package requires 11 | cgo on Darwin systems. This means that any Go code that uses that package 12 | cannot cross compile. But 99% of the time the use for `os/user` is just to 13 | retrieve the home directory, which we can do for the current user without 14 | cgo. This library does that, enabling cross-compilation. 15 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/clean.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # fail out of the script if anything here fails 3 | set -e 4 | 5 | # clear out stuff generated by test.sh 6 | rm -rf src test_program_bin toml-test 7 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/example-crlf.toml: -------------------------------------------------------------------------------- 1 | # This is a TOML document. Boom. 2 | 3 | title = "TOML Example" 4 | 5 | [owner] 6 | name = "Tom Preston-Werner" 7 | organization = "GitHub" 8 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." 9 | dob = 1979-05-27T07:32:00Z # First class dates? Why not? 10 | 11 | [database] 12 | server = "192.168.1.1" 13 | ports = [ 8001, 8001, 8002 ] 14 | connection_max = 5000 15 | enabled = true 16 | 17 | [servers] 18 | 19 | # You can indent as you please. Tabs or spaces. TOML don't care. 20 | [servers.alpha] 21 | ip = "10.0.0.1" 22 | dc = "eqdc10" 23 | 24 | [servers.beta] 25 | ip = "10.0.0.2" 26 | dc = "eqdc10" 27 | 28 | [clients] 29 | data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it 30 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/example.toml: -------------------------------------------------------------------------------- 1 | # This is a TOML document. Boom. 2 | 3 | title = "TOML Example" 4 | 5 | [owner] 6 | name = "Tom Preston-Werner" 7 | organization = "GitHub" 8 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." 9 | dob = 1979-05-27T07:32:00Z # First class dates? Why not? 10 | 11 | [database] 12 | server = "192.168.1.1" 13 | ports = [ 8001, 8001, 8002 ] 14 | connection_max = 5000 15 | enabled = true 16 | 17 | [servers] 18 | 19 | # You can indent as you please. Tabs or spaces. TOML don't care. 20 | [servers.alpha] 21 | ip = "10.0.0.1" 22 | dc = "eqdc10" 23 | 24 | [servers.beta] 25 | ip = "10.0.0.2" 26 | dc = "eqdc10" 27 | 28 | [clients] 29 | data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it 30 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/position.go: -------------------------------------------------------------------------------- 1 | // Position support for go-toml 2 | 3 | package toml 4 | 5 | import ( 6 | "fmt" 7 | ) 8 | 9 | // Position of a document element within a TOML document. 10 | // 11 | // Line and Col are both 1-indexed positions for the element's line number and 12 | // column number, respectively. Values of zero or less will cause Invalid(), 13 | // to return true. 14 | type Position struct { 15 | Line int // line within the document 16 | Col int // column within the line 17 | } 18 | 19 | // String representation of the position. 20 | // Displays 1-indexed line and column numbers. 21 | func (p Position) String() string { 22 | return fmt.Sprintf("(%d, %d)", p.Line, p.Col) 23 | } 24 | 25 | // Invalid returns whether or not the position is valid (i.e. with negative or 26 | // null values) 27 | func (p Position) Invalid() bool { 28 | return p.Line <= 0 || p.Col <= 0 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Dmitri Shuralyov 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/README.md: -------------------------------------------------------------------------------- 1 | # sanitized_anchor_name [![Build Status](https://travis-ci.org/shurcooL/sanitized_anchor_name.svg?branch=master)](https://travis-ci.org/shurcooL/sanitized_anchor_name) [![GoDoc](https://godoc.org/github.com/shurcooL/sanitized_anchor_name?status.svg)](https://godoc.org/github.com/shurcooL/sanitized_anchor_name) 2 | 3 | Package sanitized_anchor_name provides a func to create sanitized anchor names. 4 | 5 | Its logic can be reused by multiple packages to create interoperable anchor names and links to those anchors. 6 | 7 | At this time, it does not try to ensure that generated anchor names are unique, that responsibility falls on the caller. 8 | 9 | Installation 10 | ------------ 11 | 12 | ```bash 13 | go get -u github.com/shurcooL/sanitized_anchor_name 14 | ``` 15 | 16 | Example 17 | ------- 18 | 19 | ```Go 20 | anchorName := sanitized_anchor_name.Create("This is a header") 21 | 22 | fmt.Println(anchorName) 23 | 24 | // Output: 25 | // this-is-a-header 26 | ``` 27 | 28 | License 29 | ------- 30 | 31 | - [MIT License](LICENSE) 32 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/main.go: -------------------------------------------------------------------------------- 1 | // Package sanitized_anchor_name provides a func to create sanitized anchor names. 2 | // 3 | // Its logic can be reused by multiple packages to create interoperable anchor names 4 | // and links to those anchors. 5 | // 6 | // At this time, it does not try to ensure that generated anchor names 7 | // are unique, that responsibility falls on the caller. 8 | package sanitized_anchor_name // import "github.com/shurcooL/sanitized_anchor_name" 9 | 10 | import "unicode" 11 | 12 | // Create returns a sanitized anchor name for the given text. 13 | func Create(text string) string { 14 | var anchorName []rune 15 | var futureDash = false 16 | for _, r := range []rune(text) { 17 | switch { 18 | case unicode.IsLetter(r) || unicode.IsNumber(r): 19 | if futureDash && len(anchorName) > 0 { 20 | anchorName = append(anchorName, '-') 21 | } 22 | futureDash = false 23 | anchorName = append(anchorName, unicode.ToLower(r)) 24 | default: 25 | futureDash = true 26 | } 27 | } 28 | return string(anchorName) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | type Termios unix.Termios 11 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/crypto/ssh/terminal" 10 | ) 11 | 12 | func checkIfTerminal(w io.Writer) bool { 13 | switch v := w.(type) { 14 | case *os.File: 15 | return terminal.IsTerminal(int(v.Fd())) 16 | default: 17 | return false 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build !appengine 7 | 8 | package logrus 9 | 10 | import "golang.org/x/sys/unix" 11 | 12 | const ioctlReadTermios = unix.TCGETS 13 | 14 | type Termios unix.Termios 15 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: '{build}' 2 | clone_folder: C:\gopath\src\github.com\spf13\afero 3 | environment: 4 | GOPATH: C:\gopath 5 | build_script: 6 | - cmd: >- 7 | go version 8 | 9 | go env 10 | 11 | go get -v github.com/spf13/afero/... 12 | 13 | go build github.com/spf13/afero 14 | test_script: 15 | - cmd: go test -v github.com/spf13/afero 16 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/const_bsds.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2016 Steve Francia . 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 | // 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 | // +build darwin openbsd freebsd netbsd dragonfly 15 | 16 | package afero 17 | 18 | import ( 19 | "syscall" 20 | ) 21 | 22 | const BADFD = syscall.EBADF 23 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/const_win_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2016 Steve Francia . 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 | // 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 | // +build !darwin 14 | // +build !openbsd 15 | // +build !freebsd 16 | // +build !dragonfly 17 | // +build !netbsd 18 | 19 | package afero 20 | 21 | import ( 22 | "syscall" 23 | ) 24 | 25 | const BADFD = syscall.EBADFD 26 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/mem/dir.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2014 Steve Francia . 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 | // 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 mem 15 | 16 | type Dir interface { 17 | Len() int 18 | Names() []string 19 | Files() []*FileData 20 | Add(*FileData) 21 | Remove(*FileData) 22 | } 23 | 24 | func RemoveFromMemDir(dir *FileData, f *FileData) { 25 | dir.memDir.Remove(f) 26 | } 27 | 28 | func AddToMemDir(dir *FileData, f *FileData) { 29 | dir.memDir.Add(f) 30 | } 31 | 32 | func InitializeDir(d *FileData) { 33 | if d.memDir == nil { 34 | d.dir = true 35 | d.memDir = &DirMap{} 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/memradix.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2014 Steve Francia . 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 | // 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 afero 15 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Steve Francia 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/cobra/main.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2015 Steve Francia . 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 | // 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 main 15 | 16 | import "github.com/spf13/cobra/cobra/cmd" 17 | 18 | func main() { 19 | cmd.Execute() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_notwin.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package cobra 4 | 5 | var preExecHookFn func(*Command) 6 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_win.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package cobra 4 | 5 | import ( 6 | "os" 7 | "time" 8 | 9 | "github.com/inconshreveable/mousetrap" 10 | ) 11 | 12 | var preExecHookFn = preExecHook 13 | 14 | func preExecHook(c *Command) { 15 | if MousetrapHelpText != "" && mousetrap.StartedByExplorer() { 16 | c.Print(MousetrapHelpText) 17 | time.Sleep(5 * time.Second) 18 | os.Exit(1) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/doc/man_docs.md: -------------------------------------------------------------------------------- 1 | # Generating Man Pages For Your Own cobra.Command 2 | 3 | Generating man pages from a cobra command is incredibly easy. An example is as follows: 4 | 5 | ```go 6 | package main 7 | 8 | import ( 9 | "log" 10 | 11 | "github.com/spf13/cobra" 12 | "github.com/spf13/cobra/doc" 13 | ) 14 | 15 | func main() { 16 | cmd := &cobra.Command{ 17 | Use: "test", 18 | Short: "my test program", 19 | } 20 | header := &doc.GenManHeader{ 21 | Title: "MINE", 22 | Section: "3", 23 | } 24 | err := doc.GenManTree(cmd, header, "/tmp") 25 | if err != nil { 26 | log.Fatal(err) 27 | } 28 | } 29 | ``` 30 | 31 | That will get you a man page `/tmp/test.3` 32 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/verify/gofmt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -o errexit 4 | set -o nounset 5 | set -o pipefail 6 | 7 | ROOT=$(dirname "${BASH_SOURCE}")/.. 8 | 9 | pushd "${ROOT}" > /dev/null 10 | 11 | GOFMT=${GOFMT:-"gofmt"} 12 | bad_files=$(find . -name '*.go' | xargs $GOFMT -s -l) 13 | if [[ -n "${bad_files}" ]]; then 14 | echo "!!! '$GOFMT' needs to be run on the following files: " 15 | echo "${bad_files}" 16 | exit 1 17 | fi 18 | 19 | # ex: ts=2 sw=2 et filetype=sh 20 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/verify/golint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ROOT=$(dirname "${BASH_SOURCE}")/.. 4 | GOLINT=${GOLINT:-"golint"} 5 | 6 | pushd "${ROOT}" > /dev/null 7 | bad_files=$($GOLINT -min_confidence=0.9 ./...) 8 | if [[ -n "${bad_files}" ]]; then 9 | echo "!!! '$GOLINT' problems: " 10 | echo "${bad_files}" 11 | exit 1 12 | fi 13 | popd > /dev/null 14 | 15 | # ex: ts=2 sw=2 et filetype=sh 16 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/viper/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Steve Francia 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /vendor/github.com/spf13/viper/nohup.out: -------------------------------------------------------------------------------- 1 | QProcess::start: Process is already running 2 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_gte_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.5 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | const reflectArrayOfSupported = true 11 | 12 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 13 | return reflect.ArrayOf(count, elem) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.5 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | const reflectArrayOfSupported = false 11 | 12 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 13 | panic("codec: reflect.ArrayOf unsupported in this go version") 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_gte_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.9 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 11 | if size < 0 { 12 | return reflect.MakeMapWithSize(t, 4) 13 | } 14 | return reflect.MakeMapWithSize(t, size) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_lt_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.9 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 11 | return reflect.MakeMap(t) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_gte_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.10 5 | 6 | package codec 7 | 8 | const allowSetUnexportedEmbeddedPtr = false 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_lt_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.10 5 | 6 | package codec 7 | 8 | const allowSetUnexportedEmbeddedPtr = true 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unsupported_lt_go14.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.4 5 | 6 | package codec 7 | 8 | // This codec package will only work for go1.4 and above. 9 | // This is for the following reasons: 10 | // - go 1.4 was released in 2014 11 | // - go runtime is written fully in go 12 | // - interface only holds pointers 13 | // - reflect.Value is stabilized as 3 words 14 | 15 | func init() { 16 | panic("codec: go 1.3 and below are not supported") 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.5,!go1.6 5 | 6 | package codec 7 | 8 | import "os" 9 | 10 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") == "1" 11 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.6,!go1.7 5 | 6 | package codec 7 | 8 | import "os" 9 | 10 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") != "0" 11 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_gte_go17.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.7 5 | 6 | package codec 7 | 8 | const genCheckVendor = true 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.5 5 | 6 | package codec 7 | 8 | var genCheckVendor = false 9 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Jeremy Saenz & Contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | 3 | os: Windows Server 2016 4 | 5 | image: Visual Studio 2017 6 | 7 | clone_folder: c:\gopath\src\github.com\urfave\cli 8 | 9 | environment: 10 | GOPATH: C:\gopath 11 | GOVERSION: 1.8.x 12 | PYTHON: C:\Python36-x64 13 | PYTHON_VERSION: 3.6.x 14 | PYTHON_ARCH: 64 15 | 16 | install: 17 | - set PATH=%GOPATH%\bin;C:\go\bin;%PATH% 18 | - go version 19 | - go env 20 | - go get github.com/urfave/gfmrun/... 21 | - go get -v -t ./... 22 | 23 | build_script: 24 | - python runtests vet 25 | - python runtests test 26 | - python runtests gfmrun 27 | -------------------------------------------------------------------------------- /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 python ./generate-flag-types cli -i flag-types.json -o flag_generated.go 23 | -------------------------------------------------------------------------------- /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/github.com/xanzy/go-gitlab/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | go-github CHANGELOG 2 | =================== 3 | 4 | 0.6.0 5 | ----- 6 | - Add support for the V4 Gitlab API. This means the older V3 API is no longer fully supported 7 | with this version. If you still need that version, please use the `f-api-v3` branch. 8 | 9 | 0.4.0 10 | ----- 11 | - Add support to use [`sudo`](https://docs.gitlab.com/ce/api/README.html#sudo) for all API calls. 12 | - Add support for the Notification Settings API. 13 | - Add support for the Time Tracking API. 14 | - Make sure that the error response correctly outputs any returned errors. 15 | - And a reasonable number of smaller enhanchements and bugfixes. 16 | 17 | 0.3.0 18 | ----- 19 | - Moved the tags related API calls to their own service, following the Gitlab API structure. 20 | 21 | 0.2.0 22 | ----- 23 | - Convert all Option structs to use pointers for their fields. 24 | 25 | 0.1.0 26 | ----- 27 | - Initial release. 28 | -------------------------------------------------------------------------------- /vendor/github.com/xordataexchange/crypt/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 XOR Data Exchange, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /vendor/github.com/xordataexchange/crypt/backend/backend.go: -------------------------------------------------------------------------------- 1 | // Package backend provides the K/V store interface for crypt backends. 2 | package backend 3 | 4 | // Response represents a response from a backend store. 5 | type Response struct { 6 | Value []byte 7 | Error error 8 | } 9 | 10 | // KVPair holds both a key and value when reading a list. 11 | type KVPair struct { 12 | Key string 13 | Value []byte 14 | } 15 | 16 | type KVPairs []*KVPair 17 | 18 | // A Store is a K/V store backend that retrieves and sets, and monitors 19 | // data in a K/V store. 20 | type Store interface { 21 | // Get retrieves a value from a K/V store for the provided key. 22 | Get(key string) ([]byte, error) 23 | 24 | // List retrieves all keys and values under a provided key. 25 | List(key string) (KVPairs, error) 26 | 27 | // Set sets the provided key to value. 28 | Set(key string, value []byte) error 29 | 30 | // Watch monitors a K/V store for changes to key. 31 | Watch(key string, stop chan bool) <-chan *Response 32 | } 33 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package terminal 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, Darwin 11 | // 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/sys/unix/asm_darwin_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, Darwin 11 | // 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_darwin_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | // +build arm,darwin 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for ARM, Darwin 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-28 18 | B syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 21 | B syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 24 | B syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 27 | B syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 30 | B syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | // +build arm64,darwin 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for AMD64, Darwin 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 | B syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | B syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | B syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | B syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | B syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, DragonFly 11 | // 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-64 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-88 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-112 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-64 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-88 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, FreeBSD 11 | // 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/sys/unix/asm_freebsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, FreeBSD 11 | // 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_freebsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, FreeBSD 11 | // 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/asm_linux_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for 386, Linux 11 | // 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 ·RawSyscall(SB),NOSPLIT,$0-28 23 | JMP syscall·RawSyscall(SB) 24 | 25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 26 | JMP syscall·RawSyscall6(SB) 27 | 28 | TEXT ·socketcall(SB),NOSPLIT,$0-36 29 | JMP syscall·socketcall(SB) 30 | 31 | TEXT ·rawsocketcall(SB),NOSPLIT,$0-36 32 | JMP syscall·rawsocketcall(SB) 33 | 34 | TEXT ·seek(SB),NOSPLIT,$0-28 35 | JMP syscall·seek(SB) 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for AMD64, Linux 11 | // 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 ·RawSyscall(SB),NOSPLIT,$0-56 23 | JMP syscall·RawSyscall(SB) 24 | 25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 26 | JMP syscall·RawSyscall6(SB) 27 | 28 | TEXT ·gettimeofday(SB),NOSPLIT,$0-16 29 | JMP syscall·gettimeofday(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for arm, Linux 11 | // 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 ·RawSyscall(SB),NOSPLIT,$0-28 23 | B syscall·RawSyscall(SB) 24 | 25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 26 | B syscall·RawSyscall6(SB) 27 | 28 | TEXT ·seek(SB),NOSPLIT,$0-32 29 | B syscall·seek(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build arm64 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 21 | B syscall·RawSyscall(SB) 22 | 23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 24 | B syscall·RawSyscall6(SB) 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_mips64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build mips64 mips64le 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for mips64, Linux 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 ·RawSyscall(SB),NOSPLIT,$0-56 25 | JMP syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | JMP syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_mipsx.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build mips mipsle 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for mips, Linux 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-28 19 | JMP syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 22 | JMP syscall·Syscall6(SB) 23 | 24 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 25 | JMP syscall·Syscall9(SB) 26 | 27 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 28 | JMP syscall·RawSyscall(SB) 29 | 30 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 31 | JMP syscall·RawSyscall6(SB) 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build ppc64 ppc64le 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for ppc64, Linux 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 | BR syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | BR syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | BR syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | BR syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_s390x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build s390x 6 | // +build linux 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for s390x, Linux 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 | BR syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | BR syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | BR syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | BR syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, NetBSD 11 | // 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/sys/unix/asm_netbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, NetBSD 11 | // 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_netbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, NetBSD 11 | // 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/asm_openbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, OpenBSD 11 | // 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/sys/unix/asm_openbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, OpenBSD 11 | // 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_openbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, OpenBSD 11 | // 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/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/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 | ) 27 | 28 | // Socketoption Level 29 | const ( 30 | SOL_BLUETOOTH = 0x112 31 | SOL_HCI = 0x0 32 | SOL_L2CAP = 0x6 33 | SOL_RFCOMM = 0x12 34 | SOL_SCO = 0x11 35 | ) 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Dragonfly's sys/types.h header. 7 | // 8 | // The information below is extracted and adapted from sys/types.h: 9 | // 10 | // Minor gives a cookie instead of an index since in order to avoid changing the 11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for 12 | // devices that don't use them. 13 | 14 | package unix 15 | 16 | // Major returns the major component of a DragonFlyBSD device number. 17 | func Major(dev uint64) uint32 { 18 | return uint32((dev >> 8) & 0xff) 19 | } 20 | 21 | // Minor returns the minor component of a DragonFlyBSD device number. 22 | func Minor(dev uint64) uint32 { 23 | return uint32(dev & 0xffff00ff) 24 | } 25 | 26 | // Mkdev returns a DragonFlyBSD device number generated from the given major and 27 | // minor components. 28 | func Mkdev(major, minor uint32) uint64 { 29 | return (uint64(major) << 8) | uint64(minor) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_freebsd.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 FreeBSD's sys/types.h header. 7 | // 8 | // The information below is extracted and adapted from sys/types.h: 9 | // 10 | // Minor gives a cookie instead of an index since in order to avoid changing the 11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for 12 | // devices that don't use them. 13 | 14 | package unix 15 | 16 | // Major returns the major component of a FreeBSD device number. 17 | func Major(dev uint64) uint32 { 18 | return uint32((dev >> 8) & 0xff) 19 | } 20 | 21 | // Minor returns the minor component of a FreeBSD device number. 22 | func Minor(dev uint64) uint32 { 23 | return uint32(dev & 0xffff00ff) 24 | } 25 | 26 | // Mkdev returns a FreeBSD device number generated from the given major and 27 | // minor components. 28 | func Mkdev(major, minor uint32) uint64 { 29 | return (uint64(major) << 8) | uint64(minor) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_netbsd.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 NetBSD's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a NetBSD device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev & 0x000fff00) >> 8) 13 | } 14 | 15 | // Minor returns the minor component of a NetBSD device number. 16 | func Minor(dev uint64) uint32 { 17 | minor := uint32((dev & 0x000000ff) >> 0) 18 | minor |= uint32((dev & 0xfff00000) >> 12) 19 | return minor 20 | } 21 | 22 | // Mkdev returns a NetBSD device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | dev := (uint64(major) << 8) & 0x000fff00 26 | dev |= (uint64(minor) << 12) & 0xfff00000 27 | dev |= (uint64(minor) << 0) & 0x000000ff 28 | return dev 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_openbsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in OpenBSD's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of an OpenBSD device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev & 0x0000ff00) >> 8) 13 | } 14 | 15 | // Minor returns the minor component of an OpenBSD device number. 16 | func Minor(dev uint64) uint32 { 17 | minor := uint32((dev & 0x000000ff) >> 0) 18 | minor |= uint32((dev & 0xffff0000) >> 8) 19 | return minor 20 | } 21 | 22 | // Mkdev returns an OpenBSD device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | dev := (uint64(major) << 8) & 0x0000ff00 26 | dev |= (uint64(minor) << 8) & 0xffff0000 27 | dev |= (uint64(minor) << 0) & 0x000000ff 28 | return dev 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/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 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Unsetenv(key string) error { 12 | // This was added in Go 1.4. 13 | return syscall.Unsetenv(key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/flock.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux 12 | // systems by flock_linux_32bit.go to be SYS_FCNTL64. 13 | var fcntl64Syscall uintptr = SYS_FCNTL 14 | 15 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 16 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 17 | _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) 18 | if errno == 0 { 19 | return nil 20 | } 21 | return errno 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/flock_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mksysnum_darwin.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | # 6 | # Generate system call table for Darwin from sys/syscall.h 7 | 8 | use strict; 9 | 10 | if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") { 11 | print STDERR "GOARCH or GOOS not defined in environment\n"; 12 | exit 1; 13 | } 14 | 15 | my $command = "mksysnum_darwin.pl " . join(' ', @ARGV); 16 | 17 | print <){ 29 | if(/^#define\s+SYS_(\w+)\s+([0-9]+)/){ 30 | my $name = $1; 31 | my $num = $2; 32 | $name =~ y/a-z/A-Z/; 33 | print " SYS_$name = $num;" 34 | } 35 | } 36 | 37 | print <= 10 { 20 | buf[i] = byte(val%10 + '0') 21 | i-- 22 | val /= 10 23 | } 24 | buf[i] = byte(val + '0') 25 | return string(buf[i:]) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build 386,netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (cmsg *Cmsghdr) SetLen(length int) { 32 | cmsg.Len = uint32(length) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (cmsg *Cmsghdr) SetLen(length int) { 32 | cmsg.Len = uint32(length) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm,netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (cmsg *Cmsghdr) SetLen(length int) { 32 | cmsg.Len = uint32(length) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_no_getwd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build dragonfly freebsd netbsd openbsd 6 | 7 | package unix 8 | 9 | const ImplementsGetwd = false 10 | 11 | func Getwd() (string, error) { return "", ENOTSUP } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build 386,openbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = int16(mode) 20 | k.Flags = uint16(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (cmsg *Cmsghdr) SetLen(length int) { 32 | cmsg.Len = uint32(length) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,openbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = int16(mode) 20 | k.Flags = uint16(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (cmsg *Cmsghdr) SetLen(length int) { 32 | cmsg.Len = uint32(length) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm,openbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = int16(mode) 20 | k.Flags = uint16(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (cmsg *Cmsghdr) SetLen(length int) { 32 | cmsg.Len = uint32(length) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (cmsg *Cmsghdr) SetLen(length int) { 22 | cmsg.Len = uint32(length) 23 | } 24 | 25 | func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { 26 | // TODO(aram): implement this, see issue 5847. 27 | panic("unimplemented") 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | // TODO(aram): remove these before Go 1.3. 10 | const ( 11 | SYS_EXECVE = 59 12 | SYS_FCNTL = 62 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // 6 | // System calls for 386, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-8 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-4 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // 6 | // System calls for amd64, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-32 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-8 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.4 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | func Unsetenv(key string) error { 13 | // This was added in Go 1.4. 14 | return syscall.Unsetenv(key) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/env_windows.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 | // Windows environment variables. 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | func Getenv(key string) (value string, found bool) { 12 | return syscall.Getenv(key) 13 | } 14 | 15 | func Setenv(key, value string) error { 16 | return syscall.Setenv(key, value) 17 | } 18 | 19 | func Clearenv() { 20 | syscall.Clearenv() 21 | } 22 | 23 | func Environ() []string { 24 | return syscall.Environ() 25 | } 26 | -------------------------------------------------------------------------------- /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 | // +build windows 6 | 7 | package windows 8 | 9 | const ( 10 | EVENTLOG_SUCCESS = 0 11 | EVENTLOG_ERROR_TYPE = 1 12 | EVENTLOG_WARNING_TYPE = 2 13 | EVENTLOG_INFORMATION_TYPE = 4 14 | EVENTLOG_AUDIT_SUCCESS = 8 15 | EVENTLOG_AUDIT_FAILURE = 16 16 | ) 17 | 18 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW 19 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource 20 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/memory_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | const ( 8 | MEM_COMMIT = 0x00001000 9 | MEM_RESERVE = 0x00002000 10 | MEM_DECOMMIT = 0x00004000 11 | MEM_RELEASE = 0x00008000 12 | MEM_RESET = 0x00080000 13 | MEM_TOP_DOWN = 0x00100000 14 | MEM_WRITE_WATCH = 0x00200000 15 | MEM_PHYSICAL = 0x00400000 16 | MEM_RESET_UNDO = 0x01000000 17 | MEM_LARGE_PAGES = 0x20000000 18 | 19 | PAGE_NOACCESS = 0x01 20 | PAGE_READONLY = 0x02 21 | PAGE_READWRITE = 0x04 22 | PAGE_WRITECOPY = 0x08 23 | PAGE_EXECUTE_READ = 0x20 24 | PAGE_EXECUTE_READWRITE = 0x40 25 | PAGE_EXECUTE_WRITECOPY = 0x80 26 | ) 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/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 | // +build windows,race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/LICENSE: -------------------------------------------------------------------------------- 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 | --------------------------------------------------------------------------------