mirror of https://github.com/docker/docs.git
enable port ranges for authorize/deauthorize
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
b8ef936e90
commit
bc78e0081e
|
|
@ -19,13 +19,13 @@ type Port struct {
|
||||||
// hypervisors, different cloud providers)
|
// hypervisors, different cloud providers)
|
||||||
type Driver interface {
|
type Driver interface {
|
||||||
// AuthorizePort authorizes a port for machine access
|
// AuthorizePort authorizes a port for machine access
|
||||||
AuthorizePort(port Port) error
|
AuthorizePort(ports []Port) error
|
||||||
|
|
||||||
// Create a host using the driver's config
|
// Create a host using the driver's config
|
||||||
Create() error
|
Create() error
|
||||||
|
|
||||||
// DeauthorizePort removes a port for machine access
|
// DeauthorizePort removes a port for machine access
|
||||||
DeauthorizePort(port Port) error
|
DeauthorizePort(ports []Port) error
|
||||||
|
|
||||||
// DriverName returns the name of the driver as it is registered
|
// DriverName returns the name of the driver as it is registered
|
||||||
DriverName() string
|
DriverName() string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue