annotations

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package annotations makes it possible to track use of resource annotations within a procress in order to generate documentation for these uses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFull

func RegisterFull(a Annotation)

RegisterFull registers a new annotation.

Types

type Annotation

type Annotation struct {
	// The name of the annotation.
	Name string

	// Description of the annotation.
	Description string

	// Hide the existence of this annotation when outputting usage information.
	Hidden bool

	// Mark this annotation as deprecated when generating usage information.
	Deprecated bool
}

Annotation describes a single resource annotation

func Descriptions

func Descriptions() []Annotation

Returns a description of this process' annotations, sorted by name.

func Register

func Register(name string, description string) Annotation

Register registers a new annotation.

Jump to

Keyboard shortcuts

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