audit

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUpdateProject         = errors.New("project update error")
	ErrUpdateProjectTemplate = errors.New("project template update error")
	ErrAduitStepRefused      = errors.New("当前模块不支持重新发布")
)

Functions

func MakeHandler

func MakeHandler(svc Service, logger log.Logger, repository repository.Repository) http.Handler

Types

type Service

type Service interface {
	AccessAudit(ctx context.Context, ns, name string) error
	AuditStep(ctx context.Context, ns, name, kind string) error
	Refused(ctx context.Context, ns, name string) error
}

func NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewService

func NewService(logger log.Logger,
	config *config.Config,
	jenkins jenkins.Jenkins,
	k8sClient kubernetes.K8sClient,
	amqpClient amqp.AmqpClient,
	store repository.Repository,
	hookQueueSvc hooks.ServiceHookQueue,
	buildSvc build.Service) Service

Jump to

Keyboard shortcuts

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