Documentation
¶
Index ¶
- func GenerateConf(w io.Writer, mylrn int, lrns []int) error
- func GenerateConfForAdd(w io.Writer, mylrn int, members []*etcdserverpb.Member) error
- func GenerateService(w io.Writer, rt neco.ContainerRuntime) error
- func InstallTools(ctx context.Context, rt neco.ContainerRuntime) error
- func Setup(ctx context.Context, rt neco.ContainerRuntime, generator func(io.Writer) error) (*clientv3.Client, error)
- func UpdateNecoConfig(lrns []int) error
- func UserAdd(ctx context.Context, ec *clientv3.Client, name, prefix string) error
- func WaitEtcdForVault(ctx context.Context) (*clientv3.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConf ¶
GenerateConf generates etcd.conf.yml from template.
func GenerateConfForAdd ¶
GenerateConfForAdd generates etcd.conf.yml from template to add a new member.
func GenerateService ¶
func GenerateService(w io.Writer, rt neco.ContainerRuntime) error
GenerateService generate systemd service unit contents.
func InstallTools ¶
func InstallTools(ctx context.Context, rt neco.ContainerRuntime) error
InstallTools install etcdctl under /usr/local/bin.
func Setup ¶
func Setup(ctx context.Context, rt neco.ContainerRuntime, generator func(io.Writer) error) (*clientv3.Client, error)
Setup installs and starts etcd. It returns etcd client connected to etcd server running on localhost.
func UpdateNecoConfig ¶
UpdateNecoConfig updates /etc/neco/config.yml.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.