pkg

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TIMEOUT = 60 * time.Minute
)

Variables

View Source
var ImageCMDOptions = &imageCMDOptions{}

Options for pvsadm image command

View Source
var Options = &options{}

Functions

func IsPurgeable

func IsPurgeable(candidate time.Time, before time.Duration, since time.Duration) bool

IsPurgeable is a function decides the candidate is really qualifies to be purged Condition:

  • before and since are both
  • If no before and since set then return true
  • If both before and since set then return false

Types

type Source added in v0.1.3

type Source struct {
	Bucket       string `yaml:"bucket"`
	Cos          string `yaml:"cos"`
	Object       string `yaml:"object"`
	StorageClass string `yaml:"storageClass"`
	Region       string `yaml:"region"`
}

Source Specifications

type Spec added in v0.1.3

type Spec struct {
	Source `yaml:"source"`
	Target []TargetItem `yaml:"target"`
}

Specifications

type TargetItem added in v0.1.3

type TargetItem struct {
	Bucket       string `yaml:"bucket"`
	StorageClass string `yaml:"storageClass"`
	Region       string `yaml:"region"`
}

TargetItem Specifications

Jump to

Keyboard shortcuts

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