Merge pull request #83 from cf-guardian/create
Use conventional factory terminology
This commit is contained in:
commit
52e70ecc5e
|
@ -1,7 +1,7 @@
|
|||
package libcontainer
|
||||
|
||||
type Factory interface {
|
||||
// Initializes a new container in the given path. A unique ID is generated for the container and
|
||||
// Creates a new container in the given path. A unique ID is generated for the container and
|
||||
// starts the initial process inside the container.
|
||||
//
|
||||
// Returns the new container with a running process.
|
||||
|
@ -12,7 +12,7 @@ type Factory interface {
|
|||
// System error
|
||||
//
|
||||
// On error, any partially created container parts are cleaned up (the operation is atomic).
|
||||
Initialize(path string, config *Config) (Container, error)
|
||||
Create(path string, config *Config) (Container, error)
|
||||
|
||||
// Load takes the path for an existing container and reconstructs the container
|
||||
// from the state.
|
||||
|
|
Loading…
Reference in New Issue