Documentation
¶
Overview ¶
Package modify implements the `fxadmin modify` commands, which apply a structured configuration change directly to a config block file (automating the manual decode/hand-edit step). Each command reads the block, applies the change to the embedded common.Config, and writes the block back so further modify commands can accumulate onto it; `compute-update --pb` then computes the ConfigUpdate from the original and edited blocks.
The command surface is wired and validated by the CLI; the change logic is not implemented yet, so every handler currently returns ErrNotImplemented.
Index ¶
- Variables
- type Handler
- func (*Handler) AppAdd(orgPath, blockPath string) error
- func (*Handler) AppKnownCertsAdd(org string, certPaths []string, blockPath string) error
- func (*Handler) AppKnownCertsRemove(org string, certPaths []string, blockPath string) error
- func (*Handler) AppRemove(org, blockPath string) error
- func (*Handler) PartyAdd(partyPath, blockPath string) error
- func (*Handler) PartyCA(ch change.CA) error
- func (*Handler) PartyNode(ch change.Node) error
- func (*Handler) PartyRemove(partyID uint32, blockPath string) error
Constants ¶
This section is empty.
Variables ¶
var ErrNotImplemented = errors.New("not implemented")
ErrNotImplemented is returned by every modify command until the change logic is implemented.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
Handler executes the modify commands.
func (*Handler) AppKnownCertsAdd ¶
AppKnownCertsAdd implements `fxadmin modify app known-certs add`.
func (*Handler) AppKnownCertsRemove ¶
AppKnownCertsRemove implements `fxadmin modify app known-certs remove`.