intention

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MPL-2.0 Imports: 5 Imported by: 26 modules, 23 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDestination added in v1.9.0

func FormatDestination(i *api.Intention) string

FormatDestination returns the namespace/name format for the destination. This is different from (*api.Intention).DestinationString in that the default namespace is not omitted.

func FormatSource added in v1.9.0

func FormatSource(i *api.Intention) string

FormatSource returns the namespace/name format for the source. This is different from (*api.Intention).SourceString in that the default namespace is not omitted.

func GetFromArgs added in v1.9.0

func GetFromArgs(client *api.Client, args []string) (*api.Intention, error)

func New

func New() *cmd

func ParseIntentionTarget added in v1.9.0

func ParseIntentionTarget(input string) (name string, ns string, partition string, err error)

ParseIntentionTarget parses a target of the form <partition>/<namespace>/<name> and returns the distinct parts. In some cases the partition and namespace may be elided and this function will return the empty string for them then. If two parts are present, it is assumed they are namespace/name and not partition/name.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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