mo_file_size

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiComplexityThreshold = 10_000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceSize

type NamespaceSize struct {
	NamespaceName     string     `json:"namespace_name"`
	NamespaceId       string     `json:"namespace_id"`
	NamespaceType     string     `json:"namespace_type"`
	OwnerTeamMemberId string     `json:"owner_team_member_id"`
	Path              string     `json:"path"`
	CountFile         int64      `json:"count_file"`
	CountFolder       int64      `json:"count_folder"`
	CountDescendant   int64      `json:"count_descendant"`
	Size              int64      `json:"size"`
	Depth             int        `json:"depth"`
	ModTimeEarliest   *time.Time `json:"mod_time_earliest"`
	ModTimeLatest     *time.Time `json:"mod_time_latest"`
	ApiComplexity     int64      `json:"api_complexity"`
}

type Size

type Size struct {
	Path            string `json:"path"`
	CountFile       int64  `json:"count_file"`
	CountFolder     int64  `json:"count_folder"`
	CountDescendant int64  `json:"count_descendant"`
	Size            int64  `json:"size"`
	ApiComplexity   int64  `json:"api_complexity"`
}

func (Size) Eval

func (z Size) Eval(entries []mo_file.Entry) Size

func (Size) Plus

func (z Size) Plus(path string, s Size) Size

Jump to

Keyboard shortcuts

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