Documentation ¶
Index ¶
- func GenerateName(name string) string
- func SetAdd(values []string, value string) []string
- func SetContains[T comparable](values []T, value T) bool
- func SetRemove(values []string, value string) []string
- func SliceDiff(old []string, new []string) (toDelete []string, toAdd []string)
- func SliceIn(slice []string, value string) bool
- func TopNIndices(arr []float32, n int) []int32
- type ObjectBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateName ¶
func SetContains ¶
func SetContains[T comparable](values []T, value T) bool
func SliceDiff ¶
toDelete includes string in old but not in new, toAdd includes string in new but not in old.
func TopNIndices ¶
Get the top-n indices from the arr.
Types ¶
type ObjectBody ¶
type ObjectBody struct { Path string `json:"path"` Type string `json:"type"` Oid string `json:"oid"` Size int64 `json:"size"` }
func ListRepoObjects ¶
func ListRepoObjects(repoID string, revision string) (bodies []*ObjectBody, err error)
TODO: support modelScope as well.
Click to show internal directories.
Click to hide internal directories.