cmd

package
v0.0.0-...-8b27293 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0, Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug bool
)
View Source
var (
	Nextmarker = true
)

listPrefixCmd represents the listPrefix command

Functions

func ContentToJson

func ContentToJson(contents []byte) string

transform content returned by the bucketd API into JSON string

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetNewKeys

func GetNewKeys(prefix string, marker string, maxKey int)

func GetUsermd

func GetUsermd(req datatype.ListObjRequest, result *s3.ListObjectsOutput, wg sync.WaitGroup)

func ListCommonPrefix

func ListCommonPrefix(cp []interface{})

func ParseLog

func ParseLog(logFile string, maxKey int, bucket string)

func ToS3Inc

func ToS3Inc(logFile string, maxKey int, bucket string, svc *s3.S3)

Types

type CCidx

type CCidx struct {
	CC  string
	Idx string
}

type Loaded

type Loaded struct {
	LoadDate string `json:"loadDate""`
	PubDate  string `json:pubdate""`
}

type Request

type Request struct {
	Svc    *s3.S3
	Bucket string
	Key    string
}

type Response

type Response struct {
	Status  int
	Content string
	Usermd  string
	Err     error
}

func StatObjectLevelDB

func StatObjectLevelDB(req Request) Response

to be moved to api later

api.StatObjectLevelDB

func Stat_3b

func Stat_3b(key string) Response

type S3Oper

type S3Oper struct {
	Oper   string
	Bucket string
	Key    string
	Value  string
}

type UserMd

type UserMd struct {
	DocID      string `json:"docId"`
	PubDate    string `json:"pubDate"`
	SubPartFP  string `json:"subPartFP"`
	TotalPages string `json:"totalPages"`
}

Jump to

Keyboard shortcuts

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