pythonapi

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirDeleteRecursive

func DirDeleteRecursive(path string) error

DirDeleteRecursive delete directory and all its content provided by path

Types

type NetAppAPI

type NetAppAPI struct {
	keystore.PythonAPI

	Version string
	// contains filtered or unexported fields
}

NetAppAPI the structure for the Python API interaction to be refined access to Python API

func CreateAPI

func CreateAPI(folder string, sdkroot string, apiport string) (*NetAppAPI, error)

CreateAPI TODO: doc for create API call

func (NetAppAPI) Stop

func (api NetAppAPI) Stop() error

Stop must be called before API is stopped being used, e.g. plugin shutdown

type SyncResult

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

SyncResult contains the box to OS sync results with accessor functions Contains/GetFilePath

func SynchBoxToOS

func SynchBoxToOS(folder string, requiredFiles *[]string) (*SyncResult, error)

SynchBoxToOS synchronize box folder ./python to provided folder

func (SyncResult) Contains

func (sR SyncResult) Contains(boxPath string) bool

Contains returns true if provided boxPath exists and is available

func (SyncResult) FileCount

func (sR SyncResult) FileCount() int

FileCount returns the number of available files on the OS

func (SyncResult) GetFilePath

func (sR SyncResult) GetFilePath(boxPath string) (string, error)

GetFilePath returns the OS file path for requested boxPath

Jump to

Keyboard shortcuts

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