auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Namespace ...
	Namespace(c echo.Context, namespaceID int64, auth enums.Auth) bool
	// Repository ...
	Repository(c echo.Context, repositoryID int64, auth enums.Auth) bool
	// Tag ...
	Tag(c echo.Context, tagID int64, auth enums.Auth) bool
	// Artifact ...
	Artifact(c echo.Context, artifactID int64, auth enums.Auth) bool
}

Service is the interface for the auth service

type ServiceFactory

type ServiceFactory interface {
	New() Service
}

ServiceFactory is the interface that provides the artifact service factory methods.

func NewServiceFactory

func NewServiceFactory(injects ...inject) ServiceFactory

NewServiceFactory creates a new artifact service factory.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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