admincmd

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package admincmd implements standard administrative commands for managing channels and channel configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	chanmgr.Executor
	RemoveTargetLogin(login string) error
}

type TargetAdminConf

type TargetAdminConf struct {
	Storage   TargetProvider
	Executor  Executor
	Prefix    string
	LoginToID idlookup.Lookup
}

func (*TargetAdminConf) Commands

func (tac *TargetAdminConf) Commands() (cmds []*cmdclient.CommandContext)

Commands returns the standard administrative command set.

func (*TargetAdminConf) ConfigPropagation

func (tac *TargetAdminConf) ConfigPropagation(id, target string, applycfg map[string]string) (prevlogin string, err error)

type TargetProvider

type TargetProvider interface {
	Config(id string) (cfg map[string]string, err error)
	Reconfigure(id, login string, applycfg map[string]string) (prevlogin string, cfg map[string]string, err error)
	RemoveTarget(login string) (bool, error)
	CachedID(login string) (string, error)
}

Jump to

Keyboard shortcuts

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