types

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 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 int64  `config:"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:"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:"type=string" json:"notification-mode"`
	Namespace        string      `config:"type=string" json:"ns"`
	NextRun          *int64      `json:"next-run"`
	LastRunUpid      string      `config:"type=string" json:"last-run-upid"`
	LastRunState     *string     `json:"last-run-state"`
	LastRunEndtime   *int64      `json:"last-run-endtime"`
	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:"type=string" json:"token_used"`
	DriveType        string `config:"type=string" json:"drive_type"`
	DriveName        string `config:"type=string" json:"drive_name"`
	DriveFS          string `config:"type=string" json:"drive_fs"`
	DriveTotalBytes  int    `config:"type=int" json:"drive_total_bytes"`
	DriveUsedBytes   int    `config:"type=int" json:"drive_used_bytes"`
	DriveFreeBytes   int    `config:"type=int" json:"drive_free_bytes"`
	DriveTotal       string `config:"type=string" json:"drive_total"`
	DriveUsed        string `config:"type=string" json:"drive_used"`
	DriveFree        string `config:"type=string" json:"drive_free"`
}

Jump to

Keyboard shortcuts

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