Documentation ¶
Index ¶
- func EnvStyle(s string) string
- func EscapeMediaTypes(mediatypes []string) []string
- func FriendlyTypeName(s *spec.Schema) string
- func GroupVersionKinds(s spec.Schema) []schema.GroupVersionKind
- func Operations(path spec.PathItem) map[string]*spec.Operation
- func Pluralise(s string) string
- func RefType(s *spec.Schema) string
- func ReverseStringSlice(s []string) []string
- func SortedKeys(m interface{}, t reflect.Type) interface{}
- func ToUpper(s string) string
- type Page
- type Pages
- type Topic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeMediaTypes ¶
EscapeMediaTypes ensures that */* renders correctly in asciidoc format. TODO: it'd be better if the template library could escape correctly for asciidoc.
func FriendlyTypeName ¶
FriendlyTypeName returns a user-friendly type name.
func GroupVersionKinds ¶
func GroupVersionKinds(s spec.Schema) []schema.GroupVersionKind
GroupVersionKinds returns the GroupVersionKinds from the "x-kubernetes-group-version-kind" OpenAPI extension.
func Operations ¶
Operations returns the populated operations of a spec.PathItem as a map, for easier iteration
func RefType ¶
RefType returns the type name of a reference, suitable for looking up in s.Definitions.
func ReverseStringSlice ¶
ReverseStringSlice returns s reversed, not in place.
func SortedKeys ¶
SortedKeys returns a slice containing the sorted keys of map m. Argument t is the type implementing sort.Interface which is used to sort.
Types ¶
type Page ¶
type Page struct { Operations []operation // contains filtered or unexported fields }