当前位置: 首页>>代码示例>>Golang>>正文


Golang graphdriver.Register函数代码示例

本文整理汇总了Golang中github.com/docker/docker/daemon/graphdriver.Register函数的典型用法代码示例。如果您正苦于以下问题:Golang Register函数的具体用法?Golang Register怎么用?Golang Register使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Register函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: init

// init registers the windows graph drivers to the register.
func init() {
	graphdriver.Register("windowsfilter", InitFilter)
	// DOCKER_WINDOWSFILTER_NOREEXEC allows for inline processing which makes
	// debugging issues in the re-exec codepath significantly easier.
	if os.Getenv("DOCKER_WINDOWSFILTER_NOREEXEC") != "" {
		logrus.Warnf("WindowsGraphDriver is set to not re-exec. This is intended for debugging purposes only.")
		noreexec = true
	} else {
		reexec.Register("docker-windows-write-layer", writeLayerReexec)
	}
}
开发者ID:harche,项目名称:docker,代码行数:12,代码来源:windows.go

示例2: initGraph

func initGraph() (*graph.Graph, error) {
	graphdriver.Register("devicemapper", devmapper.Init)
	graphdriver.DefaultDriver = "devicemapper"

	// Load storage driver
	driver, err := graphdriver.New(root, graphOptions)
	if err != nil {
		log.Errorf("Load storage driver error: %v", err)
		return nil, err
	}
	log.Debugf("Using graph driver %s", driver)

	log.Debugf("Creating images graph")
	g, err := graph.NewGraph(path.Join(root, "graph"), driver)
	if err != nil {
		log.Errorf("Creating images graph error: %v", err)
		return nil, err
	}
	return g, nil
}
开发者ID:TencentSA,项目名称:docker-1.3,代码行数:20,代码来源:graph_tool.go

示例3: init

// init registers the windows graph drivers to the register.
func init() {
	graphdriver.Register("windowsfilter", InitFilter)
	graphdriver.Register("windowsdiff", InitDiff)
}
开发者ID:docker,项目名称:v1.10-migrator,代码行数:5,代码来源:windows.go

示例4: init

// init registers the windows graph drivers to the register.
func init() {
	graphdriver.Register("windowsfilter", InitFilter)
	reexec.Register("docker-windows-write-layer", writeLayer)
}
开发者ID:errordeveloper,项目名称:docker,代码行数:5,代码来源:windows.go

示例5: init

func init() {
	graphdriver.Register("zfs", Init)
}
开发者ID:rlugojr,项目名称:docker,代码行数:3,代码来源:zfs.go

示例6: Register

func Register(d *hyperdaemon.Daemon) {
	daemon = d
	graphdriver.Register("vbox", Init)
}
开发者ID:juito,项目名称:hyper,代码行数:4,代码来源:driver.go

示例7: init

func init() {
	graphdriver.Register(driverName, Init)
}
开发者ID:kasisnu,项目名称:docker,代码行数:3,代码来源:overlay.go

示例8: init

func init() {
	dbg("ZFS init") // This debug line shows up in `docker run` output, when the container is launched.

	graphdriver.Register("zfs", Init)
}
开发者ID:ms123s,项目名称:docker-zfs,代码行数:5,代码来源:zfs.go

示例9: init

func init() {
	graphdriver.Register("flynn", newGraphDriver)
}
开发者ID:imjorge,项目名称:flynn,代码行数:3,代码来源:graphdriver.go


注:本文中的github.com/docker/docker/daemon/graphdriver.Register函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。