policy

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "policy",
	Short: "Operations with container placement policy",
	Long:  "Operations with container placement policy",
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		commonflags.Bind(cmd)
		commonflags.BindAPI(cmd)
	},
}

Cmd represents the policy command.

Functions

func ParseContainerPolicy

func ParseContainerPolicy(cmd *cobra.Command, policyString string) (*netmap.PlacementPolicy, error)

ParseContainerPolicy tries to parse the provided string as a path to file with placement policy, then as QL and JSON encoded policies. Returns an error if all attempts fail.

Types

This section is empty.

Jump to

Keyboard shortcuts

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