types

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentToken

type AgentToken struct {
	Token     string `config:"type=string,required" json:"token"`
	Comment   string `config:"type=string" json:"comment"`
	CreatedAt int    `config:"key=created_at,type=int,required" json:"created_at"`
	Revoked   bool   `config:"type=bool" json:"revoked"`
}

type Exclusion

type Exclusion struct {
	Path    string `config:"type=string,required" json:"path"`
	Comment string `config:"type=string" json:"comment"`
	JobID   string `config:"key=job_id,type=string" json:"job_id"`
}

type Job

type Job struct {
	ID                string      `json:"id"`
	Store             string      `config:"type=string,required" json:"store"`
	Target            string      `config:"type=string,required" json:"target"`
	Subpath           string      `config:"type=string" json:"subpath"`
	Schedule          string      `config:"type=string" json:"schedule"`
	Comment           string      `config:"type=string" json:"comment"`
	NotificationMode  string      `config:"key=notification_mode,type=string" json:"notification-mode"`
	Namespace         string      `config:"type=string" json:"ns"`
	NextRun           *int64      `json:"next-run"`
	Retry             int         `config:"type=int" json:"retry"`
	CurrentWriteSpeed string      `json:"current_write_speed"`
	CurrentReadSpeed  string      `json:"current_read_speed"`
	CurrentPID        int         `config:"key=current_pid,type=int" json:"current_pid"`
	LastRunUpid       string      `config:"key=last_run_upid,type=string" json:"last-run-upid"`
	LastRunState      *string     `json:"last-run-state"`
	LastRunEndtime    *int64      `json:"last-run-endtime"`
	LastRunPlusError  string      `config:"key=last_plus_error,type=string" json:"last-plus-error"`
	LastRunPlusTime   int         `config:"key=last_plus_time,type=int" json:"last-plus-time"`
	Duration          *int64      `json:"duration"`
	Exclusions        []Exclusion `json:"exclusions"`
	RawExclusions     string      `json:"rawexclusions"`
}

type Target

type Target struct {
	Name             string `json:"name"`
	Path             string `config:"type=string,required" json:"path"`
	IsAgent          bool   `json:"is_agent"`
	AgentVersion     string `json:"agent_version"`
	ConnectionStatus bool   `json:"connection_status"`
	Auth             string `config:"type=string" json:"auth"`
	TokenUsed        string `config:"key=token_used,type=string" json:"token_used"`
	DriveType        string `config:"key=drive_type,type=string" json:"drive_type"`
	DriveName        string `config:"key=drive_name,type=string" json:"drive_name"`
	DriveFS          string `config:"key=drive_fs,type=string" json:"drive_fs"`
	DriveTotalBytes  int    `config:"key=drive_total_bytes,type=int" json:"drive_total_bytes"`
	DriveUsedBytes   int    `config:"key=drive_used_bytes,type=int" json:"drive_used_bytes"`
	DriveFreeBytes   int    `config:"key=drive_free_bytes,type=int" json:"drive_free_bytes"`
	DriveTotal       string `config:"key=drive_total,type=string" json:"drive_total"`
	DriveUsed        string `config:"key=drive_used,type=string" json:"drive_used"`
	DriveFree        string `config:"key=drive_free,type=string" json:"drive_free"`
}

Jump to

Keyboard shortcuts

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