Documentation ¶
Index ¶
- func FileAnnotationToString(fileAnnotation *filev1beta1.FileAnnotation) string
- func PrintFileAnnotations(writer io.Writer, fileAnnotations []*filev1beta1.FileAnnotation, asJSON bool) error
- func ResolveFileAnnotationPaths(resolver func(string) (string, error), ...) error
- func SortFileAnnotations(fileAnnotations []*filev1beta1.FileAnnotation)
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.
Click to show internal directories.
Click to hide internal directories.