Skip to content

installers._archive.swarm #

fn docker_swarm_install #

fn docker_swarm_install(args SwarmArgs) !

fn install_docker #

fn install_docker(args SwarmArgs) !

installs docker & swarm

fn (Installer) install_portainer #

fn (mut installer Installer) install_portainer() !

install swarm management solution

fn (Installer) docker_swarm_install_add #

fn (mut installer Installer) docker_swarm_install_add(mut args SwarmArgsAdd) !

specify which node is the master

struct SwarmArgs #

struct SwarmArgs {
	reset bool
}

struct SwarmArgsAdd #

struct SwarmArgsAdd {
pub mut:
	reset  bool
	master Node
}