Documentation ¶
Overview ¶
Package config provides types and functions to configure ishard executable.
- Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
Package config provides types and functions to configure ishard executable.
- Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BaseFileNamePattern = SampleKeyPattern{Regex: `.*/([^/]+)$`, CaptureGroup: "$1"} FullNamePattern = SampleKeyPattern{Regex: `^(.*)$`, CaptureGroup: "$1"} CollapseAllDirPattern = SampleKeyPattern{Regex: `/`, CaptureGroup: ""} )
Define some commonly used sample key patterns
View Source
var DefaultConfig = Config{ ClusterConfig: ClusterConfig{URL: "http://" + defaultClusterIPv4 + ":" + defaultProxyPort}, IshardConfig: IshardConfig{ ShardSize: ShardSize{Size: 102400}, Ext: ".tar", ShardTemplate: "shard-%d", Collapse: false, SampleKeyPattern: BaseFileNamePattern, MExtMgr: nil, }, SrcBck: cmn.Bck{Name: "src_bck", Provider: apc.AIS}, DstBck: cmn.Bck{Name: "dst_bck", Provider: apc.AIS}, Progress: false, DryRunFlag: DryRunFlag{IsSet: false}, SortFlag: SortFlag{IsSet: false}, }
Functions ¶
This section is empty.
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
URL string
}
type Config ¶
type Config struct { ClusterConfig IshardConfig DryRunFlag SortFlag EKMFlag SrcBck cmn.Bck SrcPrefix string DstBck cmn.Bck Progress bool }
type DryRunFlag ¶
func (*DryRunFlag) IsBoolFlag ¶
func (d *DryRunFlag) IsBoolFlag() bool
func (*DryRunFlag) Set ¶
func (d *DryRunFlag) Set(value string) error
func (*DryRunFlag) String ¶
func (d *DryRunFlag) String() string
type EKMFlag ¶
type EKMFlag struct { IsSet bool Path string JSONBytes []byte Ekm shard.ExternalKeyMap }
type IshardConfig ¶
type IshardConfig struct { ShardSize ShardSize Ext string ShardTemplate string SampleKeyPattern SampleKeyPattern MExtMgr *MissingExtManager Collapse bool }
type MissingExtManager ¶
type MissingExtManager struct { Name string EffectiveObjSize int64 // Action to take on the given Records, returns the potentially updated Records and any error encountered React func(*shard.Records) (*shard.Records, error) // contains filtered or unexported fields }
MissingExtManager contains the set of expected extensions for each sample, and corresponding reaction
func NewMissingExtManager ¶
func NewMissingExtManager(name string, sampleExts []string) (*MissingExtManager, error)
type SampleKeyPattern ¶
Click to show internal directories.
Click to hide internal directories.