intention

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 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, 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