auth

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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