Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for CleanupAction (0.42 sec)

  1. pkg/volume/util/subpath/subpath.go

    	// hostName when running the container.
    	// cleanupAction - action to run when the container is running or it failed to start.
    	//
    	// CleanupAction must be called immediately after the container with given
    	// subpath starts. On the other hand, Interface.CleanSubPaths must be called
    	// when the pod finishes.
    	PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 27 02:59:53 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractCacheCleanupTest.groovy

            def cacheEntries = [
                temporaryFolder.createFile("1"),
                temporaryFolder.createFile("2"),
                temporaryFolder.createFile("3"),
            ]
    
            when:
            cleanupAction(finder(cacheEntries), { it != cacheEntries[2] })
                .clean(cleanableStore, progressMonitor)
    
            then:
            1 * cleanableStore.getReservedCacheFiles() >> [cacheEntries[0]]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/CompositeCleanupActionTest.groovy

        }
        def progressMonitor = Stub(CleanupProgressMonitor)
    
        def "calls configured cleanup actions for correct dirs"() {
            given:
            def firstCleanupAction = Mock(CleanupAction)
            def secondCleanupAction = Mock(CleanupAction)
            def subDir = temporaryFolder.file("subDir")
    
            when:
            CompositeCleanupAction.builder()
                .add(firstCleanupAction)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/workspace/impl/CacheBasedImmutableWorkspaceProvider.java

    package org.gradle.internal.execution.workspace.impl;
    
    import org.gradle.api.internal.cache.CacheConfigurationsInternal;
    import org.gradle.cache.CacheBuilder;
    import org.gradle.cache.CacheCleanupStrategy;
    import org.gradle.cache.CleanupAction;
    import org.gradle.cache.DefaultCacheCleanupStrategy;
    import org.gradle.cache.FileLockManager;
    import org.gradle.cache.PersistentCache;
    import org.gradle.cache.internal.LeastRecentlyUsedCacheCleanup;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/AbstractCacheCleanup.java

    import org.apache.commons.io.FileUtils;
    import org.gradle.cache.CleanableStore;
    import org.gradle.cache.CleanupAction;
    import org.gradle.cache.CleanupProgressMonitor;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import java.io.File;
    
    public abstract class AbstractCacheCleanup implements CleanupAction {
    
        private static final Logger LOGGER = LoggerFactory.getLogger(AbstractCacheCleanup.class);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/extensibility/unit-test-fixtures/src/main/java/org/gradle/testfixtures/internal/TestInMemoryCacheFactory.java

            private final String displayName;
            private boolean closed;
            private final CleanupAction cleanup;
    
            public InMemoryCache(File cacheDir, String displayName, @Nullable CleanupAction cleanup) {
                this.cacheDir = cacheDir;
                this.displayName = displayName;
                this.cleanup = cleanup;
            }
    
            @Override
            public void close() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/cache/internal/WrapperDistributionCleanupActionIntegrationTest.groovy

        def "reads Gradle version from actual distribution"() {
            given:
            def cleanupAction = new WrapperDistributionCleanupAction(executer.gradleUserHomeDir, Stub(UsedGradleVersions))
    
            when:
            def gradleVersion = cleanupAction.determineGradleVersionFromDistribution(executer.distribution.gradleHomeDir)
    
            then:
            gradleVersion == GradleVersion.current()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/CleanableStore.java

     * limitations under the License.
     */
    
    package org.gradle.cache;
    
    import java.io.File;
    import java.util.Collection;
    
    /**
     * Represents file-based store that can be cleaned by a {@link CleanupAction}.
     */
    public interface CleanableStore {
    
        /**
         * Returns the base directory that should be cleaned for this store.
         */
        File getBaseDir();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. pkg/volume/util/subpath/subpath_unsupported.go

    func NewNSEnter(mounter mount.Interface, ne *nsenter.Nsenter, rootDir string) Interface {
    	return nil
    }
    
    func (sp *subpath) PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error) {
    	return subPath.Path, nil, errUnsupported
    }
    
    func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error {
    	return errUnsupported
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  10. pkg/volume/util/subpath/subpath_windows.go

    func (sp *subpath) PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error) {
    	handles, err := lockAndCheckSubPath(subPath.VolumePath, subPath.Path)
    
    	// Unlock the directories when the container starts
    	cleanupAction = func() {
    		unlockPath(handles)
    	}
    	return subPath.Path, cleanupAction, err
    }
    
    // No bind-mounts for subpaths are necessary on Windows
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top