- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for mkdtemp (0.18 sec)
-
src/os/tempfile.go
// The directory is created with mode 0o700 (before umask). // If dir is the empty string, MkdirTemp uses the default directory for temporary files, as returned by TempDir. // Multiple programs or goroutines calling MkdirTemp simultaneously will not choose the same directory. // It is the caller's responsibility to remove the directory when it is no longer needed. func MkdirTemp(dir, pattern string) (string, error) { if dir == "" { dir = TempDir() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 18:04:39 UTC 2024 - 3.9K bytes - Viewed (0) -
hack/lib/etcd.sh
printf '%s\n' "${@}" | awk -F . '{ printf("%d%03d%03d\n", $1, $2, $3) }' } kube::etcd::start() { # validate before running kube::etcd::validate # Start etcd ETCD_DIR=${ETCD_DIR:-$(mktemp -d 2>/dev/null || mktemp -d -t test-etcd.XXXXXX)} if [[ -d "${ARTIFACTS:-}" ]]; then ETCD_LOGFILE="${ARTIFACTS}/etcd.$(uname -n).$(id -un).log.DEBUG.$(date +%Y%m%d-%H%M%S).$$" else ETCD_LOGFILE=${ETCD_LOGFILE:-"/dev/null"}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 03:36:35 UTC 2024 - 6.8K bytes - Viewed (0) -
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) -
.github/workflows/maven_build_itself.yml
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jun 03 17:58:28 UTC 2024 - 2.8K bytes - Viewed (0) -
samples/bookinfo/platform/kube/cleanup.sh
kubectl delete -n "${NAMESPACE}" "$resource"; done done kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo-versions.yaml" >/dev/null 2>&1 fi OUTPUT=$(mktemp) export OUTPUT echo "Application cleanup may take up to one minute" kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo.yaml" > "${OUTPUT}" 2>&1 ret=$? function cleanup() { rm -f "${OUTPUT}" }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:18 UTC 2024 - 2.5K bytes - Viewed (0) -
prow/release-commit.sh
TAG=$(git rev-parse HEAD) VERSION="${NEXT_VERSION}-alpha.${TAG}" # In CI we want to store the outputs to artifacts, which will preserve the build # If not specified, we can just create a temporary directory WORK_DIR="$(mktemp -d)/build" mkdir -p "${WORK_DIR}" MANIFEST=$(cat <<EOF version: ${VERSION} docker: ${DOCKER_HUB} directory: ${WORK_DIR} ignoreVulnerability: true dependencies: ${DEPENDENCIES:-$(cat <<EOD istio:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 18:57:28 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
if err := clientcmd.WriteToFile(*config, filepath.Join(dir, name)); err != nil { t.Fatalf("couldn't write out certificate") } return cert } func TestFileExists(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir: %v", err) } defer func() { err = os.RemoveAll(tmpdir) if err != nil { t.Fatalf("Fail to remove tmpdir: %v", err) } }()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
manifests/addons/gen.sh
# This script sets up the plain text rendered deployments for addons # See samples/addons/README.md for more information ADDONS="${WD}/../../samples/addons" DASHBOARDS="${WD}/dashboards" mkdir -p "${ADDONS}" TMP=$(mktemp -d) LOKI_VERSION=${LOKI_VERSION:-"6.6.3"} GRAFANA_VERSION=${GRAFANA_VERSION:-"8.0.1"} # Set up kiali { helm3 template kiali-server \ --namespace istio-system \ --version 1.85.0 \
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 20:46:28 UTC 2024 - 3.5K bytes - Viewed (0) -
src/testing/internal/testdeps/deps.go
} func coverTearDown(coverprofile string, gocoverdir string) (string, error) { var err error if gocoverdir == "" { gocoverdir, err = os.MkdirTemp("", "gocoverdir") if err != nil { return "error setting GOCOVERDIR: bad os.MkdirTemp return", err } defer os.RemoveAll(gocoverdir) } CoverMarkProfileEmittedFunc(true) cmode := CoverMode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/test/framework/suitecontext.go
return c.settings } // CreateDirectory creates a new subdirectory within this context. func (c *suiteContext) CreateDirectory(name string) (string, error) { dir, err := os.MkdirTemp(c.workDir, name) if err != nil { scopes.Framework.Errorf("Error creating temp dir: runID='%s', prefix='%s', workDir='%v', err='%v'", c.settings.RunID, name, c.workDir, err) } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 6.5K bytes - Viewed (0)