mirror of
https://github.com/openziti/zrok.git
synced 2025-01-24 14:59:08 +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 panicInstead bool
|
||||||
var apiEndpoint string
|
var apiEndpoint string
|
||||||
|
|
||||||
|
var accessCmd = &cobra.Command{
|
||||||
|
Use: "access",
|
||||||
|
Short: "Access services",
|
||||||
|
}
|
||||||
|
|
||||||
var httpCmd = &cobra.Command{
|
var httpCmd = &cobra.Command{
|
||||||
Use: "http",
|
Use: "http",
|
||||||
Short: "HTTP endpoint operations",
|
Short: "HTTP endpoint operations",
|
||||||
|
Loading…
Reference in New Issue
Block a user