service

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

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, wuc *biz.WorkflowUseCase, integrations sdk.AvailableExtensions, opts ...NewOpt) *IntegrationsService

func (*IntegrationsService) Deregister added in v0.11.1

func (*IntegrationsService) ListAttachments

func (*IntegrationsService) ListAvailable added in v0.11.1

func (*IntegrationsService) Register added in v0.11.1

type NewAttestationServiceOpts

type NewAttestationServiceOpts struct {
	WorkflowRunUC      *biz.WorkflowRunUseCase
	WorkflowUC         *biz.WorkflowUseCase
	WorkflowContractUC *biz.WorkflowContractUseCase
	OCIUC              *biz.OCIRepositoryUseCase
	CredsReader        credentials.Reader
	IntegrationUseCase *biz.IntegrationUseCase
	CasCredsUseCase    *biz.CASCredentialsUseCase
	FanoutDispatcher   *dispatcher.FanOutDispatcher
	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
	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, casClient *biz.CASClientUseCase) *StatusService

func (*StatusService) Infoz

func (*StatusService) Statusz

Only on readiness probes we check this service external dependencies

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