client

package
v0.0.0-...-e016302 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateClientFlags []cli.Flag = []cli.Flag{
	cli.StringFlag{
		Name:  "grpc-url, g",
		Value: "127.0.0.1:5557",
		Usage: "gRPC host and port",
	},
	cli.StringFlag{
		Name:  "id, i",
		Value: "random UUID",
	},
	cli.StringFlag{
		Name:     "name, n",
		Required: true,
	},
	cli.StringFlag{
		Name:  "secret, s",
		Value: utils.RandStringFlag,
	},
	cli.StringSliceFlag{
		Name:  "redirect-uri, r",
		Value: &cli.StringSlice{"http://127.0.0.1:5555/callback"},
	},
	cli.StringFlag{
		Name:     "logo-url, l",
		Required: false,
	},
	cli.StringSliceFlag{
		Name:     "trusted-peer, t",
		Required: false,
	},
	cli.BoolFlag{
		Name:     "public, p",
		Required: false,
	},
}
View Source
var DeleteClientFlags []cli.Flag = []cli.Flag{
	cli.StringFlag{
		Name:  "grpc-url, g",
		Value: "127.0.0.1:5557",
		Usage: "gRPC host and port",
	},
}
View Source
var UpdateClientFlags []cli.Flag = []cli.Flag{
	cli.StringFlag{
		Name:  "grpc-url, g",
		Value: "127.0.0.1:5557",
		Usage: "gRPC host and port",
	},
	cli.StringFlag{
		Name:     "name, n",
		Required: false,
	},
	cli.StringSliceFlag{
		Name:     "redirect-uris, r",
		Required: false,
	},
	cli.StringFlag{
		Name:     "logo-url, l",
		Required: false,
	},
	cli.StringSliceFlag{
		Name:     "trusted-peers, t",
		Required: false,
	},
}

Functions

func CreateClient

func CreateClient(c *cli.Context) error

func DeleteClient

func DeleteClient(c *cli.Context) error

func UpdateClient

func UpdateClient(c *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL