Documentation ¶
Index ¶
- func DefaultServer(cmd *cobra.Command) (*grpc.Server, error)
- func Defaults(c *cobra.Command) *cobra.Command
- func ExitErrorf(code ExitCode, format string, args ...interface{}) error
- func NewHtpasswdCommand() *cobra.Command
- func NewOIDCConnect() *cobra.Command
- func NewTestserverCommand() *cobra.Command
- type ExitCode
- type ExitError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultServer ¶
DefaultServer builds a gRPC server from the given flags.
func ExitErrorf ¶
ExitErrorf formats and error message along with the ExitCode.
func NewOIDCConnect ¶
NewOIDCConnect - start server as OIDC and take in 'config' file as parameter...
Types ¶
type ExitCode ¶
type ExitCode int
ExitCode is a process exit code suitable for use with os.Exit.
const ( // EX_FAIL is an exit code indicating an unspecified error. EX_FAIL ExitCode = 1 //nolint:golint // EX_USAGE is an exit code indicating invalid invocation syntax. EX_USAGE ExitCode = 65 //nolint:golint // EX_NOINPUT is an exit code indicating missing input data. EX_NOINPUT ExitCode = 66 //nolint:golint // EX_DATAERR means the input data was incorrect in some // way. This should only be used for user's data and not // system files. EX_DATAERR ExitCode = 65 //nolint:golint // EX_CONFIG means that something was found in an unconfigured // or misconfigured state. EX_CONFIG ExitCode = 78 //nolint:golint )
Click to show internal directories.
Click to hide internal directories.