commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigView

func ConfigView(cData *CommandData, sessionBase64 bool)

ConfigView view config

func GetFileCommandData

func GetFileCommandData(n string, fid uint) (name string, id uint)

GetFileCommandData returns id if name is id

func GetTempFile

func GetTempFile(fileName string) string

GetTempFile returns tempfile from fileName

func Ping

func Ping(cData *CommandData)

Ping pings the server

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) Init

func (cData *CommandData) Init() bool

Init init CommandData

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

Jump to

Keyboard shortcuts

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