static

package
v0.0.0-...-a1bc676 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

Package cloudeng.io/glean/gleancli/builtin/static

import cloudeng.io/glean/gleancli/builtin/static

Package static provides the set of builtin resources for a given instance of the Glean CLI.

Functions

Func APIExtensions
func APIExtensions(parents ...string) []extensions.Extension

APIExtensions returns the builtin API related commands.

Func Extensions
func Extensions(parents ...string) []extensions.Extension

Extensions returns any top-level commands.

Func LinkExtractors
func LinkExtractors() map[content.Type]outlinks.Extractor

LinkExtractors represents the set of available outlink extractors.

Func MustDocumentConverters
func MustDocumentConverters() *content.Registry[converters.Document]

MustDocumentConverters returns the available converters, it will panic on encountering an error.

Func MustUserConverters
func MustUserConverters() *content.Registry[converters.User]

MustUserConverters returns the available converters, it will panic on encountering an error.

Func New
func New() extensions.StaticResources
Func NewHTML
func NewHTML() converters.Document

NewHTML returns a new install of HTML.

Func TokenReaders
func TokenReaders() *apitokens.Readers

Types

Type HTML
type HTML struct {
	// contains filtered or unexported fields
}

HTML represents an html to glean document converter. It differs from converters.HTML only in that it sets the object type to statichtml.

Methods
func (cnv *HTML) Convert(ctx context.Context, datasource string, cfg config.Conversion, ctype content.Type, data []byte) (gleansdk.DocumentDefinition, error)
func (cnv *HTML) Type() content.Type

Documentation

Overview

Package static provides the set of builtin resources for a given instance of the Glean CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIExtensions

func APIExtensions(parents ...string) []extensions.Extension

APIExtensions returns the builtin API related commands.

func Extensions

func Extensions(parents ...string) []extensions.Extension

Extensions returns any top-level commands.

func LinkExtractors

func LinkExtractors() map[content.Type]outlinks.Extractor

LinkExtractors represents the set of available outlink extractors.

func MustDocumentConverters

func MustDocumentConverters() *content.Registry[converters.Document]

MustDocumentConverters returns the available converters, it will panic on encountering an error.

func MustUserConverters

func MustUserConverters() *content.Registry[converters.User]

MustUserConverters returns the available converters, it will panic on encountering an error.

func New

func NewHTML

func NewHTML() converters.Document

NewHTML returns a new install of HTML.

func TokenReaders

func TokenReaders() *apitokens.Readers

Types

type HTML

type HTML struct {
	// contains filtered or unexported fields
}

HTML represents an html to glean document converter. It differs from converters.HTML only in that it sets the object type to statichtml.

func (*HTML) Convert

func (cnv *HTML) Convert(ctx context.Context, datasource string, cfg config.Conversion, ctype content.Type, data []byte) (gleansdk.DocumentDefinition, error)

func (*HTML) Type

func (cnv *HTML) Type() content.Type

Jump to

Keyboard shortcuts

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