class Docr::Types::NetworkConfig

Included Modules

Defined in:

docr/types/network_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : String, check_duplicate : Bool | Nil = nil, driver : String = "bridge", internal : Bool | Nil = nil, attachable : Bool | Nil = nil, ingress : Bool | Nil = nil, ipam : Nil | Docr::Types::IPAM = nil, enable_ipv6 : Bool | Nil = nil, options : Nil | Hash(String, String) = nil, labels : Nil | Hash(String, String) = nil) #

[View source]

Instance Method Detail

def attachable : Bool | Nil #

Globally scoped network is manually attachable by regular containers from workers in swarm mode.


[View source]
def attachable=(attachable : Bool | Nil) #

Globally scoped network is manually attachable by regular containers from workers in swarm mode.


[View source]
def check_duplicate : Bool | Nil #

Check for networks with duplicate names.


[View source]
def check_duplicate=(check_duplicate : Bool | Nil) #

Check for networks with duplicate names.


[View source]
def driver : String #

Name of the network driver plugin to use.


[View source]
def driver=(driver : String) #

Name of the network driver plugin to use.


[View source]
def enable_ipv6 : Bool | Nil #

Enable IPv6 on the network.


[View source]
def enable_ipv6=(enable_ipv6 : Bool | Nil) #

Enable IPv6 on the network.


[View source]
def ingress : Bool | Nil #

Ingress network is the network which provides the routing-mesh in swarm mode.


[View source]
def ingress=(ingress : Bool | Nil) #

Ingress network is the network which provides the routing-mesh in swarm mode.


[View source]
def internal : Bool | Nil #

Restrict external access to the network.


[View source]
def internal=(internal : Bool | Nil) #

Restrict external access to the network.


[View source]
def ipam : Docr::Types::IPAM | Nil #

Optional custom IP scheme for the network.


[View source]
def ipam=(ipam : Docr::Types::IPAM | Nil) #

Optional custom IP scheme for the network.


[View source]
def labels : Hash(String, String) | Nil #

User-defined key/value metadata.


[View source]
def labels=(labels : Hash(String, String) | Nil) #

User-defined key/value metadata.


[View source]
def name : String #

The network's name.


[View source]
def name=(name : String) #

The network's name.


[View source]
def options : Hash(String, String) | Nil #

Network specific options to be used by the drivers.


[View source]
def options=(options : Hash(String, String) | Nil) #

Network specific options to be used by the drivers.


[View source]