cli

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cli parses the flags the snellius binaries share, so the default, core-only and downstream binaries cannot drift apart.

Index

Constants

View Source
const (
	MinAuthzCacheTTL = 30 * time.Second
	MaxAuthzCacheTTL = 15 * time.Minute
)

The --authz-cache-ttl range (design §6.2).

Variables

This section is empty.

Functions

func Parse

func Parse(fs *flag.FlagSet, args []string) (kubeconfig string, o app.Options, err error)

Parse registers the flags on fs and parses args. It returns the kubeconfig path and the app options, with the embedded SPA as the UI. A build from the module cache embeds only a placeholder, so a downstream build sets o.UI to its own.

Types

This section is empty.

Jump to

Keyboard shortcuts

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