MCPcopy Create free account
hub / github.com/OpenCSGs/csghub-server / NamespaceAndName

Method NamespaceAndName

common/types/collection.go:83–86  ·  view source on GitHub ↗

NamespaceAndName returns namespace and name by parsing repository path

()

Source from the content-addressed store, hash-verified

81
82// NamespaceAndName returns namespace and name by parsing repository path
83func (r CollectionRepository) NamespaceAndName() (namespace string, name string) {
84 fields := strings.Split(r.Path, "/")
85 return fields[0], fields[1]
86}
87
88type CollectionFilter struct {
89 Sort string

Callers 8

statusMethod · 0.45
HasEntryFileMethod · 0.45
GetCollectionMethod · 0.45
visiableToUserMethod · 0.45
AllowReadAccessRepoMethod · 0.45
getUserRepoPermissionMethod · 0.45
calcQualityScoreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected