intention

package
v1.9.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MPL-2.0 Imports: 5 Imported by: 23

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, namespace string, err error)

ParseIntentionTarget parses a target of the form <namespace>/<name> and returns the two distinct parts. In some cases the namespace may be elided and this function will return the empty string for the namespace then.

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