policy

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package policy provides offline policy authoring and validation commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInspection

func IsInspection(root *cobra.Command, args []string) bool

IsInspection identifies the built-in offline command tree before config loading.

Types

type CommandProvider

type CommandProvider struct{}

CommandProvider registers the offline policy command group.

func (*CommandProvider) GetAliases

func (*CommandProvider) GetAliases() []internal.CommandAlias

GetAliases implements internal.CommandProvider.

func (*CommandProvider) GetCommand

func (*CommandProvider) GetCommand() *cobra.Command

GetCommand implements internal.CommandProvider.

func (*CommandProvider) GetCompatibilityFlags

func (*CommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag

GetCompatibilityFlags implements internal.CommandProvider.

func (*CommandProvider) GetFlagsBuilder

func (*CommandProvider) GetFlagsBuilder() flags.Builder

GetFlagsBuilder implements internal.CommandProvider.

func (*CommandProvider) GetGroup

func (*CommandProvider) GetGroup() string

GetGroup implements internal.CommandProvider.

func (*CommandProvider) GetName

func (*CommandProvider) GetName() string

GetName implements internal.CommandProvider.

func (*CommandProvider) GetPositionalArgsBuilder

func (*CommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder

GetPositionalArgsBuilder implements internal.CommandProvider.

func (*CommandProvider) IsExperimental

func (*CommandProvider) IsExperimental() bool

IsExperimental implements internal.CommandProvider.

Jump to

Keyboard shortcuts

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