class Stack::Service

Defined in:

stack/parse_service.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, image : String, networks : Hash(String, String), network_aliases : Hash(String, String), network_ipv4 : Hash(String, String), network_mode : String, pid : String, ipc : String, privileged : Bool, init_containers : Array(String) = [] of String, endpoint_mode : String = "vip", mode : String = "replicated", container_labels : Array(String) = [] of String, environment : Array(String) = [] of String, publish_all : String = "false", ports : Array(String) = [] of String, cap_drop : String = "", cap_add : String = "", read_only : Bool = false, volumes : Array(String) = [] of String, dns : Array(String) = [] of String, dns_search : Array(String) = [] of String, dns_opt : Array(String) = [] of String, configs : Hash(String, String) = {} of String => String, entrypoint : String = "", command : Array(String) = [] of String) #

[View source]

Instance Method Detail

def cap_add : String #

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

[View source]
def cap_drop : String #

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

[View source]
def command : Array(String) #

[View source]
def command=(command : Array(String)) #

[View source]
def configs : Hash(String, String) #

[View source]
def configs=(configs : Hash(String, String)) #

[View source]
def container_labels : Array(String) #

[View source]
def container_labels=(container_labels : Array(String)) #

[View source]
def create(stack_name : String, ref_init_containers = {} of String => Stack::InitContainer, ref_networks = {} of String => Stack::Network, ref_configs = {} of String => Stack::Config) #

[View source]
def dns : Array(String) #

[View source]
def dns=(dns : Array(String)) #

[View source]
def dns_opt : Array(String) #

[View source]
def dns_opt=(dns_opt : Array(String)) #

[View source]
def dns_search : Array(String) #

[View source]
def dns_search=(dns_search : Array(String)) #

[View source]
def endpoint_mode : String #

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

[View source]
def entrypoint : String #

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

[View source]
def environment : Array(String) #

[View source]
def environment=(environment : Array(String)) #

[View source]
def get_cmd(stack_name : String, ref_init_containers = {} of String => Stack::InitContainer, ref_networks = {} of String => Stack::Network, ref_configs = {} of String => Stack::Config) : Array(String) #

[View source]
def image : String #

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

[View source]
def init_containers : Array(String) #

[View source]
def init_containers=(init_containers : Array(String)) #

[View source]
def ipc : String #

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

[View source]
def mode : String #

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

[View source]
def name : String #

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

[View source]
def network_aliases : Hash(String, String) #

[View source]
def network_aliases=(network_aliases : Hash(String, String)) #

[View source]
def network_ipv4 : Hash(String, String) #

[View source]
def network_ipv4=(network_ipv4 : Hash(String, String)) #

[View source]
def network_mode : String #

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

[View source]
def networks : Hash(String, String) #

[View source]
def networks=(networks : Hash(String, String)) #

[View source]
def pid : String #

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

[View source]
def ports : Array(String) #

[View source]
def ports=(ports : Array(String)) #

[View source]
def privileged : Bool #

[View source]
def privileged=(privileged : Bool) #

[View source]
def publish_all : String #

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

[View source]
def read_only : Bool #

[View source]
def read_only=(read_only : Bool) #

[View source]
def volumes : Array(String) #

[View source]
def volumes=(volumes : Array(String)) #

[View source]