swarm

package module
v0.12.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

Docker swarm cluster bootstrap

Install

go get github.com/aacfactory/fns-contrib/cluster/swarm

Usage

import (
	_ "github.com/aacfactory/fns-contrib/cluster/swarm"
)

Config

cluster:
  devMode: false
  kind: "swarm"
  options:
    swarm:
      fromEnv: false
      host: "swarm master host"
      certDir: "cert file dir, there are [ca.pem, cert.pem, key.pem] in the dir"
      labels:
        - "FNS-SERVICE"
        - "ACTIVE=dev"       

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FromENV bool     `json:"fromEnv"`
	Host    string   `json:"host"`
	CertDir string   `json:"certDir"`
	Labels  []string `json:"labels"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL