Documentation
¶
Overview ¶
Package persistence provides request persistence and environment management tools for ZAP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentParams ¶
type EnvironmentTool ¶
type EnvironmentTool struct {
// contains filtered or unexported fields
}
EnvironmentTool is the unified environment management tool that replaces set_environment and list_environments.
func NewEnvironmentTool ¶
func NewEnvironmentTool(manager *PersistenceManager) *EnvironmentTool
func (*EnvironmentTool) Description ¶
func (t *EnvironmentTool) Description() string
func (*EnvironmentTool) Name ¶
func (t *EnvironmentTool) Name() string
func (*EnvironmentTool) Parameters ¶
func (t *EnvironmentTool) Parameters() string
type PersistenceManager ¶
type PersistenceManager struct {
// contains filtered or unexported fields
}
PersistenceManager maintains state for persistence tools (environment, etc.) Renamed from PersistenceTool to avoid confusion with the package name or specific tools.
func NewPersistenceManager ¶
func NewPersistenceManager(baseDir string) *PersistenceManager
NewPersistenceManager creates a new persistence manager
func (*PersistenceManager) GetBaseDir ¶
func (pm *PersistenceManager) GetBaseDir() string
GetBaseDir returns the base directory
func (*PersistenceManager) GetCurrentEnv ¶
func (pm *PersistenceManager) GetCurrentEnv() string
GetCurrentEnv returns the name of the current environment
func (*PersistenceManager) GetEnvironment ¶
func (pm *PersistenceManager) GetEnvironment() map[string]string
GetEnvironment returns the current environment variables
func (*PersistenceManager) SetEnvironment ¶
func (pm *PersistenceManager) SetEnvironment(name string) error
SetEnvironment sets the current environment by name
type RequestParams ¶
type RequestTool ¶
type RequestTool struct {
// contains filtered or unexported fields
}
RequestTool is the unified request management tool that replaces save_request, load_request, and list_requests.
func NewRequestTool ¶
func NewRequestTool(manager *PersistenceManager) *RequestTool
func (*RequestTool) Description ¶
func (t *RequestTool) Description() string
func (*RequestTool) Name ¶
func (t *RequestTool) Name() string
func (*RequestTool) Parameters ¶
func (t *RequestTool) Parameters() string
type VariableParams ¶
type VariableParams struct {
Action string `json:"action"` // "set", "get", "delete", "list"
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
Scope string `json:"scope,omitempty"` // "session" (default) or "global"
}
VariableParams defines variable operations
type VariableTool ¶
type VariableTool struct {
// contains filtered or unexported fields
}
VariableTool provides variable get/set/list operations
func NewVariableTool ¶
func NewVariableTool(store *shared.VariableStore) *VariableTool
NewVariableTool creates a new variable tool
func (*VariableTool) Description ¶
func (t *VariableTool) Description() string
Description returns the tool description
func (*VariableTool) Execute ¶
func (t *VariableTool) Execute(args string) (string, error)
Execute performs variable operations
func (*VariableTool) Parameters ¶
func (t *VariableTool) Parameters() string
Parameters returns the tool parameter description