grantdir

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package grantdir delivers grants to every file-fed home from a directory polled for *.jwt files. A new or changed file is GrantAdded with its contents; a removed file is GrantRemoved with the UID read (unverified: it is only used to stop admissions) from the last copy. An empty file is skipped until its token is written, so emptying a grant's file to rewrite it does not remove the grant. The standalone home points it at -grants-dir. So does the Kubernetes home, whose grant fetcher writes there.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Poll

func Poll(ctx context.Context, dir string, every time.Duration) (<-chan home.GrantEvent, error)

Poll returns grant events read from dir every `every`, until ctx ends. The directory is created if missing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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