cli

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagEncryptionPGPKey    = "pgp-key"
	FlagEncryptionPGPKeyURL = "pgp-key-url"
	FlagEncryptionKeybase   = "keybase"
)
View Source
const (
	Limit                  = "limit"
	BatchSize              = "batch-size"
	KeepIfYounger          = "keep-if-younger"
	AccessLifespan         = "access-lifespan"
	RefreshLifespan        = "refresh-lifespan"
	ConsentRequestLifespan = "consent-request-lifespan"
	OnlyTokens             = "tokens"
	OnlyRequests           = "requests"
	OnlyGrants             = "grants"
	ReadFromEnv            = "read-from-env"
	Config                 = "config"
)

Variables

This section is empty.

Functions

func FormatSwaggerError

func FormatSwaggerError(err error) string

func NewEncryptionKey

func NewEncryptionKey(cmd *cobra.Command, client *http.Client) (ek encrypta.EncryptionKey, encryptSecret bool, err error)

NewEncryptionKey for client secret

func ToSDKFriendlyJSONWebKey

func ToSDKFriendlyJSONWebKey(key interface{}, kid, use string) jose.JSONWebKey

Types

type Handler

type Handler struct {
	Migration *MigrateHandler
	Janitor   *JanitorHandler
}

func NewHandler

func NewHandler(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, cOpts []configx.OptionModifier) *Handler

type JanitorHandler

type JanitorHandler struct {
	// contains filtered or unexported fields
}

func NewJanitorHandler

func NewJanitorHandler(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, cOpts []configx.OptionModifier) *JanitorHandler

func (*JanitorHandler) Args

func (*JanitorHandler) Args(cmd *cobra.Command, args []string) error

func (*JanitorHandler) RunE

func (j *JanitorHandler) RunE(cmd *cobra.Command, args []string) error

type MigrateHandler

type MigrateHandler struct {
	// contains filtered or unexported fields
}

func (*MigrateHandler) MigrateGen

func (h *MigrateHandler) MigrateGen(cmd *cobra.Command, args []string)

func (*MigrateHandler) MigrateSQL

func (h *MigrateHandler) MigrateSQL(cmd *cobra.Command, args []string) (err error)

func (*MigrateHandler) MigrateStatus added in v2.2.0

func (h *MigrateHandler) MigrateStatus(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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