work_space

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilePath

func GetFilePath(appID, instanceID, name string) (path string, err error)

Types

type SpaceOperation

type SpaceOperation struct {
	AppID      string
	InstanceID string
}

func (*SpaceOperation) AppendBytes

func (o *SpaceOperation) AppendBytes(filePath string, byteSlice []byte) PluginError

func (*SpaceOperation) AppendStrings

func (o *SpaceOperation) AppendStrings(filePath string, content []string) PluginError

func (*SpaceOperation) Copy

func (o *SpaceOperation) Copy(originalPath string, newPath string) PluginError

func (*SpaceOperation) CreateFile

func (o *SpaceOperation) CreateFile(name string) PluginError

func (*SpaceOperation) Gz

func (o *SpaceOperation) Gz(name string) PluginError

func (*SpaceOperation) Hash

func (o *SpaceOperation) Hash(name string) ([]byte, PluginError)

func (*SpaceOperation) IsDir

func (o *SpaceOperation) IsDir(name string) (bool, PluginError)

func (*SpaceOperation) IsExist

func (o *SpaceOperation) IsExist(name string) (bool, PluginError)

func (*SpaceOperation) List

func (o *SpaceOperation) List(dirPath string) ([]string, PluginError)

func (*SpaceOperation) MakeDir

func (o *SpaceOperation) MakeDir(name string) PluginError

func (*SpaceOperation) Read

func (o *SpaceOperation) Read(name string) ([]byte, PluginError)

func (*SpaceOperation) ReadLines

func (o *SpaceOperation) ReadLines(name string, lineBegin, lineEnd int32) ([]byte, PluginError)

func (*SpaceOperation) Remove

func (o *SpaceOperation) Remove(name string) PluginError

func (*SpaceOperation) Rename

func (o *SpaceOperation) Rename(originalPath string, newPath string) PluginError

func (*SpaceOperation) UnGz

func (o *SpaceOperation) UnGz(name string, targetFile string) PluginError

func (*SpaceOperation) UnZip

func (o *SpaceOperation) UnZip(name string, targetDir string) PluginError

func (*SpaceOperation) WriteBytes

func (o *SpaceOperation) WriteBytes(name string, byteSlice []byte) PluginError

func (*SpaceOperation) WriteStrings

func (o *SpaceOperation) WriteStrings(name string, content []string) PluginError

func (*SpaceOperation) Zip

func (o *SpaceOperation) Zip(outFileName string, targetFiles []string) PluginError

type WorkSpace

type WorkSpace struct {
	AppID string
	// contains filtered or unexported fields
}

func NewWorkSpace

func NewWorkSpace(source, distinct *protocol.PlatformMessage) *WorkSpace

func (*WorkSpace) Execute

func (w *WorkSpace) Execute()

Jump to

Keyboard shortcuts

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