repository

package
v1.7.4-temp Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project interface {
	Save(*spacedomain.Project) (spacedomain.Project, error)
	Delete(*domain.ResourceIndex) error
	Get(domain.Account, string) (spacedomain.Project, error)
	GetByName(domain.Account, domain.ResourceName) (spacedomain.Project, error)
	GetByRepoId(domain.Identity) (spacedomain.Project, error)
	GetSummary(domain.Account, string) (ProjectSummary, error)
	GetSummaryByName(domain.Account, domain.ResourceName) (domain.ResourceSummary, error)

	FindUserProjects([]repository.UserResourceListOption) ([]spacedomain.ProjectSummary, error)

	ListAndSortByUpdateTime(domain.Account, *repository.ResourceListOption) (UserProjectsInfo, error)
	ListAndSortByFirstLetter(domain.Account, *repository.ResourceListOption) (UserProjectsInfo, error)
	ListAndSortByDownloadCount(domain.Account, *repository.ResourceListOption) (UserProjectsInfo, error)

	ListGlobalAndSortByUpdateTime(*repository.GlobalResourceListOption) (UserProjectsInfo, error)
	ListGlobalAndSortByFirstLetter(*repository.GlobalResourceListOption) (UserProjectsInfo, error)
	ListGlobalAndSortByDownloadCount(*repository.GlobalResourceListOption) (UserProjectsInfo, error)

	Search(*repository.ResourceSearchOption) (repository.ResourceSearchResult, error)

	AddLike(*domain.ResourceIndex) error
	RemoveLike(*domain.ResourceIndex) error

	AddRelatedModel(*repository.RelatedResourceInfo) error
	RemoveRelatedModel(*repository.RelatedResourceInfo) error

	AddRelatedDataset(*repository.RelatedResourceInfo) error
	RemoveRelatedDataset(*repository.RelatedResourceInfo) error

	UpdateProperty(*ProjectPropertyUpdateInfo) error

	IncreaseFork(*domain.ResourceIndex) error
	IncreaseDownload(*domain.ResourceIndex) error
}

type ProjectPropertyUpdateInfo

type ProjectPropertyUpdateInfo struct {
	repository.ResourceToUpdate

	Property spacedomain.ProjectModifiableProperty
}

type ProjectSummary

type ProjectSummary struct {
	domain.ResourceSummary
	Tags []string
}

type UserProjectsInfo

type UserProjectsInfo struct {
	Projects []spacedomain.ProjectSummary
	Total    int
}

Jump to

Keyboard shortcuts

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