Documentation ¶
Index ¶
- func ConfigView(cData *CommandData, sessionBase64 bool)
- func GetFileCommandData(n string, fid uint) (name string, id uint)
- func GetTempFile(fileName string) string
- func Ping(cData *CommandData)
- func ProcesStrSliceParam(slice *[]string)
- func ProcesStrSliceParams(slices ...*[]string)
- type CommandData
- func (cData *CommandData) CancelJob(jobID uint)
- func (cData *CommandData) ClearCcache()
- func (cData *CommandData) CreateAURJob(pkg, sUploadType string, disableCcache bool)
- func (cData *CommandData) Init() bool
- func (cData *CommandData) JobInfo(jobID uint)
- func (cData *CommandData) ListJobs(limit int)
- func (cData *CommandData) LoginCommand(usernameArg string, args ...bool)
- func (cData *CommandData) Logout(username string)
- func (cData *CommandData) Logs(jobID uint, since time.Time, first bool)
- func (cData *CommandData) QueryCcache()
- func (cData *CommandData) RegisterCommand()
- func (cData *CommandData) SetJobState(jobID uint, state librb.JobState)
- func (cData *CommandData) SetupClient(host, configFile string, ignoreCert, serverOnly, register, noLogin bool, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileCommandData ¶
GetFileCommandData returns id if name is id
func GetTempFile ¶
GetTempFile returns tempfile from fileName
func ProcesStrSliceParam ¶
func ProcesStrSliceParam(slice *[]string)
ProcesStrSliceParam divides args by ,
func ProcesStrSliceParams ¶
func ProcesStrSliceParams(slices ...*[]string)
ProcesStrSliceParams divides args by ,
Types ¶
type CommandData ¶
type CommandData struct { Librb *librb.LibRB Command string Config *dmConfig.Config NoRedaction, OutputJSON bool Yes, Force, Quiet bool HideTitel bool }
CommandData data for commands
func (*CommandData) CancelJob ¶
func (cData *CommandData) CancelJob(jobID uint)
CancelJob cancel a job
func (*CommandData) ClearCcache ¶
func (cData *CommandData) ClearCcache()
ClearCcache clear ccache on server
func (*CommandData) CreateAURJob ¶
func (cData *CommandData) CreateAURJob(pkg, sUploadType string, disableCcache bool)
CreateAURJob create an aur build job
func (*CommandData) JobInfo ¶
func (cData *CommandData) JobInfo(jobID uint)
JobInfo infos about a single job
func (*CommandData) ListJobs ¶
func (cData *CommandData) ListJobs(limit int)
ListJobs list active jobs
func (*CommandData) LoginCommand ¶
func (cData *CommandData) LoginCommand(usernameArg string, args ...bool)
LoginCommand login into the server
func (*CommandData) Logout ¶
func (cData *CommandData) Logout(username string)
Logout Logs out the user
func (*CommandData) Logs ¶
func (cData *CommandData) Logs(jobID uint, since time.Time, first bool)
Logs of job
func (*CommandData) QueryCcache ¶
func (cData *CommandData) QueryCcache()
QueryCcache get ccache info
func (*CommandData) RegisterCommand ¶
func (cData *CommandData) RegisterCommand()
RegisterCommand create a new account
func (*CommandData) SetJobState ¶
func (cData *CommandData) SetJobState(jobID uint, state librb.JobState)
SetJobState to paused or running
func (*CommandData) SetupClient ¶
func (cData *CommandData) SetupClient(host, configFile string, ignoreCert, serverOnly, register, noLogin bool, token, username string)
SetupClient sets up client config
Click to show internal directories.
Click to hide internal directories.