Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Lockable (0.12 sec)

  1. pkg/volume/util/io_util.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"io/ioutil"
    	"os"
    	"path/filepath"
    )
    
    // IoUtil is a mockable util for common IO operations
    type IoUtil interface {
    	ReadFile(filename string) ([]byte, error)
    	ReadDir(dirname string) ([]os.FileInfo, error)
    	Lstat(name string) (os.FileInfo, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    	return pw.result
    }
    
    // StopChan returns stop channel
    func (pw *ProxyWatcher) StopChan() <-chan struct{} {
    	return pw.stopCh
    }
    
    // MockWatcher implements watch.Interface with mockable functions.
    type MockWatcher struct {
    	StopFunc       func()
    	ResultChanFunc func() <-chan Event
    }
    
    var _ Interface = &MockWatcher{}
    
    // Stop calls StopFunc
    func (mw MockWatcher) Stop() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
Back to top