cmd

package
v0.0.0-...-54d0854 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	XJWTHeaderName = "X-Jwt"

	DataMessageKey = "data"
)

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(o *Options) *cobra.Command

func NewLoggerWithFile

func NewLoggerWithFile(logFile string) (*zap.Logger, error)

func Run

func Run(ctx context.Context, o *Options) error

Types

type AuditRegistry

type AuditRegistry map[string][]string

AuditRegistry contains mappings from path-prefixes to array of methods that are registered with the AuditLogMiddleware

type Options

type Options struct {
	*cli.Options
	Port                           int
	SSLCrt                         string
	SSLKey                         string
	Workers                        int
	WatchInterval                  time.Duration
	OrphanOperationTimeout         time.Duration
	ClusterReconcileInterval       time.Duration
	PurgeEntitiesOlderThan         time.Duration
	CleanerInterval                time.Duration
	BookkeeperWatchInterval        time.Duration
	ReconciliationsKeepLatestCount int
	ReconciliationsMaxAgeDays      int
	InventoryMaxAgeDays            int
	StatusCleanupBatchSize         int
	CreateEncyptionKey             bool
	MaxParallelOperations          int
	AuditLog                       bool
	AuditLogFile                   string
	AuditLogTenantID               string
	StopAfterMigration             bool
	Config                         *config.Config
}

func NewOptions

func NewOptions(o *cli.Options) *Options

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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