extfile

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileAnnotationToString

func FileAnnotationToString(fileAnnotation *filev1beta1.FileAnnotation) string

FileAnnotationToString returns the basic string representation of the FileAnnotation.

func PrintFileAnnotations

func PrintFileAnnotations(writer io.Writer, fileAnnotations []*filev1beta1.FileAnnotation, asJSON bool) error

PrintFileAnnotations prints the FileAnnotations to the Writer.

If asJSON is specified, the FileAnnotations are marshalled as JSON.

func ResolveFileAnnotationPaths

func ResolveFileAnnotationPaths(resolver func(string) (string, error), fileAnnotations ...*filev1beta1.FileAnnotation) error

ResolveFileAnnotationPaths attempts to resolve file paths using the given resolver function.

If the resolver is nil, this does nothing. If the resolver function returns an empty string for a given path, no modifications are made.

func SortFileAnnotations

func SortFileAnnotations(fileAnnotations []*filev1beta1.FileAnnotation)

SortFileAnnotations sorts the FileAnnotations.

The order of sorting is:

Path
StartLine
StartColumn
Type
Message
EndLine
EndColumn

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