etcd-3.2.17/000077500000000000000000000000001325032737300125305ustar00rootroot00000000000000etcd-3.2.17/.dockerignore000066400000000000000000000000051325032737300151770ustar00rootroot00000000000000.git etcd-3.2.17/.github/000077500000000000000000000000001325032737300140705ustar00rootroot00000000000000etcd-3.2.17/.github/ISSUE_TEMPLATE.md000066400000000000000000000004661325032737300166030ustar00rootroot00000000000000# Bug reporting A good bug report has some very specific qualities, so please read over our short document on [reporting bugs][report_bugs] before submitting a bug report. To ask a question, go ahead and ignore this. [report_bugs]: https://github.com/coreos/etcd/blob/master/Documentation/reporting_bugs.md etcd-3.2.17/.github/PULL_REQUEST_TEMPLATE.md000066400000000000000000000003211325032737300176650ustar00rootroot00000000000000# Contributing guidelines Please read our [contribution workflow][contributing] before submitting a pull request. [contributing]: https://github.com/coreos/etcd/blob/master/CONTRIBUTING.md#contribution-flow etcd-3.2.17/.gitignore000066400000000000000000000004741325032737300145250ustar00rootroot00000000000000/agent-* /coverage /covdir /gopath /gopath.proto /go-bindata /release /machine* /bin .Dockerfile-test .vagrant *.etcd *.log /etcd *.swp /hack/insta-discovery/.env *.test tools/functional-tester/docker/bin hack/scripts-dev/docker-dns/.Dockerfile hack/scripts-dev/docker-dns-srv/.Dockerfile hack/tls-setup/certs .idea etcd-3.2.17/.godir000066400000000000000000000000271325032737300136340ustar00rootroot00000000000000github.com/coreos/etcd etcd-3.2.17/.header000066400000000000000000000011211325032737300137540ustar00rootroot00000000000000// Copyright 2016 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. etcd-3.2.17/.semaphore.sh000077500000000000000000000010351325032737300151270ustar00rootroot00000000000000#!/usr/bin/env bash TEST_SUFFIX=$(date +%s | base64 | head -c 15) TEST_OPTS="PASSES='build unit release integration_e2e functional' MANUAL_VER=v3.2.16" if [ "$TEST_ARCH" == "386" ]; then TEST_OPTS="GOARCH=386 PASSES='build unit integration_e2e'" fi docker run \ --rm \ --volume=`pwd`:/go/src/github.com/coreos/etcd \ gcr.io/etcd-development/etcd-test:go1.8.7 \ /bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log" ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log etcd-3.2.17/.travis.yml000066400000000000000000000043651325032737300146510ustar00rootroot00000000000000language: go go_import_path: github.com/coreos/etcd sudo: required services: docker go: - "1.8.7" - tip notifications: on_success: never on_failure: never env: matrix: - TARGET=amd64 - TARGET=amd64-go-tip - TARGET=darwin-amd64 - TARGET=windows-amd64 - TARGET=arm64 - TARGET=arm - TARGET=386 - TARGET=ppc64le matrix: fast_finish: true allow_failures: - go: tip env: TARGET=amd64-go-tip exclude: - go: "1.8.7" env: TARGET=amd64-go-tip - go: tip env: TARGET=amd64 - go: tip env: TARGET=darwin-amd64 - go: tip env: TARGET=windows-amd64 - go: tip env: TARGET=arm - go: tip env: TARGET=arm64 - go: tip env: TARGET=386 - go: tip env: TARGET=ppc64le before_install: - if [[ $TRAVIS_GO_VERSION == 1.* ]]; then docker pull gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION}; fi install: - pushd cmd/etcd && go get -t -v ./... && popd script: - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}" - > case "${TARGET}" in amd64) docker run --rm \ --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \ /bin/bash -c "GOARCH=amd64 ./test" ;; amd64-go-tip) GOARCH=amd64 ./test ;; darwin-amd64) docker run --rm \ --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \ /bin/bash -c "GO_BUILD_FLAGS='-a -v' GOOS=darwin GOARCH=amd64 ./build" ;; windows-amd64) docker run --rm \ --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \ /bin/bash -c "GO_BUILD_FLAGS='-a -v' GOOS=windows GOARCH=amd64 ./build" ;; 386) docker run --rm \ --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \ /bin/bash -c "GOARCH=386 PASSES='build unit' ./test" ;; *) # test building out of gopath docker run --rm \ --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \ /bin/bash -c "GO_BUILD_FLAGS='-a -v' GOARCH='${TARGET}' ./build" ;; esac etcd-3.2.17/CONTRIBUTING.md000066400000000000000000000047241325032737300147700ustar00rootroot00000000000000# How to contribute etcd is Apache 2.0 licensed and accepts contributions via GitHub pull requests. This document outlines some of the conventions on commit message formatting, contact points for developers, and other resources to help get contributions into etcd. # Email and chat - Email: [etcd-dev](https://groups.google.com/forum/?hl=en#!forum/etcd-dev) - IRC: #[coreos](irc://irc.freenode.org:6667/#coreos) IRC channel on freenode.org ## Getting started - Fork the repository on GitHub - Read the README.md for build instructions ## Reporting bugs and creating issues Reporting bugs is one of the best ways to contribute. However, a good bug report has some very specific qualities, so please read over our short document on [reporting bugs](https://github.com/coreos/etcd/blob/master/Documentation/reporting_bugs.md) before submitting a bug report. This document might contain links to known issues, another good reason to take a look there before reporting a bug. ## Contribution flow This is a rough outline of what a contributor's workflow looks like: - Create a topic branch from where to base the contribution. This is usually master. - Make commits of logical units. - Make sure commit messages are in the proper format (see below). - Push changes in a topic branch to a personal fork of the repository. - Submit a pull request to coreos/etcd. - The PR must receive a LGTM from two maintainers found in the MAINTAINERS file. Thanks for contributing! ### Code style The coding style suggested by the Golang community is used in etcd. See the [style doc](https://github.com/golang/go/wiki/CodeReviewComments) for details. Please follow this style to make etcd easy to review, maintain and develop. ### Format of the commit message We follow a rough convention for commit messages that is designed to answer two questions: what changed and why. The subject line should feature the what and the body of the commit should describe the why. ``` scripts: add the test-cluster command this uses tmux to setup a test cluster that can easily be killed and started for debugging. Fixes #38 ``` The format can be described more formally as follows: ``` :