mirror of
https://github.com/openziti/zrok.git
synced 2025-01-09 07:28:15 +01:00
parent
aa2f974cf9
commit
2cb6b6ab83
21
cmd/zrok/access_private.go
Normal file
21
cmd/zrok/access_private.go
Normal file
@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
type accessPrivateCommand struct {
|
||||
cmd *cobra.Command
|
||||
}
|
||||
|
||||
func newAccessPrivateCommand() *accessPrivateCommand {
|
||||
cmd := &cobra.Command{
|
||||
Use: "private <serviceToken>",
|
||||
Short: "Create a private frontend to access a service",
|
||||
Args: cobra.ExactArgs(1),
|
||||
}
|
||||
command := &accessPrivateCommand{cmd: cmd}
|
||||
cmd.Run = command.run
|
||||
return command
|
||||
}
|
||||
|
||||
func (cmd *accessPrivateCommand) run(_ *cobra.Command, args []string) {
|
||||
}
|
@ -32,6 +32,11 @@ var verbose bool
|
||||
var panicInstead bool
|
||||
var apiEndpoint string
|
||||
|
||||
var accessCmd = &cobra.Command{
|
||||
Use: "access",
|
||||
Short: "Access services",
|
||||
}
|
||||
|
||||
var httpCmd = &cobra.Command{
|
||||
Use: "http",
|
||||
Short: "HTTP endpoint operations",
|
||||
|
Loading…
Reference in New Issue
Block a user