repo

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package repo contains interface used to model access to both DataPower and local filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	String() string
	GetInitialItem() (model.Item, error)
	GetTitle(currentView *model.ItemConfig) string
	GetList(currentView *model.ItemConfig) (model.ItemList, error)
	InvalidateCache()
	GetFile(currentView *model.ItemConfig, fileName string) ([]byte, error)
	UpdateFile(currentView *model.ItemConfig, fileName string, newFileContent []byte) (bool, error)
	GetFileType(currentView *model.ItemConfig, parentPath, fileName string) (model.ItemType, error)
	GetFilePath(parentPath, fileName string) string
	CreateDir(viewConfig *model.ItemConfig, parentPath, dirName string) (bool, error)
	Delete(currentView *model.ItemConfig, itemType model.ItemType, parentPath, fileName string) (bool, error)
	GetViewConfigByPath(currentView *model.ItemConfig, dirPath string) (*model.ItemConfig, error)
	GetItemInfo(itemConfig *model.ItemConfig) ([]byte, error)
	ExecConfig(itemConfig *model.ItemConfig) error
}

Repo is a common repository methods implemented by local filesystem and DataPower

Directories

Path Synopsis
Package dp implements access to DataPower appliances.
Package dp implements access to DataPower appliances.
Package localfs implements access to local filesystem.
Package localfs implements access to local filesystem.

Jump to

Keyboard shortcuts

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