index

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension struct {
	ID  string `json:"id"`
	URL string `json:"url"`
}

type RegistryIndex

type RegistryIndex struct {
	Extensions []Extension `json:"extensions"`
}

func Decode

func Decode(reader io.Reader) (RegistryIndex, error)

Decode parses the content of the given reader and returns a RegistryIndex.

func (RegistryIndex) GetExtension

func (i RegistryIndex) GetExtension(id string) (extension Extension, ok bool)

GetExtension returns the extension with the given ID and true or and empty extension and false.

func (RegistryIndex) GetExtensionIDs

func (i RegistryIndex) GetExtensionIDs() []string

GetExtensionIDs returns the IDs of all extensions contained in this index.

Jump to

Keyboard shortcuts

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