indexoperations

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIndex

func AddIndex(paths environment.Paths, name, url string) error

AddIndex initializes a new index to install plugins from.

func DeleteIndex

func DeleteIndex(paths environment.Paths, name string) error

DeleteIndex removes specified index name. If index does not exist, returns an error that can be tested by os.IsNotExist.

func IsValidIndexName

func IsValidIndexName(name string) bool

IsValidIndexName validates if an index name contains invalid characters

Types

type Index

type Index struct {
	Name string
	URL  string
}

Index describes the name and URL of a configured index.

func ListIndexes

func ListIndexes(paths environment.Paths) ([]Index, error)

ListIndexes returns a slice of Index objects. The path argument is used as the base path of the index.

Jump to

Keyboard shortcuts

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