Skip to content

Commit

Permalink
Update wtclient.go
Browse files Browse the repository at this point in the history
Add watchtower client commands and session management
  • Loading branch information
MKVEERENDRA authored Mar 5, 2025
1 parent 9feb761 commit 33c013d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cmd/commands/wtclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,18 +376,26 @@ func policy(ctx *cli.Context) error {
}

var sessionCommands = cli.Command{
Name: "session",
Name: "session",
Usage: "Manage watchtower client sessions.",
Description: "This command allows users to view, interact with, " +
"and terminate watchtower client sessions.",
Subcommands: []cli.Command{
terminateSessionCommand,
},
}


var terminateSessionCommand = cli.Command{
Name: "terminate",
ArgsUsage: "id",
Usage: "Terminate a specific watchtower client session.",
Description: "Terminates an existing watchtower client session " +
"using the provided session ID. This action cannot be undone.",
ArgsUsage: "session_id",
Action: actionDecorator(terminateSession),
}


func terminateSession(ctx *cli.Context) error {
ctxc := getContext()

Expand Down

0 comments on commit 33c013d

Please sign in to comment.