Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶ added in v1.1.0
type AuthService interface { // Namespace ... Namespace(user models.User, namespaceID int64, auth enums.Auth) (bool, error) // NamespaceRole get user role in namespace NamespaceRole(user models.User, namespaceID int64) (*enums.NamespaceRole, error) // NamespacesRole ... NamespacesRole(user models.User, namespaceIDs []int64) (map[int64]*enums.NamespaceRole, error) // Repository ... Repository(user models.User, repositoryID int64, auth enums.Auth) (bool, error) // Tag ... Tag(user models.User, tagID int64, auth enums.Auth) (bool, error) // Artifact ... Artifact(user models.User, artifactID int64, auth enums.Auth) (bool, error) }
AuthService is the interface for the auth service
type AuthServiceFactory ¶ added in v1.1.0
type AuthServiceFactory interface {
New() AuthService
}
AuthServiceFactory is the interface that provides the artifact service factory methods.
func NewAuthServiceFactory ¶ added in v1.1.0
func NewAuthServiceFactory(injects ...inject) AuthServiceFactory
NewAuthServiceFactory creates a new auth service factory.
Click to show internal directories.
Click to hide internal directories.