pi-agent: Implement contextual Target actions
This commit is contained in:
@@ -5,6 +5,25 @@ import (
|
||||
"proxyctl/internal/target"
|
||||
)
|
||||
|
||||
func targetActionLabel(kind app.TargetActionKind) string {
|
||||
switch kind {
|
||||
case app.EnableTargetAction:
|
||||
return "Enable"
|
||||
case app.DisableTargetAction:
|
||||
return "Disable"
|
||||
case app.ApplyProfileTargetAction:
|
||||
return "Apply Profile"
|
||||
case app.ResolveDriftTargetAction:
|
||||
return "Resolve"
|
||||
case app.ReapplyActiveProfileAction:
|
||||
return "Reapply Active Profile"
|
||||
case app.RestoreOriginalAction:
|
||||
return "Restore Original"
|
||||
default:
|
||||
return "Unavailable"
|
||||
}
|
||||
}
|
||||
|
||||
type dashboardPane uint8
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user