stat

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright ©️ Ant Group. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Az

func Az(ctx context.Context, repoPath string, limit int64, fullPath bool) error

func Stat

func Stat(ctx context.Context, o *StatOptions) error

Types

type Item added in v0.20.0

type Item struct {
	Path  string
	Total int64
	Count int
}

type Items added in v0.20.0

type Items []Item

Exports support sort

func (Items) Len added in v0.20.0

func (m Items) Len() int

Len len exports

func (Items) Less added in v0.20.0

func (m Items) Less(i, j int) bool

Less less

func (Items) Swap added in v0.20.0

func (m Items) Swap(i, j int)

Swap function

type Printer added in v0.20.0

type Printer func(string, string, int64)

type SizeExecutor added in v0.20.0

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

func NewSizeExecutor added in v0.20.0

func NewSizeExecutor(size int64, fullPath bool) *SizeExecutor

func (*SizeExecutor) Match added in v0.20.0

func (e *SizeExecutor) Match(entry *gitobj.TreeEntry, absPath string) bool

BLOB filter

func (*SizeExecutor) Paths added in v0.20.0

func (e *SizeExecutor) Paths() []string

func (*SizeExecutor) Run added in v0.20.0

func (e *SizeExecutor) Run(ctx context.Context, repoPath string, extract bool) error

git cat-file --batch-check --batch-all-objects

type StatOptions

type StatOptions struct {
	RepoPath string
	Limit    int64
}

type Values

type Values map[string]string

Jump to

Keyboard shortcuts

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