Documentation ¶
Index ¶
- func AddMoreUserMeta(metad map[string]string, source string) map[string]string
- func BuildUserMeta(meta []byte) map[string]*string
- func BuildUsermd(usermd map[string]string) map[string]*string
- func DelStack(s Stack)
- func Ebc2asci(ebc []byte) []byte
- func Exist(path string) bool
- func GenAutoCompletionScript(rootcmd *cobra.Command, pathname string)
- func GetBucket(viper viper.Viper) int
- func GetBucketdUrl(viper viper.Viper) string
- func GetHomeDir() string
- func GetLevelDBUrl(viper viper.Viper) string
- func GetLogCombine(viper viper.Viper) bool
- func GetLogOutput(viper viper.Viper) string
- func GetNumberOfBucket(viper viper.Viper) int
- func GetPxiMeta(metad map[string]*string) (string, error)
- func GetRetryNumber(viper viper.Viper) int
- func GetTopology(viper viper.Viper) string
- func GetUserMeta(metad map[string]*string) (string, error)
- func GetVersionId(metad map[string]*string) (string, error)
- func GetWaitTime(viper viper.Viper) time.Duration
- func HashKey(key string, modulo int) int
- func InitConfig(config string, viper viper.Viper, rootcmd cobra.Command)
- func KeyToAscii(key string) int
- func ListFile(root string)
- func LumberPrefix(cmd *cobra.Command) time.Time
- func MakeDir(dir string)
- func ParseSindexdLog()
- func PrintBucketAcl(r *s3.GetBucketAclOutput)
- func PrintGrantee(grant []*s3.Grant)
- func PrintMetadata(metad map[string]*string)
- func PrintObjectAcl(r *s3.GetObjectAclOutput)
- func PrintPxiMeta(key string, metad map[string]*string)
- func PrintUserMeta(key string, metad map[string]*string)
- func PrintUsermd(key string, metad map[string]*string)
- func ProcS3Error(err error)
- func ReadBuffer(filename string) (*bytes.Buffer, error)
- func ReadDataDir(dir string) ([]os.FileInfo, error)
- func ReadDirectory(dirname string, filter string) ([]string, error)
- func ReadFile(filename string) ([]byte, error)
- func ReadLines(filename string) error
- func ReadObject(object io.Reader) (*bytes.Buffer, error)
- func ReadObjectv(object io.Reader, bufsize int) (*bytes.Buffer, error)
- func ReadUsermd(pathname string) (map[string]string, error)
- func Return(start time.Time)
- func Reverse(s string) string
- func SaveObject(result *s3.GetObjectOutput, pathname string) error
- func ScanAllLines(scanner *bufio.Scanner) ([]string, error)
- func ScanLines(scanner *bufio.Scanner, num int) ([]string, error)
- func Scanner(pathname string) (scanner *bufio.Scanner, err error)
- func SetCPU(cpu string) error
- func SetLogLevel(viper viper.Viper, loglevel int) int
- func StructToMap(i interface{}) map[string]interface{}
- func WriteFile(filename string, buf []byte, mode os.FileMode) error
- func WriteObj(b *bytes.Buffer, pathname string)
- func WriteUserMeta(metad map[string]*string, pathname string)
- func WriteUsermd(metad map[string]*string, pathname string)
- type Node
- type Rf
- type Stack
- type VBReader
- type VBRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMoreUserMeta ¶
func BuildUserMeta ¶
func GenAutoCompletionScript ¶
func GetBucketdUrl ¶
func GetLevelDBUrl ¶
func GetLogCombine ¶
func GetLogOutput ¶
func GetNumberOfBucket ¶
func GetRetryNumber ¶
func GetTopology ¶
func KeyToAscii ¶
func ParseSindexdLog ¶
func ParseSindexdLog()
func PrintBucketAcl ¶
func PrintBucketAcl(r *s3.GetBucketAclOutput)
func PrintGrantee ¶
func PrintMetadata ¶
func PrintObjectAcl ¶
func PrintObjectAcl(r *s3.GetObjectAclOutput)
func PrintPxiMeta ¶
func PrintUserMeta ¶
func PrintUsermd ¶
func ProcS3Error ¶
func ProcS3Error(err error)
func ReadDataDir ¶
return all data files of a directory
func SaveObject ¶
func SaveObject(result *s3.GetObjectOutput, pathname string) error
func StructToMap ¶
func StructToMap(i interface{}) map[string]interface{}
func WriteUserMeta ¶
func WriteUsermd ¶
Types ¶
type VBRecord ¶
type VBRecord struct { File *os.File // File -> File descriptor of the VB file Buffer *bytes.Buffer // in memory buffer Size int64 // Size of the file Current int64 // Current address of the record to read Previous int64 // Pointer to previous recod ( BDW,RDW,data) Stack Stack // size stack }
func NewVBRecord ¶
create a new VBtoRecord instance
func (*VBRecord) GetCurrent ¶
Return the location of the current record
func (*VBRecord) GetPrevious ¶
return the location of the previous record
func (*VBRecord) SetCurrent ¶
Set position of the current record to read
Click to show internal directories.
Click to hide internal directories.