flagutils

package
v0.36.0-flux.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InventoryPolicyFlag       = "inventory-policy"
	InventoryPolicyStrict     = "strict"
	InventoryPolicyAdopt      = "adopt"
	InventoryPolicyForceAdopt = "force-adopt"
)

Variables

This section is empty.

Functions

func ConvertInventoryPolicy

func ConvertInventoryPolicy(policy string) (inventory.Policy, error)

func ConvertPropagationPolicy

func ConvertPropagationPolicy(propagationPolicy string) (metav1.DeletionPropagation, error)

ConvertPropagationPolicy converts a propagationPolicy described as a string to a DeletionPropagation type that is passed into the Applier.

func PathFromArgs

func PathFromArgs(args []string) string

PathFromArgs returns the path which is a positional arg from args list returns "-" if there is length of args is 0, which implies no path is provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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