agent

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 15 Imported by: 0

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

func NewPatchServer

func NewPatchServer() pb.PatchServer

NewPatchServer returns a new ping server

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

Jump to

Keyboard shortcuts

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