modify

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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 New

func New() *Handler

New returns a modify command handler.

func (*Handler) AppAdd

func (*Handler) AppAdd(orgPath, blockPath string) error

AppAdd implements `fxadmin modify app add`.

func (*Handler) AppKnownCertsAdd

func (*Handler) AppKnownCertsAdd(org string, certPaths []string, blockPath string) error

AppKnownCertsAdd implements `fxadmin modify app known-certs add`.

func (*Handler) AppKnownCertsRemove

func (*Handler) AppKnownCertsRemove(org string, certPaths []string, blockPath string) error

AppKnownCertsRemove implements `fxadmin modify app known-certs remove`.

func (*Handler) AppRemove

func (*Handler) AppRemove(org, blockPath string) error

AppRemove implements `fxadmin modify app remove`.

func (*Handler) PartyAdd

func (*Handler) PartyAdd(partyPath, blockPath string) error

PartyAdd implements `fxadmin modify party add`.

func (*Handler) PartyCA

func (*Handler) PartyCA(ch change.CA) error

PartyCA implements `fxadmin modify party ca add|remove|set`.

func (*Handler) PartyNode

func (*Handler) PartyNode(ch change.Node) error

PartyNode implements `fxadmin modify party node`.

func (*Handler) PartyRemove

func (*Handler) PartyRemove(partyID uint32, blockPath string) error

PartyRemove implements `fxadmin modify party remove`.

Directories

Path Synopsis
Package change defines the `fxadmin modify party` requests.
Package change defines the `fxadmin modify party` requests.

Jump to

Keyboard shortcuts

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