├── .appveyor.yml ├── .dockerignore ├── .github └── ISSUE_TEMPLATE.md ├── .gitignore ├── .golangci.toml ├── .travis.yml ├── CHANGELOG.md ├── CODEOWNERS ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── Makefile ├── NOTICE ├── README.md ├── api └── cli.go ├── ci ├── copy-release.groovy ├── copy-release.py ├── generate_universe_resource.py ├── index │ ├── .gitignore │ ├── html │ │ ├── artifacts.js │ │ ├── browser.css │ │ ├── browser.js │ │ └── favicon.ico │ ├── index.html │ ├── publish_artifacts.py │ └── publish_index.py ├── integration-tests.groovy ├── publish-artifacts.groovy ├── release.groovy ├── release.hcl ├── release.py ├── requirements.txt ├── verify-artifacts.groovy └── verify-artifacts.py ├── cmd ├── dcos-test │ └── main.go └── dcos │ └── main.go ├── constants └── timeouts.go ├── design ├── README.md ├── cli.md ├── config.md ├── httpclient.md ├── login.md ├── plugin.md ├── release.md ├── setup.md └── style.md ├── go.mod ├── go.sum ├── pkg ├── cli │ ├── context.go │ ├── context_test.go │ ├── environment.go │ ├── global_flags.go │ ├── global_flags_test.go │ ├── table.go │ └── version │ │ └── version.go ├── cluster │ ├── linker │ │ └── linker.go │ └── lister │ │ ├── filters.go │ │ ├── lister.go │ │ └── lister_test.go ├── cmd │ ├── auth │ │ ├── auth.go │ │ ├── auth_listproviders.go │ │ ├── auth_listproviders_test.go │ │ ├── auth_login.go │ │ └── auth_logout.go │ ├── cluster │ │ ├── cluster.go │ │ ├── cluster_attach.go │ │ ├── cluster_attach_test.go │ │ ├── cluster_link.go │ │ ├── cluster_list.go │ │ ├── cluster_open.go │ │ ├── cluster_remove.go │ │ ├── cluster_rename.go │ │ ├── cluster_setup.go │ │ ├── cluster_unlink.go │ │ └── testdata │ │ │ ├── cluster_attach │ │ │ └── .dcos │ │ │ │ └── clusters │ │ │ │ └── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ │ └── dcos.toml │ │ │ └── cluster_attach_multiple │ │ │ └── .dcos │ │ │ └── clusters │ │ │ ├── 29891250-f9f1-4293-9225-e6e3900043a8 │ │ │ └── dcos.toml │ │ │ └── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ └── dcos.toml │ ├── completion │ │ ├── completion.go │ │ ├── completion.sh │ │ ├── completion_data.gen.go │ │ └── completion_test.sh │ ├── config │ │ ├── config.go │ │ ├── config_keys.go │ │ ├── config_set.go │ │ ├── config_show.go │ │ ├── config_show_test.go │ │ └── config_unset.go │ ├── dcos.go │ ├── dcos_test.go │ └── plugin │ │ ├── plugin.go │ │ ├── plugin_add.go │ │ ├── plugin_list.go │ │ └── plugin_remove.go ├── config │ ├── cluster.go │ ├── cluster_test.go │ ├── config.go │ ├── config_test.go │ ├── doc.go │ ├── doc_test.go │ ├── manager.go │ ├── manager_test.go │ └── testdata │ │ ├── conflicting_.dcos_file │ │ └── .dcos │ │ ├── conflicting_clusters_file │ │ └── .dcos │ │ │ └── clusters │ │ ├── multi_config_with_none_attached │ │ └── .dcos │ │ │ └── clusters │ │ │ ├── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ └── dcos.toml │ │ │ └── 97193161-f7f1-2295-2514-a6b3918043b6 │ │ │ └── dcos.toml │ │ ├── multi_config_with_one_attached │ │ └── .dcos │ │ │ ├── clusters │ │ │ ├── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ │ └── dcos.toml │ │ │ └── 97193161-f7f1-2295-2514-a6b3918043b6 │ │ │ │ ├── attached │ │ │ │ └── dcos.toml │ │ │ └── dcos.toml │ │ ├── multi_config_with_same_name │ │ └── .dcos │ │ │ └── clusters │ │ │ ├── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ └── dcos.toml │ │ │ └── 97193161-f7f1-2295-2514-a6b3918043b6 │ │ │ └── dcos.toml │ │ ├── multiple_config_attached │ │ └── .dcos │ │ │ └── clusters │ │ │ ├── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ ├── attached │ │ │ └── dcos.toml │ │ │ └── 97193161-f7f1-2295-2514-a6b3918043b6 │ │ │ ├── attached │ │ │ └── dcos.toml │ │ ├── single_config_attached │ │ └── .dcos │ │ │ ├── clusters │ │ │ └── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ │ ├── attached │ │ │ │ └── dcos.toml │ │ │ └── dcos.toml │ │ └── single_config_unattached │ │ └── .dcos │ │ ├── clusters │ │ └── 79893270-f9f1-4293-9225-e6e3900043a9 │ │ │ └── dcos.toml │ │ └── dcos.toml ├── dcos │ ├── client.go │ └── error.go ├── fsutil │ └── fsutil.go ├── httpclient │ ├── client.go │ ├── client_test.go │ └── derived.gen.go ├── internal │ └── cosmos │ │ └── client.go ├── log │ ├── formatter.go │ └── formatter_test.go ├── login │ ├── flags.go │ ├── flags_test.go │ ├── flow.go │ ├── flow_test.go │ ├── login.go │ ├── login_test.go │ ├── loginserver │ │ ├── server.go │ │ └── server_test.go │ └── provider.go ├── mesos │ └── mesos.go ├── mock │ └── mock.go ├── open │ ├── open.go │ ├── open_darwin.go │ ├── open_linux.go │ └── open_windows.go ├── plugin │ ├── derived.gen.go │ ├── manager.go │ ├── plugin.go │ ├── plugin_test.go │ └── testdata │ │ ├── .gitignore │ │ ├── binary_only │ │ └── subcommands │ │ │ └── dcos-test-cli │ │ │ └── env │ │ │ └── bin │ │ │ └── dcos-test │ │ ├── malformed_toml │ │ └── subcommands │ │ │ └── malformed │ │ │ └── env │ │ │ ├── bin │ │ │ └── dcos-test │ │ │ └── plugin.toml │ │ └── multiple_commands │ │ └── subcommands │ │ └── toml │ │ └── env │ │ ├── bin │ │ ├── dcos-no-test │ │ └── dcos-test │ │ └── plugin.toml ├── prompt │ ├── prompt.go │ └── prompt_test.go └── setup │ ├── flags.go │ ├── setup.go │ └── setup_test.go ├── scripts ├── launch_aws_cluster.sh └── main.tf ├── tests ├── integration │ ├── .flake8 │ ├── __init__.py │ ├── common.py │ ├── fixtures │ │ └── plugins │ │ │ └── dcos-test │ │ │ ├── darwin │ │ │ └── dcos-test │ │ │ ├── linux │ │ │ └── dcos-test │ │ │ └── win32 │ │ │ └── dcos-test.exe │ ├── test_auth.py │ ├── test_cluster.py │ ├── test_config.py │ ├── test_corecli.py │ ├── test_help.py │ └── test_plugin.py └── requirements.txt └── vendor ├── github.com ├── VividCortex │ └── ewma │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ └── ewma.go ├── antihax │ └── optional │ │ ├── LICENSE │ │ ├── bool.go │ │ ├── byte.go │ │ ├── complex128.go │ │ ├── complex64.go │ │ ├── float32.go │ │ ├── float64.go │ │ ├── go.mod │ │ ├── int.go │ │ ├── int16.go │ │ ├── int32.go │ │ ├── int64.go │ │ ├── int8.go │ │ ├── interface.go │ │ ├── rune.go │ │ ├── string.go │ │ ├── time.go │ │ ├── uint.go │ │ ├── uint16.go │ │ ├── uint32.go │ │ ├── uint64.go │ │ ├── uint8.go │ │ └── uintptr.go ├── davecgh │ └── go-spew │ │ ├── LICENSE │ │ └── spew │ │ ├── bypass.go │ │ ├── bypasssafe.go │ │ ├── common.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── dump.go │ │ ├── format.go │ │ └── spew.go ├── dcos │ └── client-go │ │ └── dcos │ │ ├── .openapi-generator-ignore │ │ ├── README.md │ │ ├── api_cosmos.go │ │ ├── api_edgelb.go │ │ ├── api_iam.go │ │ ├── api_metadata.go │ │ ├── api_metronome.go │ │ ├── api_networking.go │ │ ├── api_secrets.go │ │ ├── client.go │ │ ├── client_api.go │ │ ├── config.go │ │ ├── configuration.go │ │ ├── httpclient.go │ │ ├── model_cosmos_error.go │ │ ├── model_cosmos_hash.go │ │ ├── model_cosmos_hash_algo.go │ │ ├── model_cosmos_package.go │ │ ├── model_cosmos_package_add_repo_v1_request.go │ │ ├── model_cosmos_package_add_repo_v1_response.go │ │ ├── model_cosmos_package_command.go │ │ ├── model_cosmos_package_delete_repo_v1_request.go │ │ ├── model_cosmos_package_delete_repo_v1_response.go │ │ ├── model_cosmos_package_describe_v1_request.go │ │ ├── model_cosmos_package_describe_v3_response.go │ │ ├── model_cosmos_package_install_v1_request.go │ │ ├── model_cosmos_package_install_v1_response.go │ │ ├── model_cosmos_package_license.go │ │ ├── model_cosmos_package_list_repo_v1_response.go │ │ ├── model_cosmos_package_list_v1_package.go │ │ ├── model_cosmos_package_list_v1_package_information.go │ │ ├── model_cosmos_package_list_v1_request.go │ │ ├── model_cosmos_package_list_v1_response.go │ │ ├── model_cosmos_package_list_versions_v1_request.go │ │ ├── model_cosmos_package_list_versions_v1_response.go │ │ ├── model_cosmos_package_manager.go │ │ ├── model_cosmos_package_marathon.go │ │ ├── model_cosmos_package_render_v1_request.go │ │ ├── model_cosmos_package_render_v1_response.go │ │ ├── model_cosmos_package_repo.go │ │ ├── model_cosmos_package_resource.go │ │ ├── model_cosmos_package_resource_assets.go │ │ ├── model_cosmos_package_resource_assets_container.go │ │ ├── model_cosmos_package_resource_cli.go │ │ ├── model_cosmos_package_resource_cli_artifact.go │ │ ├── model_cosmos_package_resource_cli_binaries.go │ │ ├── model_cosmos_package_resource_cli_os_binaries.go │ │ ├── model_cosmos_package_resource_images.go │ │ ├── model_cosmos_package_search_details.go │ │ ├── model_cosmos_package_search_v1_request.go │ │ ├── model_cosmos_package_search_v1_response.go │ │ ├── model_cosmos_package_uninstall_v1_request.go │ │ ├── model_cosmos_package_uninstall_v1_response.go │ │ ├── model_cosmos_package_uninstall_v1_response_results.go │ │ ├── model_cosmos_service_describe_v1_request.go │ │ ├── model_cosmos_service_describe_v1_response.go │ │ ├── model_cosmos_service_update_v1_request.go │ │ ├── model_cosmos_service_update_v1_response.go │ │ ├── model_edgelb_api_version.go │ │ ├── model_edgelb_config_container.go │ │ ├── model_edgelb_error.go │ │ ├── model_edgelb_pool_container.go │ │ ├── model_edgelb_v2_backend.go │ │ ├── model_edgelb_v2_backend_custom_check.go │ │ ├── model_edgelb_v2_endpoint.go │ │ ├── model_edgelb_v2_endpoint_check.go │ │ ├── model_edgelb_v2_frontend.go │ │ ├── model_edgelb_v2_frontend_link_backend.go │ │ ├── model_edgelb_v2_frontend_link_backend_map.go │ │ ├── model_edgelb_v2_frontend_redirect_to_https.go │ │ ├── model_edgelb_v2_frontend_redirect_to_https_except.go │ │ ├── model_edgelb_v2_haproxy.go │ │ ├── model_edgelb_v2_pool.go │ │ ├── model_edgelb_v2_pool_secrets.go │ │ ├── model_edgelb_v2_pool_virtual_networks.go │ │ ├── model_edgelb_v2_protocol.go │ │ ├── model_edgelb_v2_rewrite_http.go │ │ ├── model_edgelb_v2_rewrite_http_path.go │ │ ├── model_edgelb_v2_rewrite_http_request.go │ │ ├── model_edgelb_v2_rewrite_http_response.go │ │ ├── model_edgelb_v2_rewrite_http_sticky.go │ │ ├── model_edgelb_v2_service.go │ │ ├── model_edgelb_v2_service_marathon.go │ │ ├── model_edgelb_v2_service_mesos.go │ │ ├── model_edgelb_v2_stats.go │ │ ├── model_iam_acls.go │ │ ├── model_iam_action.go │ │ ├── model_iam_action_allowed.go │ │ ├── model_iam_actions.go │ │ ├── model_iam_auth_token.go │ │ ├── model_iam_error.go │ │ ├── model_iam_error_code.go │ │ ├── model_iam_group.go │ │ ├── model_iam_group_create.go │ │ ├── model_iam_group_permissions.go │ │ ├── model_iam_group_update.go │ │ ├── model_iam_group_users.go │ │ ├── model_iam_group_users_array.go │ │ ├── model_iam_groups.go │ │ ├── model_iam_login_object.go │ │ ├── model_iam_user.go │ │ ├── model_iam_user_create.go │ │ ├── model_iam_user_groups.go │ │ ├── model_iam_user_groups_array.go │ │ ├── model_iam_user_permissions.go │ │ ├── model_iam_user_permissions_direct.go │ │ ├── model_iam_user_permissions_groups.go │ │ ├── model_iam_user_update.go │ │ ├── model_iam_users.go │ │ ├── model_iamacl.go │ │ ├── model_iamacl_create.go │ │ ├── model_iamacl_permissions.go │ │ ├── model_iamacl_permissions_groups.go │ │ ├── model_iamacl_permissions_users.go │ │ ├── model_iamacl_update.go │ │ ├── model_iamldap_configuration.go │ │ ├── model_iamldap_group_search_config.go │ │ ├── model_iamldap_import_group_object.go │ │ ├── model_iamldap_import_user_object.go │ │ ├── model_iamldap_test_credentials.go │ │ ├── model_iamldap_test_result_object.go │ │ ├── model_iamldap_user_search_config.go │ │ ├── model_iamoidc_provider_config.go │ │ ├── model_iamsaml_provider_config.go │ │ ├── model_iamsamlacs_callback_url_object.go │ │ ├── model_inline_response_200.go │ │ ├── model_metadata.go │ │ ├── model_metronome_embeded.go │ │ ├── model_metronome_restart_policy.go │ │ ├── model_metronome_v1_env_secret_value.go │ │ ├── model_metronome_v1_error.go │ │ ├── model_metronome_v1_error_details.go │ │ ├── model_metronome_v1_job.go │ │ ├── model_metronome_v1_job_run.go │ │ ├── model_metronome_v1_job_run_artifacts.go │ │ ├── model_metronome_v1_job_run_docker.go │ │ ├── model_metronome_v1_job_run_docker_parameters.go │ │ ├── model_metronome_v1_job_run_placement.go │ │ ├── model_metronome_v1_job_run_placement_constraints.go │ │ ├── model_metronome_v1_job_run_restart.go │ │ ├── model_metronome_v1_job_run_ucr.go │ │ ├── model_metronome_v1_job_run_ucr_image.go │ │ ├── model_metronome_v1_job_run_volumes.go │ │ ├── model_metronome_v1_job_schedule.go │ │ ├── model_networking_v1_node.go │ │ ├── model_secrets_v1_secret.go │ │ ├── response.go │ │ └── version.go ├── dgrijalva │ └── jwt-go │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── MIGRATION_GUIDE.md │ │ ├── README.md │ │ ├── VERSION_HISTORY.md │ │ ├── claims.go │ │ ├── doc.go │ │ ├── ecdsa.go │ │ ├── ecdsa_utils.go │ │ ├── errors.go │ │ ├── hmac.go │ │ ├── map_claims.go │ │ ├── none.go │ │ ├── parser.go │ │ ├── rsa.go │ │ ├── rsa_pss.go │ │ ├── rsa_utils.go │ │ ├── signing_method.go │ │ └── token.go ├── hashicorp │ └── go-version │ │ ├── LICENSE │ │ ├── README.md │ │ ├── constraint.go │ │ ├── go.mod │ │ ├── version.go │ │ └── version_collection.go ├── inconshreveable │ └── mousetrap │ │ ├── LICENSE │ │ ├── README.md │ │ ├── trap_others.go │ │ ├── trap_windows.go │ │ └── trap_windows_1.4.go ├── konsorten │ └── go-windows-terminal-sequences │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ ├── sequences.go │ │ └── sequences_dummy.go ├── mattn │ ├── go-isatty │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── go.test.sh │ │ ├── isatty_bsd.go │ │ ├── isatty_others.go │ │ ├── isatty_plan9.go │ │ ├── isatty_solaris.go │ │ ├── isatty_tcgets.go │ │ ├── isatty_windows.go │ │ └── renovate.json │ └── go-runewidth │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ ├── go.test.sh │ │ ├── runewidth.go │ │ ├── runewidth_appengine.go │ │ ├── runewidth_js.go │ │ ├── runewidth_posix.go │ │ ├── runewidth_table.go │ │ └── runewidth_windows.go ├── mitchellh │ └── go-homedir │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ └── homedir.go ├── olekukonko │ └── tablewriter │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── csv.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── table.go │ │ ├── table_with_color.go │ │ ├── util.go │ │ └── wrap.go ├── pelletier │ └── go-toml │ │ ├── .dockerignore │ │ ├── .gitignore │ │ ├── CONTRIBUTING.md │ │ ├── Dockerfile │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── PULL_REQUEST_TEMPLATE.md │ │ ├── README.md │ │ ├── azure-pipelines.yml │ │ ├── benchmark.json │ │ ├── benchmark.sh │ │ ├── benchmark.toml │ │ ├── benchmark.yml │ │ ├── doc.go │ │ ├── example-crlf.toml │ │ ├── example.toml │ │ ├── fuzz.go │ │ ├── fuzz.sh │ │ ├── fuzzit.sh │ │ ├── go.mod │ │ ├── go.sum │ │ ├── keysparsing.go │ │ ├── lexer.go │ │ ├── localtime.go │ │ ├── marshal.go │ │ ├── marshal_OrderPreserve_test.toml │ │ ├── marshal_test.toml │ │ ├── parser.go │ │ ├── position.go │ │ ├── token.go │ │ ├── toml.go │ │ ├── tomltree_create.go │ │ └── tomltree_write.go ├── pmezard │ └── go-difflib │ │ ├── LICENSE │ │ └── difflib │ │ └── difflib.go ├── rs │ └── cors │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cors.go │ │ ├── go.mod │ │ └── utils.go ├── sirupsen │ └── logrus │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── alt_exit.go │ │ ├── appveyor.yml │ │ ├── doc.go │ │ ├── entry.go │ │ ├── exported.go │ │ ├── formatter.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── hooks.go │ │ ├── hooks │ │ └── test │ │ │ └── test.go │ │ ├── json_formatter.go │ │ ├── logger.go │ │ ├── logrus.go │ │ ├── terminal_check_appengine.go │ │ ├── terminal_check_bsd.go │ │ ├── terminal_check_js.go │ │ ├── terminal_check_no_terminal.go │ │ ├── terminal_check_notappengine.go │ │ ├── terminal_check_solaris.go │ │ ├── terminal_check_unix.go │ │ ├── terminal_check_windows.go │ │ ├── text_formatter.go │ │ └── writer.go ├── spf13 │ ├── afero │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── afero.go │ │ ├── appveyor.yml │ │ ├── basepath.go │ │ ├── cacheOnReadFs.go │ │ ├── const_bsds.go │ │ ├── const_win_unix.go │ │ ├── copyOnWriteFs.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── httpFs.go │ │ ├── ioutil.go │ │ ├── lstater.go │ │ ├── match.go │ │ ├── mem │ │ │ ├── dir.go │ │ │ ├── dirmap.go │ │ │ └── file.go │ │ ├── memmap.go │ │ ├── os.go │ │ ├── path.go │ │ ├── readonlyfs.go │ │ ├── regexpfs.go │ │ ├── symlink.go │ │ ├── unionFile.go │ │ └── util.go │ ├── cast │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── cast.go │ │ ├── caste.go │ │ ├── go.mod │ │ └── go.sum │ ├── cobra │ │ ├── .gitignore │ │ ├── .mailmap │ │ ├── .travis.yml │ │ ├── LICENSE.txt │ │ ├── Makefile │ │ ├── README.md │ │ ├── args.go │ │ ├── bash_completions.go │ │ ├── bash_completions.md │ │ ├── cobra.go │ │ ├── command.go │ │ ├── command_notwin.go │ │ ├── command_win.go │ │ ├── custom_completions.go │ │ ├── fish_completions.go │ │ ├── fish_completions.md │ │ ├── go.mod │ │ ├── go.sum │ │ ├── powershell_completions.go │ │ ├── powershell_completions.md │ │ ├── shell_completions.go │ │ ├── zsh_completions.go │ │ └── zsh_completions.md │ └── pflag │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bool.go │ │ ├── bool_slice.go │ │ ├── bytes.go │ │ ├── count.go │ │ ├── duration.go │ │ ├── duration_slice.go │ │ ├── flag.go │ │ ├── float32.go │ │ ├── float32_slice.go │ │ ├── float64.go │ │ ├── float64_slice.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── golangflag.go │ │ ├── int.go │ │ ├── int16.go │ │ ├── int32.go │ │ ├── int32_slice.go │ │ ├── int64.go │ │ ├── int64_slice.go │ │ ├── int8.go │ │ ├── int_slice.go │ │ ├── ip.go │ │ ├── ip_slice.go │ │ ├── ipmask.go │ │ ├── ipnet.go │ │ ├── string.go │ │ ├── string_array.go │ │ ├── string_slice.go │ │ ├── string_to_int.go │ │ ├── string_to_int64.go │ │ ├── string_to_string.go │ │ ├── uint.go │ │ ├── uint16.go │ │ ├── uint32.go │ │ ├── uint64.go │ │ ├── uint8.go │ │ └── uint_slice.go ├── stretchr │ └── testify │ │ ├── LICENSE │ │ ├── assert │ │ ├── assertion_compare.go │ │ ├── assertion_format.go │ │ ├── assertion_format.go.tmpl │ │ ├── assertion_forward.go │ │ ├── assertion_forward.go.tmpl │ │ ├── assertions.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── forward_assertions.go │ │ └── http_assertions.go │ │ └── require │ │ ├── doc.go │ │ ├── forward_requirements.go │ │ ├── require.go │ │ ├── require.go.tmpl │ │ ├── require_forward.go │ │ ├── require_forward.go.tmpl │ │ └── requirements.go └── vbauerster │ └── mpb │ ├── .gitignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── bar.go │ ├── bar_filler.go │ ├── bar_option.go │ ├── cwriter │ ├── writer.go │ ├── writer_posix.go │ └── writer_windows.go │ ├── decor │ ├── counters.go │ ├── decorator.go │ ├── doc.go │ ├── elapsed.go │ ├── eta.go │ ├── moving-average.go │ ├── name.go │ ├── percentage.go │ └── speed.go │ ├── doc.go │ ├── go.test.sh │ ├── internal │ └── percentage.go │ ├── options.go │ ├── priority_queue.go │ ├── progress.go │ ├── progress_posix.go │ ├── progress_windows.go │ ├── proxyreader.go │ └── spinner_filler.go ├── golang.org └── x │ ├── crypto │ ├── AUTHORS │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── PATENTS │ ├── ed25519 │ │ ├── ed25519.go │ │ ├── ed25519_go113.go │ │ └── internal │ │ │ └── edwards25519 │ │ │ ├── const.go │ │ │ └── edwards25519.go │ ├── pbkdf2 │ │ └── pbkdf2.go │ └── ssh │ │ └── terminal │ │ ├── terminal.go │ │ ├── util.go │ │ ├── util_aix.go │ │ ├── util_bsd.go │ │ ├── util_linux.go │ │ ├── util_plan9.go │ │ ├── util_solaris.go │ │ └── util_windows.go │ ├── sys │ ├── AUTHORS │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── PATENTS │ ├── internal │ │ └── unsafeheader │ │ │ └── unsafeheader.go │ ├── unix │ │ ├── .gitignore │ │ ├── README.md │ │ ├── affinity_linux.go │ │ ├── aliases.go │ │ ├── asm_aix_ppc64.s │ │ ├── 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_freebsd_arm64.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_riscv64.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_netbsd_386.s │ │ ├── asm_netbsd_amd64.s │ │ ├── asm_netbsd_arm.s │ │ ├── asm_netbsd_arm64.s │ │ ├── asm_openbsd_386.s │ │ ├── asm_openbsd_amd64.s │ │ ├── asm_openbsd_arm.s │ │ ├── asm_openbsd_arm64.s │ │ ├── asm_solaris_amd64.s │ │ ├── bluetooth_linux.go │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_aix_ppc.go │ │ ├── dev_aix_ppc64.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 │ │ ├── errors_freebsd_386.go │ │ ├── errors_freebsd_amd64.go │ │ ├── errors_freebsd_arm.go │ │ ├── errors_freebsd_arm64.go │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ioctl.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── pagesize_unix.go │ │ ├── pledge_openbsd.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── readdirent_getdents.go │ │ ├── readdirent_getdirentries.go │ │ ├── sockcmsg_dragonfly.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── sockcmsg_unix_other.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.1_12.go │ │ ├── syscall_darwin.1_13.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_386.1_11.go │ │ ├── syscall_darwin_386.go │ │ ├── syscall_darwin_amd64.1_11.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm.1_11.go │ │ ├── syscall_darwin_arm.go │ │ ├── syscall_darwin_arm64.1_11.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_darwin_libSystem.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_freebsd_arm64.go │ │ ├── syscall_illumos.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_gc.go │ │ ├── syscall_linux_gc_386.go │ │ ├── syscall_linux_gccgo_386.go │ │ ├── syscall_linux_gccgo_arm.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_riscv64.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_netbsd_arm64.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_openbsd_arm64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── xattr_bsd.go │ │ ├── zerrors_aix_ppc.go │ │ ├── zerrors_aix_ppc64.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_freebsd_arm64.go │ │ ├── zerrors_linux.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_riscv64.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_netbsd_arm64.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_openbsd_arm64.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zptrace_armnn_linux.go │ │ ├── zptrace_linux_arm64.go │ │ ├── zptrace_mipsnn_linux.go │ │ ├── zptrace_mipsnnle_linux.go │ │ ├── zptrace_x86_linux.go │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_386.1_11.go │ │ ├── zsyscall_darwin_386.1_13.go │ │ ├── zsyscall_darwin_386.1_13.s │ │ ├── zsyscall_darwin_386.go │ │ ├── zsyscall_darwin_386.s │ │ ├── zsyscall_darwin_amd64.1_11.go │ │ ├── zsyscall_darwin_amd64.1_13.go │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.s │ │ ├── zsyscall_darwin_arm.1_11.go │ │ ├── zsyscall_darwin_arm.1_13.go │ │ ├── zsyscall_darwin_arm.1_13.s │ │ ├── zsyscall_darwin_arm.go │ │ ├── zsyscall_darwin_arm.s │ │ ├── zsyscall_darwin_arm64.1_11.go │ │ ├── zsyscall_darwin_arm64.1_13.go │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_darwin_arm64.s │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_freebsd_arm64.go │ │ ├── zsyscall_illumos_amd64.go │ │ ├── zsyscall_linux.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_riscv64.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_netbsd_arm64.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsysctl_openbsd_386.go │ │ ├── zsysctl_openbsd_amd64.go │ │ ├── zsysctl_openbsd_arm.go │ │ ├── zsysctl_openbsd_arm64.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_freebsd_arm64.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_riscv64.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_netbsd_arm64.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_openbsd_arm64.go │ │ ├── ztypes_aix_ppc.go │ │ ├── ztypes_aix_ppc64.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_freebsd_arm64.go │ │ ├── ztypes_linux.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_riscv64.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_netbsd_arm64.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ ├── ztypes_openbsd_arm64.go │ │ └── ztypes_solaris_amd64.go │ └── windows │ │ ├── aliases.go │ │ ├── dll_windows.go │ │ ├── empty.s │ │ ├── env_windows.go │ │ ├── eventlog.go │ │ ├── exec_windows.go │ │ ├── memory_windows.go │ │ ├── mkerrors.bash │ │ ├── mkknownfolderids.bash │ │ ├── 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 │ │ ├── types_windows_arm.go │ │ ├── zerrors_windows.go │ │ ├── zknownfolderids_windows.go │ │ └── zsyscall_windows.go │ └── text │ ├── AUTHORS │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── PATENTS │ ├── transform │ └── transform.go │ └── unicode │ └── norm │ ├── composition.go │ ├── forminfo.go │ ├── input.go │ ├── iter.go │ ├── normalize.go │ ├── readwriter.go │ ├── tables10.0.0.go │ ├── tables11.0.0.go │ ├── tables12.0.0.go │ ├── tables9.0.0.go │ ├── transform.go │ └── trie.go ├── gopkg.in ├── square │ └── go-jose.v2 │ │ ├── .gitcookies.sh.enc │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── BUG-BOUNTY.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── asymmetric.go │ │ ├── cipher │ │ ├── cbc_hmac.go │ │ ├── concat_kdf.go │ │ ├── ecdh_es.go │ │ └── key_wrap.go │ │ ├── crypter.go │ │ ├── doc.go │ │ ├── encoding.go │ │ ├── json │ │ ├── LICENSE │ │ ├── README.md │ │ ├── decode.go │ │ ├── encode.go │ │ ├── indent.go │ │ ├── scanner.go │ │ ├── stream.go │ │ └── tags.go │ │ ├── jwe.go │ │ ├── jwk.go │ │ ├── jws.go │ │ ├── jwt │ │ ├── builder.go │ │ ├── claims.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── jwt.go │ │ └── validation.go │ │ ├── opaque.go │ │ ├── shared.go │ │ ├── signing.go │ │ └── symmetric.go └── yaml.v3 │ ├── .travis.yml │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── go.mod │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── modules.txt /.appveyor.yml: -------------------------------------------------------------------------------- 1 | install: 2 | - SET PATH=C:\msys64\mingw64\bin;c:\gopath\bin;%PATH% 3 | - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b "c:\gopath\bin" v1.30.0 4 | 5 | build: off 6 | 7 | clone_folder: c:\dcos-cli 8 | 9 | environment: 10 | GOPATH: c:\gopath 11 | NO_DOCKER: 1 12 | 13 | stack: go 1.15 14 | image: Visual Studio 2019 15 | 16 | test_script: 17 | - mingw32-make windows 18 | - mingw32-make test 19 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Please answer the following questions before submitting your issue. Thanks! 2 | 3 | ### What version of DC/OS + DC/OS CLI are you using (`dcos --version`)? 4 | 5 | 6 | ### What operating system and version are you using? 7 | 8 | 9 | ### What did you do? 10 | 11 | If possible please provide a recipe for reproducing. 12 | 13 | 14 | ### What did you expect to see? 15 | 16 | 17 | ### What did you see instead? 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | env/ 3 | .pytest_cache 4 | usr/* 5 | -------------------------------------------------------------------------------- /.golangci.toml: -------------------------------------------------------------------------------- 1 | [run] 2 | concurrency = 4 3 | deadline = "10m" 4 | skip-files = [ 5 | "_(string|test)\\.go", 6 | ".py" 7 | ] 8 | 9 | modules-download-mode = "vendor" 10 | 11 | [linters] 12 | disable-all = true 13 | enable = [ 14 | "deadcode", 15 | "goconst", 16 | "gocyclo", 17 | "gofmt", 18 | "goimports", 19 | "golint", 20 | "gosec", 21 | "govet", 22 | "ineffassign", 23 | "interfacer", 24 | "lll", 25 | "misspell", 26 | "structcheck", 27 | "typecheck", 28 | "unconvert", 29 | "unparam", 30 | "unused", 31 | "varcheck" 32 | ] 33 | 34 | [linters-settings.lll] 35 | line-length = 150 36 | 37 | [linters-settings.gocyclo] 38 | min-complexity = 21 39 | 40 | [linters-settings.govet] 41 | check-shadowing = false 42 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | os: 2 | - linux 3 | - osx 4 | 5 | language: go 6 | 7 | go: "1.15.x" 8 | 9 | go_import_path: github.com/dcos/dcos-cli 10 | 11 | env: 12 | - NO_DOCKER=1 GO111MODULE=on 13 | 14 | before_install: 15 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0 16 | 17 | script: 18 | - make 19 | - make test 20 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @janisz @pierrebeitz @DominikDary 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.15 2 | 3 | RUN go get -u \ 4 | golang.org/x/lint/golint \ 5 | github.com/awalterschulze/goderive \ 6 | github.com/br-lewis/go-bindata/... 7 | 8 | RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0 -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2015 Mesosphere 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 | -------------------------------------------------------------------------------- /ci/index/.gitignore: -------------------------------------------------------------------------------- 1 | html/artifacts.json 2 | __pycache__ 3 | -------------------------------------------------------------------------------- /ci/index/html/browser.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 2rem; 3 | padding-bottom: 2rem; 4 | } 5 | 6 | #platforms, #architectures { 7 | display: inline-block; 8 | margin-top: 1.1em; 9 | } 10 | 11 | #binaries [name=names] 12 | { 13 | display: inline-block; 14 | padding-bottom: 20px; 15 | } 16 | 17 | #binaries [name=versions] 18 | { 19 | display: inline-block; 20 | padding-bottom: 20px; 21 | } 22 | 23 | #plugins [name=names] { 24 | display: inline-block; 25 | padding-bottom: 20px; 26 | } 27 | 28 | #plugins [name=versions] { 29 | display: inline-block; 30 | padding-bottom: 20px; 31 | } 32 | -------------------------------------------------------------------------------- /ci/index/html/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/ci/index/html/favicon.ico -------------------------------------------------------------------------------- /ci/release.hcl: -------------------------------------------------------------------------------- 1 | source = ["./build/darwin/dcos"] 2 | bundle_id = "com.mesosphere.dcos.cli" 3 | 4 | sign { 5 | application_identity = "Developer ID Application: Mesosphere Inc. (JQJDUUPXFN)" 6 | } 7 | 8 | zip { 9 | output_path = "build/darwin/dcos.zip" 10 | } 11 | -------------------------------------------------------------------------------- /ci/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3==1.7.26 2 | requests==2.20.0 3 | PyGithub==1.43.4 -------------------------------------------------------------------------------- /constants/timeouts.go: -------------------------------------------------------------------------------- 1 | package constants 2 | 3 | import "time" 4 | 5 | const HTTPTimeout = 3 * time.Minute 6 | const DialTimeout = 10 * time.Second 7 | -------------------------------------------------------------------------------- /design/README.md: -------------------------------------------------------------------------------- 1 | # DC/OS CLI Design Overview 2 | 3 | ## Go packages 4 | 5 | - [cli](cli.md) 6 | - [config](config.md) 7 | - [httpclient](httpclient.md) 8 | - [login](login.md) 9 | - [plugin](plugin.md) 10 | - [setup](setup.md) 11 | 12 | 13 | ## Style guide 14 | 15 | [Style guide](style.md) for the DC/OS CLI and its plugins. 16 | 17 | ## Release process 18 | 19 | Learn about the [CLI release process](release.md). 20 | -------------------------------------------------------------------------------- /design/cli.md: -------------------------------------------------------------------------------- 1 | # cli 2 | 3 | The cli package is the "glue" between CLI commands and other packages. 4 | 5 | ## Goals 6 | 7 | - Facilitate testing by abstracting the environment (stdout/stderr, stdin, env vars, filesystem, current system user, etc.). 8 | - Act as a factory for different structures from various packages. 9 | 10 | ## Implementation 11 | 12 | To satisfy both goals, a Context struct is introduced. It is created based on an Environment (which contains various abstractions for stdout/stderr, the filesystem, etc.). 13 | 14 | Once created, the context is passed as an argument to each subcommand constructor and they must use it to interact with the environment (print output, read env vars or files, etc.) or instanciate environment-dependent structs from other packages. 15 | -------------------------------------------------------------------------------- /design/httpclient.md: -------------------------------------------------------------------------------- 1 | # httpclient 2 | 3 | The httpclient package manages the HTTP requests from the DC/OS CLI to DC/OS clusters. 4 | 5 | It is is largely based on the client provided by the "net/http" package. 6 | 7 | ## Goals 8 | 9 | The goal of the httpclient package is to offer simple functions to send requests to DC/OS clusters. The client uses the DC/OS CLI configuration to know what is the URL of the cluster and which headers should be added to each request made against the cluster. 10 | 11 | -------------------------------------------------------------------------------- /pkg/cli/table.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "io" 5 | 6 | "github.com/olekukonko/tablewriter" 7 | ) 8 | 9 | // NewTable returns a simple table to output information. 10 | func NewTable(writer io.Writer, header []string) *tablewriter.Table { 11 | table := tablewriter.NewWriter(writer) 12 | table.SetHeader(header) 13 | 14 | // Disable line between header and content. 15 | table.SetHeaderLine(false) 16 | table.SetBorder(false) 17 | table.SetRowSeparator(" ") 18 | table.SetColumnSeparator("") 19 | table.SetCenterSeparator(" ") 20 | // Turn off wrapping because it seems to wrap even if the column is set to be wide enough. 21 | table.SetAutoWrapText(false) 22 | 23 | return table 24 | } 25 | -------------------------------------------------------------------------------- /pkg/cli/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | var version = "SNAPSHOT" 4 | 5 | // Version returns the DC/OS CLI version. 6 | func Version() string { 7 | return version 8 | } 9 | -------------------------------------------------------------------------------- /pkg/cmd/auth/auth.go: -------------------------------------------------------------------------------- 1 | package auth 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/dcos/dcos-cli/api" 7 | "github.com/spf13/cobra" 8 | ) 9 | 10 | // NewCommand creates the `dcos auth` subcommand. 11 | func NewCommand(ctx api.Context) *cobra.Command { 12 | cmd := &cobra.Command{ 13 | Use: "auth", 14 | Short: "Authenticate to DC/OS cluster", 15 | RunE: func(cmd *cobra.Command, args []string) error { 16 | if len(args) == 0 { 17 | return cmd.Help() 18 | } 19 | fmt.Fprintln(ctx.ErrOut(), cmd.UsageString()) 20 | return fmt.Errorf("unknown command %s", args[0]) 21 | }, 22 | } 23 | cmd.AddCommand( 24 | newCmdAuthListProviders(ctx), 25 | newCmdAuthLogin(ctx), 26 | newCmdAuthLogout(ctx), 27 | ) 28 | return cmd 29 | } 30 | -------------------------------------------------------------------------------- /pkg/cmd/cluster/testdata/cluster_attach/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "single_config_unattached" 3 | -------------------------------------------------------------------------------- /pkg/cmd/cluster/testdata/cluster_attach_multiple/.dcos/clusters/29891250-f9f1-4293-9225-e6e3900043a8/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "config_unattached" 3 | -------------------------------------------------------------------------------- /pkg/cmd/cluster/testdata/cluster_attach_multiple/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "other_config_unattached" 3 | -------------------------------------------------------------------------------- /pkg/cmd/config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/dcos/dcos-cli/api" 7 | "github.com/spf13/cobra" 8 | ) 9 | 10 | // NewCommand creates the `dcos config` subcommand. 11 | func NewCommand(ctx api.Context) *cobra.Command { 12 | cmd := &cobra.Command{ 13 | Use: "config", 14 | Short: "Manage the DC/OS configuration file", 15 | RunE: func(cmd *cobra.Command, args []string) error { 16 | if len(args) == 0 { 17 | return cmd.Help() 18 | } 19 | fmt.Fprintln(ctx.ErrOut(), cmd.UsageString()) 20 | return fmt.Errorf("unknown command %s", args[0]) 21 | }, 22 | } 23 | cmd.AddCommand( 24 | newCmdConfigKeys(ctx), 25 | newCmdConfigSet(ctx), 26 | newCmdConfigShow(ctx), 27 | newCmdConfigUnset(ctx), 28 | ) 29 | return cmd 30 | } 31 | -------------------------------------------------------------------------------- /pkg/cmd/config/config_show_test.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "bytes" 5 | "testing" 6 | 7 | "github.com/dcos/dcos-cli/pkg/config" 8 | "github.com/dcos/dcos-cli/pkg/mock" 9 | "github.com/stretchr/testify/require" 10 | ) 11 | 12 | func TestConfigShowEnvVar(t *testing.T) { 13 | var out bytes.Buffer 14 | 15 | env := mock.NewEnvironment() 16 | env.Out = &out 17 | env.EnvLookup = func(key string) (string, bool) { 18 | if key == "DCOS_TIMEOUT" { 19 | return "300", true 20 | } 21 | return "", false 22 | } 23 | 24 | ctx := mock.NewContext(env) 25 | ctx.SetCluster(config.NewCluster(config.New(config.Opts{ 26 | EnvLookup: env.EnvLookup, 27 | }))) 28 | cmd := newCmdConfigShow(ctx) 29 | cmd.SetArgs([]string{"core.timeout"}) 30 | 31 | err := cmd.Execute() 32 | require.NoError(t, err) 33 | 34 | require.Equal(t, "300\n", out.String()) 35 | } 36 | -------------------------------------------------------------------------------- /pkg/cmd/config/config_unset.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "github.com/dcos/dcos-cli/api" 5 | "github.com/spf13/cobra" 6 | ) 7 | 8 | // newCmdConfigUnset creates the `dcos config unset` subcommand. 9 | func newCmdConfigUnset(ctx api.Context) *cobra.Command { 10 | return &cobra.Command{ 11 | Use: "unset ", 12 | Short: "Remove a property from the configuration file used for the current cluster", 13 | Args: cobra.ExactArgs(1), 14 | RunE: func(cmd *cobra.Command, args []string) error { 15 | cluster, err := ctx.Cluster() 16 | if err != nil { 17 | return err 18 | } 19 | conf := cluster.Config() 20 | conf.Unset(args[0]) 21 | err = conf.Persist() 22 | if err != nil { 23 | return err 24 | } 25 | ctx.Logger().Infof("Config value %s was removed", args[0]) 26 | return nil 27 | }, 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /pkg/cmd/plugin/plugin.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/dcos/dcos-cli/api" 7 | "github.com/spf13/cobra" 8 | ) 9 | 10 | // NewCommand creates the `dcos plugin` subcommand. 11 | func NewCommand(ctx api.Context) *cobra.Command { 12 | cmd := &cobra.Command{ 13 | Use: "plugin", 14 | Short: "Manage CLI plugins", 15 | RunE: func(cmd *cobra.Command, args []string) error { 16 | if len(args) == 0 { 17 | return cmd.Help() 18 | } 19 | fmt.Fprintln(ctx.ErrOut(), cmd.UsageString()) 20 | return fmt.Errorf("unknown command %s", args[0]) 21 | }, 22 | } 23 | cmd.AddCommand( 24 | newCmdPluginAdd(ctx), 25 | newCmdPluginRemove(ctx), 26 | newCmdPluginList(ctx), 27 | ) 28 | return cmd 29 | } 30 | -------------------------------------------------------------------------------- /pkg/cmd/plugin/plugin_remove.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "github.com/dcos/dcos-cli/api" 5 | "github.com/spf13/cobra" 6 | ) 7 | 8 | // newCmdPluginRemove creates the `dcos plugin remove` subcommand. 9 | func newCmdPluginRemove(ctx api.Context) *cobra.Command { 10 | return &cobra.Command{ 11 | Use: "remove ", 12 | Short: "Remove a CLI plugin", 13 | Args: cobra.ExactArgs(1), 14 | RunE: func(cmd *cobra.Command, args []string) error { 15 | cluster, err := ctx.Cluster() 16 | if err != nil { 17 | return err 18 | } 19 | return ctx.PluginManager(cluster).Remove(args[0]) 20 | }, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /pkg/config/doc.go: -------------------------------------------------------------------------------- 1 | // Package config manages CLI configurations for your DC/OS clusters. 2 | // 3 | // Each configured cluster has an associated TOML configuration file 4 | // which can be parsed, updated, or displayed through the Config struct. 5 | package config 6 | -------------------------------------------------------------------------------- /pkg/config/testdata/conflicting_.dcos_file/.dcos: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/conflicting_.dcos_file/.dcos -------------------------------------------------------------------------------- /pkg/config/testdata/conflicting_clusters_file/.dcos/clusters: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/conflicting_clusters_file/.dcos/clusters -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_none_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "error" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_none_attached/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "multi_config_with_none_attached" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_one_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "error" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_one_attached/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/attached: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/multi_config_with_one_attached/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/attached -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_one_attached/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "multi_config_with_one_attached" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_one_attached/.dcos/dcos.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/multi_config_with_one_attached/.dcos/dcos.toml -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_same_name/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "multi_config_with_same_name" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/multi_config_with_same_name/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/dcos.toml: -------------------------------------------------------------------------------- 1 | [core] 2 | dcos_url = "https://success.example.com" 3 | 4 | [cluster] 5 | name = "multi_config_with_same_name" 6 | -------------------------------------------------------------------------------- /pkg/config/testdata/multiple_config_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/attached: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/multiple_config_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/attached -------------------------------------------------------------------------------- /pkg/config/testdata/multiple_config_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "error" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/multiple_config_attached/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/attached: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/multiple_config_attached/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/attached -------------------------------------------------------------------------------- /pkg/config/testdata/multiple_config_attached/.dcos/clusters/97193161-f7f1-2295-2514-a6b3918043b6/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "error" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/single_config_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/attached: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/single_config_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/attached -------------------------------------------------------------------------------- /pkg/config/testdata/single_config_attached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "single_config_attached" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/single_config_attached/.dcos/dcos.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/single_config_attached/.dcos/dcos.toml -------------------------------------------------------------------------------- /pkg/config/testdata/single_config_unattached/.dcos/clusters/79893270-f9f1-4293-9225-e6e3900043a9/dcos.toml: -------------------------------------------------------------------------------- 1 | [cluster] 2 | name = "single_config_unattached" 3 | -------------------------------------------------------------------------------- /pkg/config/testdata/single_config_unattached/.dcos/dcos.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/config/testdata/single_config_unattached/.dcos/dcos.toml -------------------------------------------------------------------------------- /pkg/dcos/error.go: -------------------------------------------------------------------------------- 1 | package dcos 2 | 3 | // Error is a standard error returned by the DC/OS API. 4 | type Error struct { 5 | Title string `json:"title"` 6 | Description string `json:"description"` 7 | Code string `json:"code"` 8 | } 9 | 10 | // Error converts an API error to a string. 11 | func (err *Error) Error() string { 12 | return err.Description 13 | } 14 | -------------------------------------------------------------------------------- /pkg/log/formatter.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | import ( 4 | "bytes" 5 | 6 | "github.com/sirupsen/logrus" 7 | ) 8 | 9 | // Formatter is a simple formatter for logrus. 10 | type Formatter struct{} 11 | 12 | // Format returns the log entry message with a trailing newline. 13 | func (f *Formatter) Format(entry *logrus.Entry) ([]byte, error) { 14 | var b *bytes.Buffer 15 | if entry.Buffer != nil { 16 | b = entry.Buffer 17 | } else { 18 | b = &bytes.Buffer{} 19 | } 20 | b.WriteString(entry.Message + "\n") 21 | return b.Bytes(), nil 22 | } 23 | -------------------------------------------------------------------------------- /pkg/open/open.go: -------------------------------------------------------------------------------- 1 | package open 2 | 3 | import ( 4 | "github.com/sirupsen/logrus" 5 | ) 6 | 7 | // Opener opens a file or URL in the user's preferred application. 8 | type Opener interface { 9 | Open(resource string) error 10 | } 11 | 12 | // OsOpener is an Opener using OS-specific commands. 13 | // It is only relevant in desktop environments. 14 | type OsOpener struct { 15 | logger *logrus.Logger 16 | } 17 | 18 | // NewOsOpener creates a new OsOpener, 19 | func NewOsOpener(logger *logrus.Logger) *OsOpener { 20 | return &OsOpener{ 21 | logger: logger, 22 | } 23 | } 24 | 25 | // OpenerFunc is a func adapter for the Opener interface. 26 | type OpenerFunc func(string) error 27 | 28 | // Open invokes the OpenerFunc. 29 | func (f OpenerFunc) Open(resource string) error { 30 | return f(resource) 31 | } 32 | -------------------------------------------------------------------------------- /pkg/open/open_darwin.go: -------------------------------------------------------------------------------- 1 | package open 2 | 3 | import ( 4 | "os/exec" 5 | ) 6 | 7 | // Open opens a resource on macOS, using the "open" command. 8 | func (o *OsOpener) Open(resource string) error { 9 | cmd := exec.Command("open", resource) 10 | out, err := cmd.CombinedOutput() 11 | if len(out) > 0 { 12 | o.logger.Debug(string(out)) 13 | } 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /pkg/open/open_linux.go: -------------------------------------------------------------------------------- 1 | package open 2 | 3 | import ( 4 | "os/exec" 5 | ) 6 | 7 | // Open opens a resource on Linux, it relies on "xdg-open". 8 | func (o *OsOpener) Open(resource string) error { 9 | cmd := exec.Command("xdg-open", resource) 10 | out, err := cmd.CombinedOutput() 11 | if len(out) > 0 { 12 | o.logger.Debug(string(out)) 13 | } 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /pkg/open/open_windows.go: -------------------------------------------------------------------------------- 1 | package open 2 | 3 | import ( 4 | "os/exec" 5 | ) 6 | 7 | // Open opens a resource on Windows through the FileProtocolHandler entrypoint of the url DLL. 8 | func (o *OsOpener) Open(resource string) error { 9 | cmd := exec.Command("rundll32", "url.dll,FileProtocolHandler", resource) 10 | out, err := cmd.CombinedOutput() 11 | if len(out) > 0 { 12 | o.logger.Debug(string(out)) 13 | } 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /pkg/plugin/derived.gen.go: -------------------------------------------------------------------------------- 1 | // Code generated by goderive DO NOT EDIT. 2 | 3 | package plugin 4 | 5 | // deriveDeepCopy recursively copies the contents of src into dst. 6 | func deriveDeepCopy(dst, src *Plugin) { 7 | dst.Name = src.Name 8 | if src.Commands == nil { 9 | dst.Commands = nil 10 | } else { 11 | if dst.Commands != nil { 12 | if len(src.Commands) > len(dst.Commands) { 13 | if cap(dst.Commands) >= len(src.Commands) { 14 | dst.Commands = (dst.Commands)[:len(src.Commands)] 15 | } else { 16 | dst.Commands = make([]Command, len(src.Commands)) 17 | } 18 | } else if len(src.Commands) < len(dst.Commands) { 19 | dst.Commands = (dst.Commands)[:len(src.Commands)] 20 | } 21 | } else { 22 | dst.Commands = make([]Command, len(src.Commands)) 23 | } 24 | copy(dst.Commands, src.Commands) 25 | } 26 | dst.dir = src.dir 27 | } 28 | -------------------------------------------------------------------------------- /pkg/plugin/testdata/.gitignore: -------------------------------------------------------------------------------- 1 | # env is ignored in the root gitignore, this resets that so the testdata can be tracked 2 | !env/ -------------------------------------------------------------------------------- /pkg/plugin/testdata/binary_only/subcommands/dcos-test-cli/env/bin/dcos-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/plugin/testdata/binary_only/subcommands/dcos-test-cli/env/bin/dcos-test -------------------------------------------------------------------------------- /pkg/plugin/testdata/malformed_toml/subcommands/malformed/env/bin/dcos-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/plugin/testdata/malformed_toml/subcommands/malformed/env/bin/dcos-test -------------------------------------------------------------------------------- /pkg/plugin/testdata/malformed_toml/subcommands/malformed/env/plugin.toml: -------------------------------------------------------------------------------- 1 | not valid toml -------------------------------------------------------------------------------- /pkg/plugin/testdata/multiple_commands/subcommands/toml/env/bin/dcos-no-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/plugin/testdata/multiple_commands/subcommands/toml/env/bin/dcos-no-test -------------------------------------------------------------------------------- /pkg/plugin/testdata/multiple_commands/subcommands/toml/env/bin/dcos-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/pkg/plugin/testdata/multiple_commands/subcommands/toml/env/bin/dcos-test -------------------------------------------------------------------------------- /pkg/plugin/testdata/multiple_commands/subcommands/toml/env/plugin.toml: -------------------------------------------------------------------------------- 1 | schemaVersion = "v1" 2 | name = "toml" 3 | 4 | [[commands]] 5 | name = "test" 6 | path = "bin/dcos-test" 7 | description = "This is a test" 8 | 9 | [[commands]] 10 | name = "no-test" 11 | path = "bin/dcos-no-test" 12 | description = "This is not a test" 13 | -------------------------------------------------------------------------------- /tests/integration/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | ignore = E501, F811 3 | -------------------------------------------------------------------------------- /tests/integration/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/tests/integration/__init__.py -------------------------------------------------------------------------------- /tests/integration/fixtures/plugins/dcos-test/darwin/dcos-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/tests/integration/fixtures/plugins/dcos-test/darwin/dcos-test -------------------------------------------------------------------------------- /tests/integration/fixtures/plugins/dcos-test/linux/dcos-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/tests/integration/fixtures/plugins/dcos-test/linux/dcos-test -------------------------------------------------------------------------------- /tests/integration/fixtures/plugins/dcos-test/win32/dcos-test.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/tests/integration/fixtures/plugins/dcos-test/win32/dcos-test.exe -------------------------------------------------------------------------------- /tests/requirements.txt: -------------------------------------------------------------------------------- 1 | attrs==18.2.0 2 | pytest==4.1.1 3 | flake8==3.5.0 4 | requests==2.21.0 5 | -------------------------------------------------------------------------------- /vendor/github.com/VividCortex/ewma/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .*.sw? 3 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/bool.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Bool struct { 4 | isSet bool 5 | value bool 6 | } 7 | 8 | func NewBool(value bool) Bool { 9 | return Bool{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyBool returns a new Bool that does not have a value set. 16 | func EmptyBool() Bool { 17 | return Bool{ 18 | false, 19 | false, 20 | } 21 | } 22 | 23 | func (b Bool) IsSet() bool { 24 | return b.isSet 25 | } 26 | 27 | func (b Bool) Value() bool { 28 | return b.value 29 | } 30 | 31 | func (b Bool) Default(defaultValue bool) bool { 32 | if b.isSet { 33 | return b.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/byte.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Byte struct { 4 | isSet bool 5 | value byte 6 | } 7 | 8 | func NewByte(value byte) Byte { 9 | return Byte{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyByte returns a new Byte that does not have a value set. 16 | func EmptyByte() Byte { 17 | return Byte{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (b Byte) IsSet() bool { 24 | return b.isSet 25 | } 26 | 27 | func (b Byte) Value() byte { 28 | return b.value 29 | } 30 | 31 | func (b Byte) Default(defaultValue byte) byte { 32 | if b.isSet { 33 | return b.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/complex128.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Complex128 struct { 4 | isSet bool 5 | value complex128 6 | } 7 | 8 | func NewComplex128(value complex128) Complex128 { 9 | return Complex128{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyComplex128 returns a new Complex128 that does not have a value set. 16 | func EmptyComplex128() Complex128 { 17 | return Complex128{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Complex128) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Complex128) Value() complex128 { 28 | return i.value 29 | } 30 | 31 | func (i Complex128) Default(defaultValue complex128) complex128 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/complex64.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Complex64 struct { 4 | isSet bool 5 | value complex64 6 | } 7 | 8 | func NewComplex64(value complex64) Complex64 { 9 | return Complex64{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyComplex64 returns a new Complex64 that does not have a value set. 16 | func EmptyComplex64() Complex64 { 17 | return Complex64{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Complex64) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Complex64) Value() complex64 { 28 | return i.value 29 | } 30 | 31 | func (i Complex64) Default(defaultValue complex64) complex64 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/float32.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Float32 struct { 4 | isSet bool 5 | value float32 6 | } 7 | 8 | func NewFloat32(value float32) Float32 { 9 | return Float32{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyFloat32 returns a new Float32 that does not have a value set. 16 | func EmptyFloat32() Float32 { 17 | return Float32{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Float32) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Float32) Value() float32 { 28 | return i.value 29 | } 30 | 31 | func (i Float32) Default(defaultValue float32) float32 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/float64.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Float64 struct { 4 | isSet bool 5 | value float64 6 | } 7 | 8 | func NewFloat64(value float64) Float64 { 9 | return Float64{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyFloat64 returns a new Float64 that does not have a value set. 16 | func EmptyFloat64() Float64 { 17 | return Float64{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Float64) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Float64) Value() float64 { 28 | return i.value 29 | } 30 | 31 | func (i Float64) Default(defaultValue float64) float64 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/antihax/optional 2 | 3 | go 1.13 4 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/int.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Int struct { 4 | isSet bool 5 | value int 6 | } 7 | 8 | func NewInt(value int) Int { 9 | return Int{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyInt returns a new Int that does not have a value set. 16 | func EmptyInt() Int { 17 | return Int{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Int) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Int) Value() int { 28 | return i.value 29 | } 30 | 31 | func (i Int) Default(defaultValue int) int { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/int16.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Int16 struct { 4 | isSet bool 5 | value int16 6 | } 7 | 8 | func NewInt16(value int16) Int16 { 9 | return Int16{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyInt16 returns a new Int16 that does not have a value set. 16 | func EmptyInt16() Int16 { 17 | return Int16{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Int16) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Int16) Value() int16 { 28 | return i.value 29 | } 30 | 31 | func (i Int16) Default(defaultValue int16) int16 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/int32.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Int32 struct { 4 | isSet bool 5 | value int32 6 | } 7 | 8 | func NewInt32(value int32) Int32 { 9 | return Int32{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyInt32 returns a new Int32 that does not have a value set. 16 | func EmptyInt32() Int32 { 17 | return Int32{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Int32) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Int32) Value() int32 { 28 | return i.value 29 | } 30 | 31 | func (i Int32) Default(defaultValue int32) int32 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/int64.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Int64 struct { 4 | isSet bool 5 | value int64 6 | } 7 | 8 | func NewInt64(value int64) Int64 { 9 | return Int64{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyInt64 returns a new Int64 that does not have a value set. 16 | func EmptyInt64() Int64 { 17 | return Int64{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Int64) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Int64) Value() int64 { 28 | return i.value 29 | } 30 | 31 | func (i Int64) Default(defaultValue int64) int64 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/int8.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Int8 struct { 4 | isSet bool 5 | value int8 6 | } 7 | 8 | func NewInt8(value int8) Int8 { 9 | return Int8{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyInt8 returns a new Int8 that does not have a value set. 16 | func EmptyInt8() Int8 { 17 | return Int8{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Int8) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Int8) Value() int8 { 28 | return i.value 29 | } 30 | 31 | func (i Int8) Default(defaultValue int8) int8 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/interface.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | // Optional represents a generic optional type, stored as an interface{}. 4 | type Interface struct { 5 | isSet bool 6 | value interface{} 7 | } 8 | 9 | func NewInterface(value interface{}) Interface { 10 | return Interface{ 11 | true, 12 | value, 13 | } 14 | } 15 | 16 | // EmptyInterface returns a new Interface that does not have a value set. 17 | func EmptyInterface() Interface { 18 | return Interface{ 19 | false, 20 | nil, 21 | } 22 | } 23 | 24 | func (b Interface) IsSet() bool { 25 | return b.isSet 26 | } 27 | 28 | func (b Interface) Value() interface{} { 29 | return b.value 30 | } 31 | 32 | func (b Interface) Default(defaultValue interface{}) interface{} { 33 | if b.isSet { 34 | return b.value 35 | } 36 | return defaultValue 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/rune.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Rune struct { 4 | isSet bool 5 | value rune 6 | } 7 | 8 | func NewRune(value rune) Rune { 9 | return Rune{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyRune returns a new Rune that does not have a value set. 16 | func EmptyRune() Rune { 17 | return Rune{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (b Rune) IsSet() bool { 24 | return b.isSet 25 | } 26 | 27 | func (b Rune) Value() rune { 28 | return b.value 29 | } 30 | 31 | func (b Rune) Default(defaultValue rune) rune { 32 | if b.isSet { 33 | return b.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/string.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type String struct { 4 | isSet bool 5 | value string 6 | } 7 | 8 | func NewString(value string) String { 9 | return String{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyString returns a new String that does not have a value set. 16 | func EmptyString() String { 17 | return String{ 18 | false, 19 | "", 20 | } 21 | } 22 | 23 | func (b String) IsSet() bool { 24 | return b.isSet 25 | } 26 | 27 | func (b String) Value() string { 28 | return b.value 29 | } 30 | 31 | func (b String) Default(defaultValue string) string { 32 | if b.isSet { 33 | return b.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/time.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | import "time" 4 | 5 | type Time struct { 6 | isSet bool 7 | value time.Time 8 | } 9 | 10 | func NewTime(value time.Time) Time { 11 | return Time{ 12 | true, 13 | value, 14 | } 15 | } 16 | 17 | // EmptyTime returns a new Time that does not have a value set. 18 | func EmptyTime() Time { 19 | return Time{ 20 | false, 21 | time.Time{}, 22 | } 23 | } 24 | 25 | func (b Time) IsSet() bool { 26 | return b.isSet 27 | } 28 | 29 | func (b Time) Value() time.Time { 30 | return b.value 31 | } 32 | 33 | func (b Time) Default(defaultValue time.Time) time.Time { 34 | if b.isSet { 35 | return b.value 36 | } 37 | return defaultValue 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/uint.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Uint struct { 4 | isSet bool 5 | value uint 6 | } 7 | 8 | func NewUint(value uint) Uint { 9 | return Uint{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyUint returns a new Uint that does not have a value set. 16 | func EmptyUint() Uint { 17 | return Uint{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Uint) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Uint) Value() uint { 28 | return i.value 29 | } 30 | 31 | func (i Uint) Default(defaultValue uint) uint { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/uint16.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Uint16 struct { 4 | isSet bool 5 | value uint16 6 | } 7 | 8 | func NewUint16(value uint16) Uint16 { 9 | return Uint16{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyUint16 returns a new Uint16 that does not have a value set. 16 | func EmptyUint16() Uint16 { 17 | return Uint16{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Uint16) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Uint16) Value() uint16 { 28 | return i.value 29 | } 30 | 31 | func (i Uint16) Default(defaultValue uint16) uint16 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/uint32.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Uint32 struct { 4 | isSet bool 5 | value uint32 6 | } 7 | 8 | func NewUint32(value uint32) Uint32 { 9 | return Uint32{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyUint32 returns a new Uint32 that does not have a value set. 16 | func EmptyUint32() Uint32 { 17 | return Uint32{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Uint32) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Uint32) Value() uint32 { 28 | return i.value 29 | } 30 | 31 | func (i Uint32) Default(defaultValue uint32) uint32 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/uint64.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Uint64 struct { 4 | isSet bool 5 | value uint64 6 | } 7 | 8 | func NewUint64(value uint64) Uint64 { 9 | return Uint64{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyUint64 returns a new Uint64 that does not have a value set. 16 | func EmptyUint64() Uint64 { 17 | return Uint64{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Uint64) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Uint64) Value() uint64 { 28 | return i.value 29 | } 30 | 31 | func (i Uint64) Default(defaultValue uint64) uint64 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/uint8.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Uint8 struct { 4 | isSet bool 5 | value uint8 6 | } 7 | 8 | func NewUint8(value uint8) Uint8 { 9 | return Uint8{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyUint8 returns a new Uint8 that does not have a value set. 16 | func EmptyUint8() Uint8 { 17 | return Uint8{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Uint8) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Uint8) Value() uint8 { 28 | return i.value 29 | } 30 | 31 | func (i Uint8) Default(defaultValue uint8) uint8 { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/antihax/optional/uintptr.go: -------------------------------------------------------------------------------- 1 | package optional 2 | 3 | type Uintptr struct { 4 | isSet bool 5 | value uintptr 6 | } 7 | 8 | func NewUintptr(value uintptr) Uintptr { 9 | return Uintptr{ 10 | true, 11 | value, 12 | } 13 | } 14 | 15 | // EmptyUintptr returns a new Uintptr that does not have a value set. 16 | func EmptyUintptr() Uintptr { 17 | return Uintptr{ 18 | false, 19 | 0, 20 | } 21 | } 22 | 23 | func (i Uintptr) IsSet() bool { 24 | return i.isSet 25 | } 26 | 27 | func (i Uintptr) Value() uintptr { 28 | return i.value 29 | } 30 | 31 | func (i Uintptr) Default(defaultValue uintptr) uintptr { 32 | if i.isSet { 33 | return i.value 34 | } 35 | return defaultValue 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012-2016 Dave Collins 4 | 5 | Permission to use, copy, modify, and/or 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/dcos/client-go/dcos/model_cosmos_error.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosError struct { 14 | Type string `json:"type"` 15 | Message string `json:"message"` 16 | Data map[string]interface{} `json:"data,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_hash.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosHash struct { 14 | Algo CosmosHashAlgo `json:"algo,omitempty"` 15 | Value string `json:"value,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_hash_algo.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosHashAlgo string 14 | 15 | // List of CosmosHashAlgo 16 | const ( 17 | SHA256 CosmosHashAlgo = "sha256" 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_add_repo_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageAddRepoV1Request struct { 14 | Name string `json:"name"` 15 | Uri string `json:"uri"` 16 | Index *int32 `json:"index,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_add_repo_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageAddRepoV1Response struct { 14 | Repositories []CosmosPackageRepo `json:"repositories"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_command.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageCommand struct { 14 | Name string `json:"name,omitempty"` 15 | // [Deprecated v3.x] An array of strings representing of the requirements file to use for installing the subcommand for Pip. Each item is interpreted as a line in the requirements file. 16 | Pip []string `json:"pip,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_delete_repo_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageDeleteRepoV1Request struct { 14 | Name string `json:"name,omitempty"` 15 | Uri string `json:"uri,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_delete_repo_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageDeleteRepoV1Response struct { 14 | Repositories []CosmosPackageRepo `json:"repositories"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_describe_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageDescribeV1Request struct { 14 | PackageName string `json:"packageName"` 15 | PackageVersion string `json:"packageVersion,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_describe_v3_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageDescribeV3Response struct { 14 | Package CosmosPackage `json:"package"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_install_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageInstallV1Request struct { 14 | AppId string `json:"appId,omitempty"` 15 | Options map[string]interface{} `json:"options,omitempty"` 16 | PackageName string `json:"packageName"` 17 | PackageVersion string `json:"packageVersion,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_install_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageInstallV1Response struct { 14 | AppId string `json:"appId,omitempty"` 15 | Cli CosmosPackageResourceCli `json:"cli,omitempty"` 16 | PackageName string `json:"packageName"` 17 | PackageVersion string `json:"packageVersion"` 18 | PostInstallNotes string `json:"postInstallNotes,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_license.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageLicense struct { 14 | // The name of the license. For example one of [Apache License Version 2.0 | MIT License | BSD License | Proprietary] 15 | Name string `json:"name"` 16 | Url string `json:"url"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_list_repo_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageListRepoV1Response struct { 14 | Repositories []CosmosPackageRepo `json:"repositories"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_list_v1_package.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageListV1Package struct { 14 | AppId string `json:"appId,omitempty"` 15 | PackageInformation CosmosPackageListV1PackageInformation `json:"packageInformation,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_list_v1_package_information.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageListV1PackageInformation struct { 14 | AppId string `json:"appId,omitempty"` 15 | PackageDefinition CosmosPackage `json:"packageDefinition,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_list_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageListV1Request struct { 14 | PackageName string `json:"packageName,omitempty"` 15 | AppId string `json:"appId,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_list_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageListV1Response struct { 14 | Packages []CosmosPackageListV1Package `json:"packages"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_list_versions_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageListVersionsV1Request struct { 14 | PackageName string `json:"packageName"` 15 | IncludePackageVersions bool `json:"includePackageVersions"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_list_versions_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageListVersionsV1Response struct { 14 | Results map[string]string `json:"results"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_manager.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageManager struct { 14 | PackageName string `json:"packageName,omitempty"` 15 | MinPackageVersion string `json:"minPackageVersion,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_marathon.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageMarathon struct { 14 | V2AppMustacheTemplate string `json:"v2AppMustacheTemplate"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_render_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageRenderV1Request struct { 14 | AppId string `json:"appId,omitempty"` 15 | Options map[string]interface{} `json:"options,omitempty"` 16 | PackageName string `json:"packageName"` 17 | PackageVersion string `json:"packageVersion,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_render_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageRenderV1Response struct { 14 | MarathonJson map[string]interface{} `json:"marathonJson"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_repo.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageRepo struct { 14 | Name string `json:"name"` 15 | Uri string `json:"uri"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResource struct { 14 | Assets CosmosPackageResourceAssets `json:"assets,omitempty"` 15 | Cli CosmosPackageResourceCli `json:"cli,omitempty"` 16 | Images CosmosPackageResourceImages `json:"images,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource_assets.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResourceAssets struct { 14 | Container CosmosPackageResourceAssetsContainer `json:"container,omitempty"` 15 | Uris map[string]string `json:"uris,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource_assets_container.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResourceAssetsContainer struct { 14 | Docker map[string]string `json:"docker,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource_cli.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResourceCli struct { 14 | Binaries CosmosPackageResourceCliBinaries `json:"binaries,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource_cli_artifact.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResourceCliArtifact struct { 14 | ContentHash []CosmosHash `json:"contentHash,omitempty"` 15 | Kind string `json:"kind,omitempty"` 16 | Url string `json:"url,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource_cli_binaries.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResourceCliBinaries struct { 14 | Darwin CosmosPackageResourceCliOsBinaries `json:"darwin,omitempty"` 15 | Linux CosmosPackageResourceCliOsBinaries `json:"linux,omitempty"` 16 | Windows CosmosPackageResourceCliOsBinaries `json:"windows,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource_cli_os_binaries.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResourceCliOsBinaries struct { 14 | X8664 CosmosPackageResourceCliArtifact `json:"x86-64,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_resource_images.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageResourceImages struct { 14 | // PNG icon URL, preferably 256 by 256 pixels. 15 | IconLarge string `json:"icon-large,omitempty"` 16 | // PNG icon URL, preferably 128 by 128 pixels. 17 | IconMedium string `json:"icon-medium,omitempty"` 18 | // PNG icon URL, preferably 48 by 48 pixels. 19 | IconSmall string `json:"icon-small,omitempty"` 20 | Screenshots []string `json:"screenshots,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_search_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageSearchV1Request struct { 14 | Query string `json:"query,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_search_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageSearchV1Response struct { 14 | Packages []CosmosPackageSearchDetails `json:"packages,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_uninstall_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageUninstallV1Request struct { 14 | AppId string `json:"appId,omitempty"` 15 | PackageName string `json:"packageName"` 16 | All bool `json:"all,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_uninstall_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageUninstallV1Response struct { 14 | Results []CosmosPackageUninstallV1ResponseResults `json:"results"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_package_uninstall_v1_response_results.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosPackageUninstallV1ResponseResults struct { 14 | AppId string `json:"appId"` 15 | PackageName string `json:"packageName"` 16 | PackageVersion string `json:"packageVersion,omitempty"` 17 | PostUninstallNotes string `json:"postUninstallNotes,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_service_describe_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosServiceDescribeV1Request struct { 14 | AppId string `json:"appId"` 15 | ManagerId string `json:"managerId"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_service_describe_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosServiceDescribeV1Response struct { 14 | DowngradesTo []string `json:"downgradesTo"` 15 | Package CosmosPackage `json:"package"` 16 | // The result of merging the default package options with the user supplied options 17 | ResolvedOptions map[string]interface{} `json:"resolvedOptions,omitempty"` 18 | UpgradesTo []string `json:"upgradesTo"` 19 | // The options the user provided to run the service 20 | UserProvidedOptions map[string]interface{} `json:"userProvidedOptions,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_service_update_v1_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosServiceUpdateV1Request struct { 14 | AppId string `json:"appId"` 15 | Options map[string]interface{} `json:"options,omitempty"` 16 | PackageName string `json:"packageName,omitempty"` 17 | PackageVersion string `json:"packageVersion,omitempty"` 18 | // If true any stored configuration will be ignored when producing the updated service configuration. 19 | Replace bool `json:"replace"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_cosmos_service_update_v1_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type CosmosServiceUpdateV1Response struct { 14 | MarathonDeploymentId string `json:"marathonDeploymentId"` 15 | Package CosmosPackage `json:"package"` 16 | // The result of merging the default package options with the user supplied options 17 | ResolvedOptions map[string]interface{} `json:"resolvedOptions"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_api_version.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbApiVersion string 14 | 15 | // List of EdgelbAPIVersion 16 | const ( 17 | V1 EdgelbApiVersion = "V1" 18 | V2 EdgelbApiVersion = "V2" 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_config_container.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Object used internally as an interface to handle multple model versions. 14 | type EdgelbConfigContainer struct { 15 | // Array of pool containers. 16 | Pools []EdgelbPoolContainer `json:"pools,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_error.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbError struct { 14 | Code int32 `json:"code,omitempty"` 15 | Message string `json:"message,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_pool_container.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Object used internally as an interface to handle multple model versions. 14 | type EdgelbPoolContainer struct { 15 | ApiVersion EdgelbApiVersion `json:"apiVersion,omitempty"` 16 | Name string `json:"name,omitempty"` 17 | Namespace string `json:"namespace,omitempty"` 18 | V2 EdgelbV2Pool `json:"v2,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_backend_custom_check.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // This is used to specify alternate forms of healthchecks 14 | type EdgelbV2BackendCustomCheck struct { 15 | Httpchk bool `json:"httpchk,omitempty"` 16 | HttpchkMiscStr string `json:"httpchkMiscStr,omitempty"` 17 | SslHelloChk bool `json:"sslHelloChk,omitempty"` 18 | MiscStr string `json:"miscStr,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_endpoint.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2Endpoint struct { 14 | Type string `json:"type,omitempty"` 15 | // Append arbitrary string to add to the end of the \"server\" directive. 16 | MiscStr string `json:"miscStr,omitempty"` 17 | Check EdgelbV2EndpointCheck `json:"check,omitempty"` 18 | // Server address override, can be used to specify a cluster internal address such as a VIP. 19 | Address string `json:"address,omitempty"` 20 | Port int32 `json:"port,omitempty"` 21 | PortName string `json:"portName,omitempty"` 22 | AllPorts bool `json:"allPorts,omitempty"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_endpoint_check.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Enable health checks. These are by default TCP health checks. For more options see \"customCheck\". These are required for DNS resolution to function properly. 14 | type EdgelbV2EndpointCheck struct { 15 | Enabled bool `json:"enabled,omitempty"` 16 | CustomStr string `json:"customStr,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_frontend_link_backend.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // This describes what backends to send traffic to. This can be expressed with a variety of filters such as matching on the hostname or the HTTP URL path. 14 | type EdgelbV2FrontendLinkBackend struct { 15 | // This is default backend that is routed to if none of the other filters are matched. 16 | DefaultBackend string `json:"defaultBackend,omitempty"` 17 | // This is an optional field that specifies a mapping to various backends. These rules are applied in order. 18 | Map []EdgelbV2FrontendLinkBackendMap `json:"map,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_frontend_redirect_to_https.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Setting this to the empty object is enough to redirect all traffic from HTTP (this frontend) to HTTPS (port 443). 14 | type EdgelbV2FrontendRedirectToHttps struct { 15 | // One may additionally set a whitelist of fields that must be matched to allow HTTP. 16 | Except []EdgelbV2FrontendRedirectToHttpsExcept `json:"except,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_frontend_redirect_to_https_except.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Boolean AND will be applied with every selected value 14 | type EdgelbV2FrontendRedirectToHttpsExcept struct { 15 | // Match on host 16 | Host string `json:"host,omitempty"` 17 | // Match on path 18 | PathBeg string `json:"pathBeg,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_haproxy.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2Haproxy struct { 14 | Stats EdgelbV2Stats `json:"stats,omitempty"` 15 | // Array of frontends. 16 | Frontends []EdgelbV2Frontend `json:"frontends,omitempty"` 17 | // Array of backends. 18 | Backends []EdgelbV2Backend `json:"backends,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_pool_secrets.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2PoolSecrets struct { 14 | // Secret name 15 | Secret string `json:"secret,omitempty"` 16 | // File name. The file \"myfile\" will be found at \"$SECRETS/myfile\" 17 | File string `json:"file,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_pool_virtual_networks.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2PoolVirtualNetworks struct { 14 | // The name of the virtual network to join. 15 | Name string `json:"name,omitempty"` 16 | // Labels to pass to the virtual network plugin. 17 | Labels map[string]string `json:"labels,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_protocol.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2Protocol string 14 | 15 | // List of EdgelbV2Protocol 16 | const ( 17 | EdgelbV2ProtocolHTTP EdgelbV2Protocol = "HTTP" 18 | EdgelbV2ProtocolHTTPS EdgelbV2Protocol = "HTTPS" 19 | EdgelbV2ProtocolTCP EdgelbV2Protocol = "TCP" 20 | EdgelbV2ProtocolTLS EdgelbV2Protocol = "TLS" 21 | ) 22 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_rewrite_http.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2RewriteHttp struct { 14 | // Set the host header value 15 | Host string `json:"host,omitempty"` 16 | Path EdgelbV2RewriteHttpPath `json:"path,omitempty"` 17 | Request EdgelbV2RewriteHttpRequest `json:"request,omitempty"` 18 | Response EdgelbV2RewriteHttpResponse `json:"response,omitempty"` 19 | Sticky EdgelbV2RewriteHttpSticky `json:"sticky,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_rewrite_http_path.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Rewrite the HTTP URL path. Adding a slash to fromPath usually is not necessary. 14 | type EdgelbV2RewriteHttpPath struct { 15 | FromPath string `json:"fromPath,omitempty"` 16 | ToPath string `json:"toPath,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_rewrite_http_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Rewrite the request. To use the default values (recommended), set this field to the empty object. 14 | type EdgelbV2RewriteHttpRequest struct { 15 | Forwardfor bool `json:"forwardfor,omitempty"` 16 | XForwardedPort bool `json:"xForwardedPort,omitempty"` 17 | XForwardedProtoHttpsIfTls bool `json:"xForwardedProtoHttpsIfTls,omitempty"` 18 | SetHostHeader bool `json:"setHostHeader,omitempty"` 19 | RewritePath bool `json:"rewritePath,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_rewrite_http_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Rewrite the response. To use the default values (recommended), set this field to the empty object. 14 | type EdgelbV2RewriteHttpResponse struct { 15 | RewriteLocation bool `json:"rewriteLocation,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_rewrite_http_sticky.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Sticky sessions via a cookie. To use the default values (recommended), set this field to the empty object. 14 | type EdgelbV2RewriteHttpSticky struct { 15 | Enabled bool `json:"enabled,omitempty"` 16 | CustomStr string `json:"customStr,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_service.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2Service struct { 14 | Marathon EdgelbV2ServiceMarathon `json:"marathon,omitempty"` 15 | Mesos EdgelbV2ServiceMesos `json:"mesos,omitempty"` 16 | Endpoint EdgelbV2Endpoint `json:"endpoint,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_service_marathon.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2ServiceMarathon struct { 14 | // Marathon pod or application ID. 15 | ServiceID string `json:"serviceID,omitempty"` 16 | ServiceIDPattern string `json:"serviceIDPattern,omitempty"` 17 | // Marathon pod container name, optional unless using Marathon pods. 18 | ContainerName string `json:"containerName,omitempty"` 19 | ContainerNamePattern string `json:"containerNamePattern,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_edgelb_v2_stats.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type EdgelbV2Stats struct { 14 | BindAddress string `json:"bindAddress,omitempty"` 15 | BindPort int32 `json:"bindPort,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_acls.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamAcls struct { 14 | Array []Iamacl `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_action.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamAction struct { 14 | Name string `json:"name"` 15 | Url string `json:"url"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_action_allowed.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamActionAllowed struct { 14 | Allowed bool `json:"allowed"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_actions.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamActions struct { 14 | Array []IamAction `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_auth_token.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamAuthToken struct { 14 | Token string `json:"token"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_error.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamError struct { 14 | Title string `json:"title,omitempty"` 15 | Description string `json:"description,omitempty"` 16 | Code IamErrorCode `json:"code,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_group.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamGroup struct { 14 | Gid string `json:"gid"` 15 | Url string `json:"url"` 16 | Description string `json:"description"` 17 | ProviderType string `json:"provider_type"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_group_create.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamGroupCreate struct { 14 | Description string `json:"description"` 15 | ProviderType string `json:"provider_type,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_group_permissions.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamGroupPermissions struct { 14 | Array []IamUserPermissionsDirect `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_group_update.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamGroupUpdate struct { 14 | Description string `json:"description"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_group_users.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamGroupUsers struct { 14 | Array []IamGroupUsersArray `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_group_users_array.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamGroupUsersArray struct { 14 | Membershipurl string `json:"membershipurl"` 15 | User IamUser `json:"user"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_groups.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamGroups struct { 14 | Array []IamGroup `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_login_object.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamLoginObject struct { 14 | Uid string `json:"uid,omitempty"` 15 | Password string `json:"password,omitempty"` 16 | Token string `json:"token,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUser struct { 14 | Uid string `json:"uid"` 15 | Url string `json:"url"` 16 | Description string `json:"description"` 17 | IsRemote bool `json:"is_remote"` 18 | IsService bool `json:"is_service,omitempty"` 19 | PublicKey string `json:"public_key,omitempty"` 20 | ProviderType string `json:"provider_type"` 21 | ProviderId string `json:"provider_id"` 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user_create.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUserCreate struct { 14 | Description string `json:"description,omitempty"` 15 | Password string `json:"password,omitempty"` 16 | PublicKey string `json:"public_key,omitempty"` 17 | ProviderType string `json:"provider_type,omitempty"` 18 | ProviderId string `json:"provider_id,omitempty"` 19 | ClusterUrl string `json:"cluster_url,omitempty"` 20 | CreatorUid string `json:"creator_uid,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user_groups.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUserGroups struct { 14 | Array []IamUserGroupsArray `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user_groups_array.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUserGroupsArray struct { 14 | Membershipurl string `json:"membershipurl"` 15 | Group IamGroup `json:"group"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user_permissions.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUserPermissions struct { 14 | Direct []IamUserPermissionsDirect `json:"direct,omitempty"` 15 | Groups []IamUserPermissionsGroups `json:"groups,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user_permissions_direct.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUserPermissionsDirect struct { 14 | Rid string `json:"rid"` 15 | Description string `json:"description"` 16 | Aclurl string `json:"aclurl"` 17 | Actions []IamAction `json:"actions"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user_permissions_groups.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUserPermissionsGroups struct { 14 | Rid string `json:"rid"` 15 | Gid string `json:"gid"` 16 | Description string `json:"description"` 17 | Aclurl string `json:"aclurl"` 18 | Membershipurl string `json:"membershipurl"` 19 | Actions []IamAction `json:"actions"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_user_update.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUserUpdate struct { 14 | Description string `json:"description,omitempty"` 15 | Password string `json:"password,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iam_users.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamUsers struct { 14 | Array []IamUser `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamacl.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type Iamacl struct { 14 | Rid string `json:"rid"` 15 | Url string `json:"url"` 16 | Description string `json:"description"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamacl_create.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamaclCreate struct { 14 | Description string `json:"description"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamacl_permissions.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamaclPermissions struct { 14 | Groups []IamaclPermissionsGroups `json:"groups,omitempty"` 15 | Users []IamaclPermissionsUsers `json:"users,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamacl_permissions_groups.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamaclPermissionsGroups struct { 14 | Gid string `json:"gid"` 15 | Groupurl string `json:"groupurl"` 16 | Actions []IamAction `json:"actions"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamacl_permissions_users.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamaclPermissionsUsers struct { 14 | Uid string `json:"uid"` 15 | Userurl string `json:"userurl"` 16 | Actions []IamAction `json:"actions"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamacl_update.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamaclUpdate struct { 14 | Description string `json:"description"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamldap_group_search_config.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamldapGroupSearchConfig struct { 14 | SearchBase string `json:"search-base"` 15 | SearchFilterTemplate string `json:"search-filter-template"` 16 | MemberAttributes []string `json:"member-attributes,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamldap_import_group_object.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamldapImportGroupObject struct { 14 | Groupname string `json:"groupname"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamldap_import_user_object.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamldapImportUserObject struct { 14 | Username string `json:"username"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamldap_test_credentials.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamldapTestCredentials struct { 14 | Uid string `json:"uid"` 15 | Password string `json:"password"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamldap_test_result_object.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamldapTestResultObject struct { 14 | Code string `json:"code"` 15 | Description string `json:"description"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamldap_user_search_config.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamldapUserSearchConfig struct { 14 | SearchBase string `json:"search-base"` 15 | SearchFilterTemplate string `json:"search-filter-template"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamoidc_provider_config.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamoidcProviderConfig struct { 14 | Description string `json:"description"` 15 | Issuer string `json:"issuer"` 16 | BaseUrl string `json:"base_url"` 17 | ClientSecret string `json:"client_secret"` 18 | ClientId string `json:"client_id"` 19 | VerifyServerCertificate bool `json:"verify_server_certificate,omitempty"` 20 | CaCerts string `json:"ca_certs,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamsaml_provider_config.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamsamlProviderConfig struct { 14 | Description string `json:"description"` 15 | IdpMetadata string `json:"idp_metadata"` 16 | SpBaseUrl string `json:"sp_base_url"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_iamsamlacs_callback_url_object.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type IamsamlacsCallbackUrlObject struct { 14 | AcsCallbackUrl string `json:"acs-callback-url"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_inline_response_200.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type InlineResponse200 struct { 14 | Array []IamAction `json:"array,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metadata.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type Metadata struct { 14 | PUBLICIPV4 string `json:"PUBLIC_IPV4,omitempty"` 15 | CLUSTER_ID string `json:"CLUSTER_ID,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_embeded.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeEmbeded string 14 | 15 | // List of MetronomeEmbeded 16 | const ( 17 | METRONOME_EMBEDED_ACTIVE_RUNS MetronomeEmbeded = "activeRuns" 18 | METRONOME_EMBEDED_SCHEDULES MetronomeEmbeded = "schedules" 19 | METRONOME_EMBEDED_HISTORY MetronomeEmbeded = "history" 20 | METRONOME_EMBEDED_HISTORY_SUMMARY MetronomeEmbeded = "historySummary" 21 | ) 22 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_restart_policy.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeRestartPolicy string 14 | 15 | // List of MetronomeRestartPolicy 16 | const ( 17 | METRONOME_RESTART_POLICY_NEVER MetronomeRestartPolicy = "NEVER" 18 | METRONOME_RESTART_POLICY_ON_FAILURE MetronomeRestartPolicy = "ON_FAILURE" 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_env_secret_value.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1EnvSecretValue struct { 14 | Secret string `json:"secret,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_error.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1Error struct { 14 | Message string `json:"message,omitempty"` 15 | Details []MetronomeV1ErrorDetails `json:"details,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_error_details.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1ErrorDetails struct { 14 | Path string `json:"path,omitempty"` 15 | Errors []string `json:"errors,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_artifacts.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobRunArtifacts struct { 14 | // URI to be fetched by Mesos fetcher module 15 | Uri string `json:"uri"` 16 | // Set fetched artifact as executable 17 | Executable bool `json:"executable,omitempty"` 18 | // Extract fetched artifact if supported by Mesos fetcher module 19 | Extract bool `json:"extract,omitempty"` 20 | // Cache fetched artifact if supported by Mesos fetcher module 21 | Cache bool `json:"cache,omitempty"` 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_docker.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobRunDocker struct { 14 | // The docker repository image name. 15 | Image string `json:"image"` 16 | // The containerizer will pull the image from the registry, even if the image is already downloaded on the agent. 17 | ForcePullImage bool `json:"forcePullImage,omitempty"` 18 | // Run this docker image in privileged mode 19 | Privileged bool `json:"privileged,omitempty"` 20 | Parameters []MetronomeV1JobRunDockerParameters `json:"parameters,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_docker_parameters.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobRunDockerParameters struct { 14 | Key string `json:"key"` 15 | Value string `json:"value"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_placement.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobRunPlacement struct { 14 | // The array of constraints to place this job. 15 | Constraints *[]MetronomeV1JobRunPlacementConstraints `json:"constraints,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_placement_constraints.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobRunPlacementConstraints struct { 14 | // The attribute name for this constraint. 15 | Attribute string `json:"attribute"` 16 | // The operator for this constraint. 17 | Operator string `json:"operator"` 18 | // The value for this constraint. 19 | Value string `json:"value,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_restart.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // Defines the behavior if a task fails 14 | type MetronomeV1JobRunRestart struct { 15 | // The policy to use if a job fails. NEVER will never try to relaunch a job. ON_FAILURE will try to start a job in case of failure. 16 | Policy string `json:"policy"` 17 | // If the job fails, how long should we try to restart the job. If no value is set, this means forever. 18 | ActiveDeadlineSeconds int32 `json:"activeDeadlineSeconds,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_ucr.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobRunUcr struct { 14 | Image MetronomeV1JobRunUcrImage `json:"image"` 15 | // Run this docker image in privileged mode 16 | Privileged bool `json:"privileged,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_ucr_image.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobRunUcrImage struct { 14 | // The repository image name. 15 | Id string `json:"id"` 16 | // The type of image 17 | Kind string `json:"kind,omitempty"` 18 | // The containerizer will pull the image from the registry, even if the image is already downloaded on the agent. 19 | ForcePull bool `json:"forcePull,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_run_volumes.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | // A volume definition for this job. 14 | type MetronomeV1JobRunVolumes struct { 15 | // The path of the volume in the container 16 | ContainerPath string `json:"containerPath"` 17 | // The path of the volume on the host 18 | HostPath string `json:"hostPath,omitempty"` 19 | // Possible values are RO for ReadOnly and RW for Read/Write 20 | Mode string `json:"mode,omitempty"` 21 | // References the secret that is used by this volume 22 | Secret string `json:"secret,omitempty"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_metronome_v1_job_schedule.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type MetronomeV1JobSchedule struct { 14 | Id string `json:"id,omitempty"` 15 | Cron string `json:"cron,omitempty"` 16 | ConcurrencyPolicy string `json:"concurrencyPolicy,omitempty"` 17 | Enabled bool `json:"enabled,omitempty"` 18 | StartingDeadlineSeconds int32 `json:"startingDeadlineSeconds,omitempty"` 19 | Timezone string `json:"timezone,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_networking_v1_node.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | import ( 14 | "time" 15 | ) 16 | 17 | type NetworkingV1Node struct { 18 | Updated time.Time `json:"updated,omitempty"` 19 | PrivateIp string `json:"private_ip,omitempty"` 20 | PublicIps []string `json:"public_ips,omitempty"` 21 | Hostname string `json:"hostname,omitempty"` 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/model_secrets_v1_secret.go: -------------------------------------------------------------------------------- 1 | /* 2 | * DC/OS 3 | * 4 | * DC/OS API 5 | * 6 | * API version: 1.0.0 7 | */ 8 | 9 | // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 | 11 | package dcos 12 | 13 | type SecretsV1Secret struct { 14 | Value string `json:"value,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/dcos/client-go/dcos/version.go: -------------------------------------------------------------------------------- 1 | package dcos 2 | 3 | // Version represents the client library version 4 | const Version = "0.0.1" 5 | 6 | // ClientName represents the libraries name 7 | const ClientName = "dcos-client-go" 8 | -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | bin 3 | 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | script: 4 | - go vet ./... 5 | - go test -v ./... 6 | 7 | go: 8 | - 1.3 9 | - 1.4 10 | - 1.5 11 | - 1.6 12 | - 1.7 13 | - tip 14 | -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/doc.go: -------------------------------------------------------------------------------- 1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html 2 | // 3 | // See README.md for more info. 4 | package jwt 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-version 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/version_collection.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // Collection is a type that implements the sort.Interface interface 4 | // so that versions can be sorted. 5 | type Collection []*Version 6 | 7 | func (v Collection) Len() int { 8 | return len(v) 9 | } 10 | 11 | func (v Collection) Less(i, j int) bool { 12 | return v[i].LessThan(v[j]) 13 | } 14 | 15 | func (v Collection) Swap(i, j int) { 16 | v[i], v[j] = v[j], v[i] 17 | } 18 | -------------------------------------------------------------------------------- /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/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/konsorten/go-windows-terminal-sequences/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/konsorten/go-windows-terminal-sequences 2 | -------------------------------------------------------------------------------- /vendor/github.com/konsorten/go-windows-terminal-sequences/sequences_dummy.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin 2 | 3 | package sequences 4 | 5 | import ( 6 | "fmt" 7 | ) 8 | 9 | func EnableVirtualTerminalProcessing(stream uintptr, enable bool) error { 10 | return fmt.Errorf("windows only package") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/go-isatty 2 | 3 | go 1.12 4 | 5 | require golang.org/x/sys v0.0.0-20200116001909-b77594299b42 6 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg= 2 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build appengine js nacl 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on js and appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | // +build plan9 2 | 3 | package isatty 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // IsTerminal returns true if the given file descriptor is a terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | path, err := syscall.Fd2path(int(fd)) 12 | if err != nil { 13 | return false 14 | } 15 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "postUpdateOptions": [ 6 | "gomodTidy" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - go generate 12 | - git diff --cached --exit-code 13 | - ./go.test.sh 14 | 15 | after_success: 16 | - bash <(curl -s https://codecov.io/bash) 17 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/go-runewidth 2 | 3 | go 1.9 4 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package runewidth 4 | 5 | // IsEastAsian return true if the current locale is CJK 6 | func IsEastAsian() bool { 7 | return false 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | // +build !appengine 3 | 4 | package runewidth 5 | 6 | func IsEastAsian() bool { 7 | // TODO: Implement this for the web. Detect east asian in a compatible way, and return true. 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build !appengine 3 | 4 | package runewidth 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | var ( 11 | kernel32 = syscall.NewLazyDLL("kernel32") 12 | procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP") 13 | ) 14 | 15 | // IsEastAsian return true if the current locale is CJK 16 | func IsEastAsian() bool { 17 | r1, _, _ := procGetConsoleOutputCP.Call() 18 | if r1 == 0 { 19 | return false 20 | } 21 | 22 | switch int(r1) { 23 | case 932, 51932, 936, 949, 950: 24 | return true 25 | } 26 | 27 | return false 28 | } 29 | -------------------------------------------------------------------------------- /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/mitchellh/go-homedir/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/go-homedir 2 | -------------------------------------------------------------------------------- /vendor/github.com/olekukonko/tablewriter/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Go template 3 | # Binaries for programs and plugins 4 | *.exe 5 | *.exe~ 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/olekukonko/tablewriter/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.1 5 | - 1.2 6 | - 1.3 7 | - 1.4 8 | - 1.5 9 | - 1.6 10 | - 1.7 11 | - 1.8 12 | - 1.9 13 | - "1.10" 14 | - tip 15 | -------------------------------------------------------------------------------- /vendor/github.com/olekukonko/tablewriter/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/olekukonko/tablewriter 2 | 3 | go 1.12 4 | 5 | require github.com/mattn/go-runewidth v0.0.7 6 | -------------------------------------------------------------------------------- /vendor/github.com/olekukonko/tablewriter/go.sum: -------------------------------------------------------------------------------- 1 | github.com/mattn/go-runewidth v0.0.7 h1:Ei8KR0497xHyKJPAv59M1dkC+rOZCMBJ+t3fZ+twI54= 2 | github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= 3 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/.dockerignore: -------------------------------------------------------------------------------- 1 | cmd/tomll/tomll 2 | cmd/tomljson/tomljson 3 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/.gitignore: -------------------------------------------------------------------------------- 1 | test_program/test_program_bin 2 | fuzz/ 3 | cmd/tomll/tomll 4 | cmd/tomljson/tomljson 5 | cmd/tomltestgen/tomltestgen 6 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.12-alpine3.9 as builder 2 | WORKDIR /go/src/github.com/pelletier/go-toml 3 | COPY . . 4 | ENV CGO_ENABLED=0 5 | ENV GOOS=linux 6 | RUN go install ./... 7 | 8 | FROM scratch 9 | COPY --from=builder /go/bin/tomll /usr/bin/tomll 10 | COPY --from=builder /go/bin/tomljson /usr/bin/tomljson 11 | COPY --from=builder /go/bin/jsontoml /usr/bin/jsontoml 12 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/Makefile: -------------------------------------------------------------------------------- 1 | export CGO_ENABLED=0 2 | go := go 3 | go.goos ?= $(shell echo `go version`|cut -f4 -d ' '|cut -d '/' -f1) 4 | go.goarch ?= $(shell echo `go version`|cut -f4 -d ' '|cut -d '/' -f2) 5 | 6 | out.tools := tomll tomljson jsontoml 7 | out.dist := $(out.tools:=_$(go.goos)_$(go.goarch).tar.xz) 8 | sources := $(wildcard **/*.go) 9 | 10 | 11 | .PHONY: 12 | tools: $(out.tools) 13 | 14 | $(out.tools): $(sources) 15 | GOOS=$(go.goos) GOARCH=$(go.goarch) $(go) build ./cmd/$@ 16 | 17 | .PHONY: 18 | dist: $(out.dist) 19 | 20 | $(out.dist):%_$(go.goos)_$(go.goarch).tar.xz: % 21 | if [ "$(go.goos)" = "windows" ]; then \ 22 | tar -cJf $@ $^.exe; \ 23 | else \ 24 | tar -cJf $@ $^; \ 25 | fi 26 | 27 | .PHONY: 28 | clean: 29 | rm -rf $(out.tools) $(out.dist) 30 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | **Issue:** add link to pelletier/go-toml issue here 2 | 3 | Explanation of what this pull request does. 4 | 5 | More detailed description of the decisions being made and the reasons why (if the patch is non-trivial). 6 | -------------------------------------------------------------------------------- /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 | score = 4e-08 # to make sure leading zeroes in exponent parts of floats are supported -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package toml 4 | 5 | func Fuzz(data []byte) int { 6 | tree, err := LoadBytes(data) 7 | if err != nil { 8 | if tree != nil { 9 | panic("tree must be nil if there is an error") 10 | } 11 | return 0 12 | } 13 | 14 | str, err := tree.ToTomlString() 15 | if err != nil { 16 | if str != "" { 17 | panic(`str must be "" if there is an error`) 18 | } 19 | panic(err) 20 | } 21 | 22 | tree, err = Load(str) 23 | if err != nil { 24 | if tree != nil { 25 | panic("tree must be nil if there is an error") 26 | } 27 | return 0 28 | } 29 | 30 | return 1 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/fuzz.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -eu 3 | 4 | go get github.com/dvyukov/go-fuzz/go-fuzz 5 | go get github.com/dvyukov/go-fuzz/go-fuzz-build 6 | 7 | if [ ! -e toml-fuzz.zip ]; then 8 | go-fuzz-build github.com/pelletier/go-toml 9 | fi 10 | 11 | rm -fr fuzz 12 | mkdir -p fuzz/corpus 13 | cp *.toml fuzz/corpus 14 | 15 | go-fuzz -bin=toml-fuzz.zip -workdir=fuzz 16 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/pelletier/go-toml 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/BurntSushi/toml v0.3.1 7 | github.com/davecgh/go-spew v1.1.1 8 | gopkg.in/yaml.v2 v2.3.0 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/marshal_OrderPreserve_test.toml: -------------------------------------------------------------------------------- 1 | title = "TOML Marshal Testing" 2 | 3 | [basic_lists] 4 | floats = [12.3,45.6,78.9] 5 | bools = [true,false,true] 6 | dates = [1979-05-27T07:32:00Z,1980-05-27T07:32:00Z] 7 | ints = [8001,8001,8002] 8 | uints = [5002,5003] 9 | strings = ["One","Two","Three"] 10 | 11 | [[subdocptrs]] 12 | name = "Second" 13 | 14 | [basic_map] 15 | one = "one" 16 | two = "two" 17 | 18 | [subdoc] 19 | 20 | [subdoc.second] 21 | name = "Second" 22 | 23 | [subdoc.first] 24 | name = "First" 25 | 26 | [basic] 27 | uint = 5001 28 | bool = true 29 | float = 123.4 30 | float64 = 123.456782132399 31 | int = 5000 32 | string = "Bite me" 33 | date = 1979-05-27T07:32:00Z 34 | 35 | [[subdoclist]] 36 | name = "List.First" 37 | 38 | [[subdoclist]] 39 | name = "List.Second" 40 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/marshal_test.toml: -------------------------------------------------------------------------------- 1 | title = "TOML Marshal Testing" 2 | 3 | [basic] 4 | bool = true 5 | date = 1979-05-27T07:32:00Z 6 | float = 123.4 7 | float64 = 123.456782132399 8 | int = 5000 9 | string = "Bite me" 10 | uint = 5001 11 | 12 | [basic_lists] 13 | bools = [true,false,true] 14 | dates = [1979-05-27T07:32:00Z,1980-05-27T07:32:00Z] 15 | floats = [12.3,45.6,78.9] 16 | ints = [8001,8001,8002] 17 | strings = ["One","Two","Three"] 18 | uints = [5002,5003] 19 | 20 | [basic_map] 21 | one = "one" 22 | two = "two" 23 | 24 | [subdoc] 25 | 26 | [subdoc.first] 27 | name = "First" 28 | 29 | [subdoc.second] 30 | name = "Second" 31 | 32 | [[subdoclist]] 33 | name = "List.First" 34 | 35 | [[subdoclist]] 36 | name = "List.Second" 37 | 38 | [[subdocptrs]] 39 | name = "Second" 40 | -------------------------------------------------------------------------------- /vendor/github.com/rs/cors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.10" 4 | - "1.11" 5 | - "1.12" 6 | - tip 7 | matrix: 8 | allow_failures: 9 | - go: tip 10 | -------------------------------------------------------------------------------- /vendor/github.com/rs/cors/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/rs/cors 2 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: [1.13.x, 1.14.x] 8 | os: [linux, osx] 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - ./travis/cross_build.sh 13 | - ./travis/lint.sh 14 | - export GOMAXPROCS=4 15 | - export GORACE=halt_on_error=1 16 | - go test -race -v ./... 17 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi 18 | -------------------------------------------------------------------------------- /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/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/sirupsen/logrus 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/konsorten/go-windows-terminal-sequences v1.0.3 6 | github.com/pmezard/go-difflib v1.0.0 // indirect 7 | github.com/stretchr/testify v1.2.2 8 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894 9 | ) 10 | 11 | go 1.13 12 | -------------------------------------------------------------------------------- /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_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_windows.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,windows 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | "syscall" 9 | 10 | sequences "github.com/konsorten/go-windows-terminal-sequences" 11 | ) 12 | 13 | func initTerminal(w io.Writer) { 14 | switch v := w.(type) { 15 | case *os.File: 16 | sequences.EnableVirtualTerminalProcessing(syscall.Handle(v.Fd()), true) 17 | } 18 | } 19 | 20 | func checkIfTerminal(w io.Writer) bool { 21 | var ret bool 22 | switch v := w.(type) { 23 | case *os.File: 24 | var mode uint32 25 | err := syscall.GetConsoleMode(syscall.Handle(v.Fd()), &mode) 26 | ret = (err == nil) 27 | default: 28 | ret = false 29 | } 30 | if ret { 31 | initTerminal(w) 32 | } 33 | return ret 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/.gitignore: -------------------------------------------------------------------------------- 1 | sftpfs/file1 2 | sftpfs/test/ 3 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - "1.13" 6 | - "1.14" 7 | - tip 8 | 9 | os: 10 | - linux 11 | - osx 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | fast_finish: true 17 | 18 | script: 19 | - go build -v ./... 20 | - go test -count=1 -cover -race -v ./... 21 | - go vet ./... 22 | - FILES=$(gofmt -s -l . zipfs sftpfs mem); if [[ -n "${FILES}" ]]; then echo "You have go format errors; gofmt your changes"; exit 1; fi 23 | -------------------------------------------------------------------------------- /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 -v github.com/spf13/afero/... 14 | test_script: 15 | - cmd: go test -count=1 -cover -race -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 aix 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/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/afero 2 | 3 | require ( 4 | github.com/pkg/sftp v1.10.1 5 | golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586 6 | golang.org/x/text v0.3.3 7 | ) 8 | 9 | go 1.13 10 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | 25 | *.bench 26 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | env: 3 | - GO111MODULE=on 4 | sudo: required 5 | go: 6 | - "1.11.x" 7 | - "1.12.x" 8 | - tip 9 | os: 10 | - linux 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | fast_finish: true 15 | script: 16 | - make check 17 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/cast 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/pmezard/go-difflib v1.0.0 // indirect 6 | github.com/stretchr/testify v1.2.2 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 4 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 5 | github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= 6 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 7 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | # Vim files https://github.com/github/gitignore/blob/master/Global/Vim.gitignore 23 | # swap 24 | [._]*.s[a-w][a-z] 25 | [._]s[a-w][a-z] 26 | # session 27 | Session.vim 28 | # temporary 29 | .netrwhist 30 | *~ 31 | # auto-generated tag files 32 | tags 33 | 34 | *.exe 35 | cobra.test 36 | bin 37 | 38 | .idea/ 39 | *.iml 40 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.mailmap: -------------------------------------------------------------------------------- 1 | Steve Francia 2 | Bjørn Erik Pedersen 3 | Fabiano Franz 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | stages: 4 | - diff 5 | - test 6 | - build 7 | 8 | go: 9 | - 1.12.x 10 | - 1.13.x 11 | - tip 12 | 13 | before_install: 14 | - go get -u github.com/kyoh86/richgo 15 | - go get -u github.com/mitchellh/gox 16 | 17 | matrix: 18 | allow_failures: 19 | - go: tip 20 | include: 21 | - stage: diff 22 | go: 1.13.x 23 | script: make fmt 24 | - stage: build 25 | go: 1.13.x 26 | script: make cobra_generator 27 | 28 | script: 29 | - make test 30 | -------------------------------------------------------------------------------- /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 | "fmt" 7 | "os" 8 | "time" 9 | 10 | "github.com/inconshreveable/mousetrap" 11 | ) 12 | 13 | var preExecHookFn = preExecHook 14 | 15 | func preExecHook(c *Command) { 16 | if MousetrapHelpText != "" && mousetrap.StartedByExplorer() { 17 | c.Print(MousetrapHelpText) 18 | if MousetrapDisplayDuration > 0 { 19 | time.Sleep(MousetrapDisplayDuration) 20 | } else { 21 | c.Println("Press return to continue...") 22 | fmt.Scanln() 23 | } 24 | os.Exit(1) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/fish_completions.md: -------------------------------------------------------------------------------- 1 | ## Generating Fish Completions for your own cobra.Command 2 | 3 | Cobra supports native Fish completions generated from the root `cobra.Command`. You can use the `command.GenFishCompletion()` or `command.GenFishCompletionFile()` functions. You must provide these functions with a parameter indicating if the completions should be annotated with a description; Cobra will provide the description automatically based on usage information. You can choose to make this option configurable by your users. 4 | 5 | ### Limitations 6 | 7 | * Custom completions implemented using the `ValidArgsFunction` and `RegisterFlagCompletionFunc()` are supported automatically but the ones implemented in Bash scripting are not. 8 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/cobra 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/cpuguy83/go-md2man/v2 v2.0.0 7 | github.com/inconshreveable/mousetrap v1.0.0 8 | github.com/mitchellh/go-homedir v1.1.0 9 | github.com/spf13/pflag v1.0.3 10 | github.com/spf13/viper v1.4.0 11 | gopkg.in/yaml.v2 v2.2.2 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | 15 | install: 16 | - go get golang.org/x/lint/golint 17 | - export PATH=$GOPATH/bin:$PATH 18 | - go install ./... 19 | 20 | script: 21 | - verify/all.sh -v 22 | - go test ./... 23 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/pflag 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/vendor/github.com/spf13/pflag/go.sum -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } 5 | t.FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/vbauerster/mpb/.gitignore: -------------------------------------------------------------------------------- 1 | # Test binary, build with `go test -c` 2 | *.test 3 | 4 | # Output of the go coverage tool, specifically when used with LiteIDE 5 | *.out 6 | -------------------------------------------------------------------------------- /vendor/github.com/vbauerster/mpb/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.10.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - go test -race -coverprofile=coverage.txt -covermode=atomic 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/vbauerster/mpb/cwriter/writer_posix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package cwriter 4 | 5 | import ( 6 | "io" 7 | "strings" 8 | ) 9 | 10 | func (w *Writer) clearLines() error { 11 | _, err := io.WriteString(w.out, strings.Repeat(clearCursorAndLine, w.lineCount)) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/vbauerster/mpb/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016-2018 Vladimir Bauer 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 mpb is a library for rendering progress bars in terminal applications. 6 | package mpb 7 | -------------------------------------------------------------------------------- /vendor/github.com/vbauerster/mpb/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/vbauerster/mpb/internal/percentage.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import "math" 4 | 5 | // Percentage is a helper function, to calculate percentage. 6 | func Percentage(total, current, width int64) int64 { 7 | if total <= 0 { 8 | return 0 9 | } 10 | p := float64(width*current) / float64(total) 11 | return int64(math.Round(p)) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/vbauerster/mpb/proxyreader.go: -------------------------------------------------------------------------------- 1 | package mpb 2 | 3 | import ( 4 | "io" 5 | "time" 6 | ) 7 | 8 | // proxyReader is io.Reader wrapper, for proxy read bytes 9 | type proxyReader struct { 10 | io.ReadCloser 11 | bar *Bar 12 | iT time.Time 13 | } 14 | 15 | func (pr *proxyReader) Read(p []byte) (n int, err error) { 16 | n, err = pr.ReadCloser.Read(p) 17 | if n > 0 { 18 | pr.bar.IncrBy(n, time.Since(pr.iT)) 19 | pr.iT = time.Now() 20 | } 21 | return 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_aix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TCGETS 12 | const ioctlWriteTermios = unix.TCSETS 13 | -------------------------------------------------------------------------------- /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/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/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-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_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_freebsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM64, 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_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_netbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM64, 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 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 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_openbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for arm64, 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_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/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/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 riscv64 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 aix 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 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep 6 | // them here for backwards compatibility. 7 | 8 | package unix 9 | 10 | const ( 11 | DLT_HHDLC = 0x79 12 | IPV6_MIN_MEMBERSHIPS = 0x1f 13 | IP_MAX_SOURCE_FILTER = 0x400 14 | IP_MIN_MEMBERSHIPS = 0x1f 15 | RT_CACHING_CONTEXT = 0x1 16 | RT_NORTREF = 0x2 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/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/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,race linux,race freebsd,race 6 | 7 | package unix 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/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // ReadDirent reads directory entries from fd and writes them into buf. 12 | func ReadDirent(fd int, buf []byte) (n int, err error) { 13 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 14 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 15 | // actual system call is getdirentries64, 64 is a good guess. 16 | // TODO(rsc): Can we use a single global basep for all calls? 17 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 18 | return Getdirentries(fd, buf, base) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/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 aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + uitoa(uint(-val)) 12 | } 13 | return uitoa(uint(val)) 14 | } 15 | 16 | func uitoa(val uint) string { 17 | var buf [32]byte // big enough for int64 18 | i := len(buf) - 1 19 | for val >= 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_darwin_386.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,386,!go1.12 6 | 7 | package unix 8 | 9 | //sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,amd64,!go1.12 6 | 7 | package unix 8 | 9 | //sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,arm,!go1.12 6 | 7 | package unix 8 | 9 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 10 | return 0, ENOSYS 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,arm64,!go1.12 6 | 7 | package unix 8 | 9 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 10 | return 0, ENOSYS 11 | } 12 | -------------------------------------------------------------------------------- /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_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo,386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gccgo,arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /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 (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /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,!ppc64le,!ppc64 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/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go 386 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go amd64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.12 6 | 7 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 8 | // and earlier (see https://golang.org/issue/23311). 9 | -------------------------------------------------------------------------------- /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 | // +build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 10 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/windows/types_windows_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/gopkg.in/square/go-jose.v2/.gitcookies.sh.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dcos/dcos-cli/5c1264aff6a662c86cd19e21ccd2325ef1d00ca2/vendor/gopkg.in/square/go-jose.v2/.gitcookies.sh.enc -------------------------------------------------------------------------------- /vendor/gopkg.in/square/go-jose.v2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .*.swp 3 | *.out 4 | *.test 5 | *.pem 6 | *.cov 7 | jose-util/jose-util 8 | jose-util.t.err -------------------------------------------------------------------------------- /vendor/gopkg.in/square/go-jose.v2/BUG-BOUNTY.md: -------------------------------------------------------------------------------- 1 | Serious about security 2 | ====================== 3 | 4 | Square recognizes the important contributions the security research community 5 | can make. We therefore encourage reporting security issues with the code 6 | contained in this repository. 7 | 8 | If you believe you have discovered a security vulnerability, please follow the 9 | guidelines at . 10 | 11 | -------------------------------------------------------------------------------- /vendor/gopkg.in/square/go-jose.v2/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | If you would like to contribute code to go-jose you can do so through GitHub by 4 | forking the repository and sending a pull request. 5 | 6 | When submitting code, please make every effort to follow existing conventions 7 | and style in order to keep the code as readable as possible. Please also make 8 | sure all tests pass by running `go test`, and format your code with `go fmt`. 9 | We also recommend using `golint` and `errcheck`. 10 | 11 | Before your code can be accepted into the project you must also sign the 12 | [Individual Contributor License Agreement][1]. 13 | 14 | [1]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1 15 | -------------------------------------------------------------------------------- /vendor/gopkg.in/square/go-jose.v2/json/README.md: -------------------------------------------------------------------------------- 1 | # Safe JSON 2 | 3 | This repository contains a fork of the `encoding/json` package from Go 1.6. 4 | 5 | The following changes were made: 6 | 7 | * Object deserialization uses case-sensitive member name matching instead of 8 | [case-insensitive matching](https://www.ietf.org/mail-archive/web/json/current/msg03763.html). 9 | This is to avoid differences in the interpretation of JOSE messages between 10 | go-jose and libraries written in other languages. 11 | * When deserializing a JSON object, we check for duplicate keys and reject the 12 | input whenever we detect a duplicate. Rather than trying to work with malformed 13 | data, we prefer to reject it right away. 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/square/go-jose.v2/jwt/doc.go: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright 2017 Square Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /* 18 | 19 | Package jwt provides an implementation of the JSON Web Token standard. 20 | 21 | */ 22 | package jwt 23 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "tip" 15 | 16 | go_import_path: gopkg.in/yaml.v3 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/go.mod: -------------------------------------------------------------------------------- 1 | module "gopkg.in/yaml.v3" 2 | 3 | require ( 4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 5 | ) 6 | --------------------------------------------------------------------------------