Help us shape the future of Go! Take the 2026 Go Developer Survey

policy

package
v1.233.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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