client

package
v0.0.0-...-54c06d6 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMigrationTimeout = 5 * time.Minute
	DefaultRecallTimeout    = 15 * time.Minute
	DefaultRequestTimeout   = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchivalClient

type ArchivalClient struct {
	// contains filtered or unexported fields
}

func NewArchivalClient

func NewArchivalClient(addr string) (*ArchivalClient, error)

func (*ArchivalClient) GetAsyncStatus

func (f *ArchivalClient) GetAsyncStatus(reqNumber int64) (*AsyncStatus, error)

func (*ArchivalClient) GetFileInfo

func (f *ArchivalClient) GetFileInfo(fileName string) (*FileInfo, error)

func (*ArchivalClient) GetMediaInfo

func (f *ArchivalClient) GetMediaInfo(tapeName string) (*TapeInfo, error)

func (*ArchivalClient) GetPoolInfo

func (f *ArchivalClient) GetPoolInfo(name string) (*Pool, error)

func (*ArchivalClient) GetPoolsInfo

func (f *ArchivalClient) GetPoolsInfo() ([]*Pool, error)

func (*ArchivalClient) Migrate

func (f *ArchivalClient) Migrate(file string, poolName string) (bool, error)

func (*ArchivalClient) MigrateAsync

func (f *ArchivalClient) MigrateAsync(file string, poolName string) (int64, error)

func (*ArchivalClient) Recall

func (f *ArchivalClient) Recall(file string, resident bool) (bool, error)

func (*ArchivalClient) RecallAsync

func (f *ArchivalClient) RecallAsync(file string, resident bool) (int64, error)

func (*ArchivalClient) Retrieve

func (f *ArchivalClient) Retrieve() error

type AsyncStatus

type AsyncStatus struct {
	ReqNumber   int64
	Success     bool
	Done        bool
	Resident    int64
	Transferred int64
	Premigrated int64
	Migrated    int64
	Failed      int64
}

type FileInfo

type FileInfo struct {
	MigState          string
	FileName          string
	Size              uint64
	Blocks            uint64
	FilesystemUidHigh uint64
	FilesystemUidLow  uint64
	InodeGeneration   uint32
	InodeNumber       uint64
	TapeId            string
	StartBlock        uint64
}

type Pool

type Pool struct {
	PoolName    string
	Total       uint64
	Free        uint64
	Reclaimable uint64
	NumberTapes uint64
}

type TapeInfo

type TapeInfo struct {
	Id             string
	Slot           uint64
	TotalCapacity  uint64
	RemainCapacity uint64
	Reclaimable    uint64
	Status         string
	Inprogress     uint64
	Pool           string
	State          string
}

Jump to

Keyboard shortcuts

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