repository

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3     = 1
	Alioos = 2
	Sftp   = 3
	Local  = 4
	Rest   = 5
	HwObs  = 6
	TxCos  = 7
)

Type

View Source
const (
	StatusNone = 1
	StatusRun  = 2
	StatusErr  = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ForgetPolicy

type ForgetPolicy struct {
	common.BaseModel `storm:"inline"`
	RepositoryId     int    `json:"repositoryId"`
	Path             string `json:"path"` // 路径
	Status           int    `json:"status"`
	/**
	类型
	last
	hourly
	daily
	weekly
	monthly
	yearly
	*/
	Type string `json:"type"`
	// 值
	Value int `json:"value"`
}

type Repository

type Repository struct {
	common.BaseModel `storm:"inline"`
	Name             string `json:"name"`
	Type             int    `json:"type"`
	Endpoint         string `json:"endPoint"`
	// AWS_DEFAULT_REGION
	Region string `json:"region"`
	Bucket string `json:"bucket"`
	// AWS_ACCESS_KEY_ID
	KeyId string `json:"keyId"`
	// AWS_SECRET_ACCESS_KEY
	Secret string `json:"secret"`
	// GOOGLE_PROJECT_ID
	ProjectID string `json:"projectId"`
	// AZURE_ACCOUNT_NAME
	AccountName string `json:"accountName"`
	// AZURE_ACCOUNT_KEY,B2_ACCOUNT_KEY
	AccountKey string `json:"accountKey"`
	// B2_ACCOUNT_ID
	AccountID string `json:"accountId"`
	// 密码
	Password          string `json:"password"`
	Status            int    `json:"status"`
	Errmsg            string `json:"errmsg"`
	RepositoryVersion string `json:"repositoryVersion"`
	Compression       int    `json:"compression"` //压缩模式auto:0、off:1、max:2
	PackSize          int    `json:"packSize"`
}

Repository 参考restic

Jump to

Keyboard shortcuts

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