Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 126 for mkdtemp (0.11 sec)

  1. src/io/ioutil/tempfile.go

    // will not choose the same directory. It is the caller's responsibility
    // to remove the directory when no longer needed.
    //
    // Deprecated: As of Go 1.17, this function simply calls [os.MkdirTemp].
    func TempDir(dir, pattern string) (name string, err error) {
    	return os.MkdirTemp(dir, pattern)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. cluster/images/etcd-version-monitor/Makefile

    ARCH:=amd64
    GOLANG_VERSION?=1.19.9
    REGISTRY?=staging-k8s.gcr.io
    TAG?=0.1.3
    IMAGE:=$(REGISTRY)/etcd-version-monitor:$(TAG)
    CURRENT_DIR:=$(pwd)
    TEMP_DIR:=$(shell mktemp -d)
    
    build:
    	# Copy the necessary files for building the image to TEMP_DIR.
    	cp etcd-version-monitor.go Dockerfile $(TEMP_DIR)
    
    	# Compile etcd-version-monitor.
    	docker run --rm -it \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 11 07:06:46 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. hack/verify-openapi-docs-urls.sh

    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    SPECROOT="${KUBE_ROOT}/api/openapi-spec"
    SPECV3PATH="${SPECROOT}/v3"
    
    _tmpdir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
    mkdir -p "${_tmpdir}"
    trap 'rm -rf ${_tmpdir}' EXIT SIGINT
    trap "echo Aborted; exit;" SIGINT SIGTERM
    
    TMP_URLS="${_tmpdir}/docs_urls.txt"
    touch "${TMP_URLS}"
    
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 05:44:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. hack/serve-prom-scrapes.sh

    if (( $# != 2 )); then
        echo "Usage: $0 port_num scrapes_dir" >&2
        exit 1
    fi
    
    port_num="$1"
    scrapes_dir="$2"
    response_file="/tmp/$(cd /tmp && mktemp  response.XXXXXX)"
    
    cleanup_serve() {
        rm -rf "$response_file"
    }
    
    trap cleanup_serve EXIT
    
    chmod +r "$response_file"
    
    transform() {
        path="$1"
        base="$(basename "$path")"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 04 06:33:06 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. bin/retry.sh

    function fail {
      echo "${1}" >&2
      exit 1
    }
    
    function isatty() {
     if [ -t 1 ] ; then
       return 0
      else
       return 1
      fi
    }
    
    function retry {
      local tmpFile
      tmpFile=$(mktemp)
      trap 'rm -f "${tmpFile}"' EXIT
    
      local failureRegex="$1"
      shift
      local n=1
      local max=5
      while true; do
        unset SHELL # Don't let environment control which shell to use
        if isatty; then
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 11 16:08:08 UTC 2021
    - 2K bytes
    - Viewed (0)
  6. ci/official/utilities/setup_docker.sh

    # The container is not cleaned up automatically! Remove it with:
    # docker rm tf
    if ! docker container inspect tf >/dev/null 2>&1 ; then
      # Pass all existing TFCI_ variables into the Docker container
      env_file=$(mktemp)
      env | grep ^TFCI_ > "$env_file"
      docker run $TFCI_DOCKER_ARGS --name tf -w "$TFCI_GIT_DIR" -itd --rm \
          -v "$TFCI_GIT_DIR:$TFCI_GIT_DIR" \
          --env-file "$env_file" \
          "$TFCI_DOCKER_IMAGE" \
        bash
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 18:22:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. cluster/addons/addon-manager/Makefile

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    IMAGE=gcr.io/k8s-staging-addon-manager/kube-addon-manager
    ARCH?=amd64
    TEMP_DIR:=$(shell mktemp -d)
    VERSION=v9.1.7
    KUBECTL_VERSION?=v1.27.1
    
    BASEIMAGE=registry.k8s.io/debian-base-$(ARCH):v1.0.1
    
    SUDO=$(if $(filter 0,$(shell id -u)),,sudo)
    
    .PHONY: build push
    
    all: build
    
    build:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 15 01:39:45 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. pkg/util/filesystem/defaultfs.go

    }
    
    // ReadFile via os.ReadFile
    func (fs *DefaultFs) ReadFile(filename string) ([]byte, error) {
    	return os.ReadFile(fs.prefix(filename))
    }
    
    // TempDir via os.MkdirTemp
    func (fs *DefaultFs) TempDir(dir, prefix string) (string, error) {
    	return os.MkdirTemp(fs.prefix(dir), prefix)
    }
    
    // TempFile via os.CreateTemp
    func (fs *DefaultFs) TempFile(dir, prefix string) (File, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/cache/cache_test.go

    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    )
    
    func init() {
    	verify = false // even if GODEBUG is set
    }
    
    func TestBasic(t *testing.T) {
    	dir, err := os.MkdirTemp("", "cachetest-")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(dir)
    	_, err = Open(filepath.Join(dir, "notexist"))
    	if err == nil {
    		t.Fatal(`Open("tmp/notexist") succeeded, want failure`)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:49:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/devel.usertools/repack_libtensorflow.sh

    #
    # Arguments:
    #   src_jar - path to the original srcjar
    #   dest_jar - path to the destination
    # Returns:
    #   None
    function cp_normalized_srcjar() {
      src_jar="$1"
      dest_jar="$2"
      tmp_dir=$(mktemp -d)
      cp "${src_jar}" "${tmp_dir}/orig.jar"
      pushd "${tmp_dir}"
      # Extract any src/ files
      jar -xf "${tmp_dir}/orig.jar" src/
      # Extract any org/ files under src/main/java
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top