service

package
v0.8.95 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 36 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AuthCallbackPath = "/auth/callback"
View Source
const AuthLoginPath = "/auth/login"

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type AttestationService

type AttestationService struct {
	cpAPI.UnimplementedAttestationServiceServer
	// contains filtered or unexported fields
}

func NewAttestationService

func NewAttestationService(opts *NewAttestationServiceOpts) *AttestationService

func (*AttestationService) GetUploadCreds

There is another endpoint to get credentials via casCredentialsService.Get This one is kept since it leverages robot-accounts in the context of a workflow

type AuthService

type AuthService struct {
	pb.UnimplementedAuthServiceServer

	AuthURLs *AuthURLs
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(userUC *biz.UserUseCase, orgUC *biz.OrganizationUseCase, mUC *biz.MembershipUseCase, authConfig *conf.Auth, serverConfig *conf.Server, opts ...NewOpt) (*AuthService, error)

func (*AuthService) DeleteAccount

DeleteAccount deletes an account

func (*AuthService) RegisterCallbackHandler

func (svc *AuthService) RegisterCallbackHandler() http.Handler

func (*AuthService) RegisterLoginHandler

func (svc *AuthService) RegisterLoginHandler() http.Handler

type AuthURLs

type AuthURLs struct {
	Login string
	// contains filtered or unexported fields
}

type CASCredentialsService

type CASCredentialsService struct {
	pb.UnimplementedCASCredentialsServiceServer
	// contains filtered or unexported fields
}

func NewCASCredentialsService

func NewCASCredentialsService(casUC *biz.CASCredentialsUseCase, ociUC *biz.OCIRepositoryUseCase, opts ...NewOpt) *CASCredentialsService

func (*CASCredentialsService) Get

Get will generate temporary credentials to be used against the CAS service for the current organization

type ContextService

type ContextService struct {
	pb.UnimplementedContextServiceServer
	// contains filtered or unexported fields
}

func NewContextService

func NewContextService(repoUC *biz.OCIRepositoryUseCase, opts ...NewOpt) *ContextService

type IntegrationsService

type IntegrationsService struct {
	pb.UnimplementedIntegrationsServiceServer
	// contains filtered or unexported fields
}

func NewIntegrationsService

func NewIntegrationsService(uc *biz.IntegrationUseCase, deptrackUC *deptrack.Integration, wuc *biz.WorkflowUseCase, opts ...NewOpt) *IntegrationsService

func (*IntegrationsService) AddDependencyTrack

func (*IntegrationsService) ListAttachments

type NewAttestationServiceOpts

type NewAttestationServiceOpts struct {
	WorkflowRunUC      *biz.WorkflowRunUseCase
	WorkflowUC         *biz.WorkflowUseCase
	WorkflowContractUC *biz.WorkflowContractUseCase
	OCIUC              *biz.OCIRepositoryUseCase
	AttestationUC      *biz.AttestationUseCase
	CredsReader        credentials.Reader
	IntegrationUseCase *biz.IntegrationUseCase
	CasCredsUseCase    *biz.CASCredentialsUseCase
	DepTrackUseCase    *dependencytrack.Integration
	Opts               []NewOpt
}

type NewOpt

type NewOpt func(s *service)

func WithLogger

func WithLogger(logger log.Logger) NewOpt

type NewWorkflowRunServiceOpts

type NewWorkflowRunServiceOpts struct {
	WorkflowRunUC      *biz.WorkflowRunUseCase
	WorkflowUC         *biz.WorkflowUseCase
	AttestationUC      *biz.AttestationUseCase
	WorkflowContractUC *biz.WorkflowContractUseCase
	CredsReader        credentials.Reader
	Opts               []NewOpt
}

type OCIRepositoryService

type OCIRepositoryService struct {
	pb.UnimplementedOCIRepositoryServiceServer
	// contains filtered or unexported fields
}

func NewOCIRepositoryService

func NewOCIRepositoryService(uc *biz.OCIRepositoryUseCase, opts ...NewOpt) *OCIRepositoryService

type OrgMetricsService

type OrgMetricsService struct {
	pb.UnimplementedOrgMetricsServiceServer
	// contains filtered or unexported fields
}

func NewOrgMetricsService

func NewOrgMetricsService(uc *biz.OrgMetricsUseCase, opts ...NewOpt) *OrgMetricsService

func (*OrgMetricsService) TopWorkflowsByRunsCount

type OrganizationService

type OrganizationService struct {
	pb.UnimplementedOrganizationServiceServer
	// contains filtered or unexported fields
}

func NewOrganizationService

func NewOrganizationService(uc *biz.MembershipUseCase, opts ...NewOpt) *OrganizationService

func (*OrganizationService) SetCurrentMembership

type RobotAccountService

type RobotAccountService struct {
	pb.UnimplementedRobotAccountServiceServer
	// contains filtered or unexported fields
}

func NewRobotAccountService

func NewRobotAccountService(uc *biz.RobotAccountUseCase, opts ...NewOpt) *RobotAccountService

type StatusService

type StatusService struct {
	pb.UnimplementedStatusServiceServer
	// contains filtered or unexported fields
}

func NewStatusService

func NewStatusService(logingURL, version string) *StatusService

func (*StatusService) Infoz

func (*StatusService) Statusz

type WorkflowRunService

type WorkflowRunService struct {
	pb.UnimplementedWorkflowRunServiceServer
	// contains filtered or unexported fields
}

func NewWorkflowRunService

func NewWorkflowRunService(opts *NewWorkflowRunServiceOpts) *WorkflowRunService

type WorkflowService

type WorkflowService struct {
	pb.UnimplementedWorkflowServiceServer
	// contains filtered or unexported fields
}

func NewWorkflowService

func NewWorkflowService(uc *biz.WorkflowUseCase, opts ...NewOpt) *WorkflowService

Jump to

Keyboard shortcuts

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