catalog

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUnDirectoryError

func IsUnDirectoryError(err error) bool

Types

type CatalogManger

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

func NewCataLogManager

func NewCataLogManager() (cm *CatalogManger, err error)

func (*CatalogManger) AddCataLog

func (m *CatalogManger) AddCataLog(name string, conf *config.CatalogConf) (ok bool)

func (*CatalogManger) AddCatalogs

func (m *CatalogManger) AddCatalogs(catalogs map[string]*config.CatalogConf) (ok bool)

func (*CatalogManger) GetAllCatalogInfo

func (m *CatalogManger) GetAllCatalogInfo() map[string]*config.CatalogConf

func (*CatalogManger) GetCatalogInfo

func (m *CatalogManger) GetCatalogInfo(catalog string) (conf config.CatalogConf, ok bool)

func (*CatalogManger) Run

func (m *CatalogManger) Run()

type UnDirectoryError

type UnDirectoryError struct {
	Path string `json:"path"`
}

func (*UnDirectoryError) Error

func (e *UnDirectoryError) Error() string

Jump to

Keyboard shortcuts

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