Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupRollback ¶ added in v0.1.3
func BackupRollback() (err error)
BackupRollback - helps to backup the rollback dir as assets
Types ¶
type PatchAgent ¶
type PatchAgent interface { RightsCheck() (bool, error) // File write into system WriteUploaded(entity.Entity, bytes.Buffer) (entity.Entity, error) // patch related PatchNow() error VerifyPatched() ([]entity.File, bool, error) // rollback related PatchRollback() error VerifyRollbacked() (bool, error) // patch file related PatchExtract(string, string) error VerifyExtracted() ([]entity.File, bool, error) // List available patches ListAssets() ([]entity.Entity, error) }
PatchAgent declare all agent actions
func NewPatchAgent ¶
func NewPatchAgent(path string, isBackup bool) (PatchAgent, error)
NewPatchAgent - action pointer
Click to show internal directories.
Click to hide internal directories.