application

package
v0.0.0-...-47d5d90 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ManagedLabelKey is the key of the application label for internally or externally managed applications.
	ManagedLabelKey = "managed"
	// ApplicationTypeLabelKey is the key of the application label for determining the type of the application.
	ApplicationTypeLabelKey = "applicationType"

	// TenantBusinessTypeNameLabelKey is a label key for tenant business type names
	TenantBusinessTypeNameLabelKey = "tenantBusinessTypeName"
	// TenantBusinessTypeCodeLabelKey is a label key for tenant business type codes
	TenantBusinessTypeCodeLabelKey = "tenantBusinessTypeCode"
)

Variables

This section is empty.

Functions

func NewAppWithTenantsConverter

func NewAppWithTenantsConverter(appConv ApplicationConverter, tenantConv TenantConverter) *appWithTenantsConverter

NewAppWithTenantsConverter creates new application with tenant converter

func NewConverter

func NewConverter(webhook WebhookConverter, bndlConverter BundleConverter) *converter

NewConverter missing godoc

func NewRepository

func NewRepository(conv EntityConverter) *pgRepository

NewRepository missing godoc

func NewService

func NewService(appNameNormalizer normalizer.Normalizator, appHideCfgProvider ApplicationHideCfgProvider, app ApplicationRepository, webhook WebhookRepository, runtimeRepo RuntimeRepository, labelRepo LabelRepository, intSystemRepo IntegrationSystemRepository, labelService LabelService, bndlService BundleService, uidService UIDService, formationService FormationService, selfRegisterDistinguishLabelKey string, ordWebhookMapping []ORDWebhookMapping) *service

NewService missing godoc

Types

type APIDefinitionConverter

type APIDefinitionConverter interface {
	ToGraphQL(in *model.APIDefinition, spec *model.Spec, bundleRef *model.BundleReference) (*graphql.APIDefinition, error)
}

APIDefinitionConverter missing godoc

type APIDefinitionService

type APIDefinitionService interface {
	GetForApplication(ctx context.Context, id string, appID string) (*model.APIDefinition, error)
}

APIDefinitionService missing godoc

type ApplicationConverter

type ApplicationConverter interface {
	ToGraphQL(in *model.Application) *graphql.Application
	MultipleToGraphQL(in []*model.Application) []*graphql.Application
	CreateInputFromGraphQL(ctx context.Context, in graphql.ApplicationRegisterInput) (model.ApplicationRegisterInput, error)
	UpdateInputFromGraphQL(in graphql.ApplicationUpdateInput) model.ApplicationUpdateInput
	GraphQLToModel(obj *graphql.Application, tenantID string) *model.Application
}

ApplicationConverter missing godoc

type ApplicationHideCfgProvider

type ApplicationHideCfgProvider interface {
	GetApplicationHideSelectors() (map[string][]string, error)
}

ApplicationHideCfgProvider missing godoc

type ApplicationRepository

type ApplicationRepository interface {
	Exists(ctx context.Context, tenant, id string) (bool, error)
	ExistsGlobal(ctx context.Context, id string) (bool, error)
	OwnerExists(ctx context.Context, tenant, id string) (bool, error)
	GetByID(ctx context.Context, tenant, id string) (*model.Application, error)
	GetByIDForUpdate(ctx context.Context, tenant, id string) (*model.Application, error)
	GetGlobalByID(ctx context.Context, id string) (*model.Application, error)
	GetBySystemNumber(ctx context.Context, tenant, systemNumber string) (*model.Application, error)
	ListByLocalTenantID(ctx context.Context, tenant, localTenantID string, appIDs []string, filters []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)
	GetByLocalTenantIDAndAppTemplateID(ctx context.Context, tenant, localTenantID, appTemplateID string) (*model.Application, error)
	GetByFilter(ctx context.Context, tenant string, filter []*labelfilter.LabelFilter) (*model.Application, error)
	ListByIDsAndFilters(ctx context.Context, tenant string, appIDs []string, filters []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)
	ListAll(ctx context.Context, tenant string) ([]*model.Application, error)
	ListAllByFilter(ctx context.Context, tenant string, filter []*labelfilter.LabelFilter) ([]*model.Application, error)
	ListGlobal(ctx context.Context, pageSize int, cursor string) (*model.ApplicationPage, error)
	ListAllByApplicationTemplateID(ctx context.Context, applicationTemplateID string) ([]*model.Application, error)
	ListByScenarios(ctx context.Context, tenantID uuid.UUID, scenarios []string, pageSize int, cursor string, hidingSelectors map[string][]string) (*model.ApplicationPage, error)
	ListByScenariosNoPaging(ctx context.Context, tenant string, scenarios []string) ([]*model.Application, error)
	ListListeningApplications(ctx context.Context, tenant string, whType model.WebhookType) ([]*model.Application, error)
	ListAllByIDs(ctx context.Context, tenantID string, ids []string) ([]*model.Application, error)
	ListByScenariosAndIDs(ctx context.Context, tenant string, scenarios []string, ids []string) ([]*model.Application, error)
	Create(ctx context.Context, tenant string, item *model.Application) error
	Update(ctx context.Context, tenant string, item *model.Application) error
	Upsert(ctx context.Context, tenant string, model *model.Application) (string, error)
	TrustedUpsert(ctx context.Context, tenant string, model *model.Application) (string, error)
	TechnicalUpdate(ctx context.Context, item *model.Application) error
	Delete(ctx context.Context, tenant, id string) error
	DeleteGlobal(ctx context.Context, id string) error
	ListAllGlobalByFilter(ctx context.Context, appIDs []string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationWithTenantsPage, error)
}

ApplicationRepository missing godoc

type ApplicationService

type ApplicationService interface {
	Create(ctx context.Context, in model.ApplicationRegisterInput) (string, error)
	Update(ctx context.Context, id string, in model.ApplicationUpdateInput) error
	Get(ctx context.Context, id string) (*model.Application, error)
	Delete(ctx context.Context, id string) error
	List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)
	GetBySystemNumber(ctx context.Context, systemNumber string) (*model.Application, error)
	ListByLocalTenantID(ctx context.Context, localTenantID string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)
	GetByLocalTenantIDAndAppTemplateID(ctx context.Context, localTenantID, appTemplateID string) (*model.Application, error)
	ListByRuntimeID(ctx context.Context, runtimeUUID uuid.UUID, pageSize int, cursor string) (*model.ApplicationPage, error)
	ListAll(ctx context.Context) ([]*model.Application, error)
	SetLabel(ctx context.Context, label *model.LabelInput) error
	GetLabel(ctx context.Context, applicationID string, key string) (*model.Label, error)
	ListLabels(ctx context.Context, applicationID string) (map[string]*model.Label, error)
	ListLabelsGlobal(ctx context.Context, applicationID string) (map[string]*model.Label, error)
	DeleteLabel(ctx context.Context, applicationID string, key string) error
	Unpair(ctx context.Context, id string) error
	Merge(ctx context.Context, destID, sourceID string) (*model.Application, error)
	ListAllGlobalByFilter(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationWithTenantsPage, error)
}

ApplicationService missing godoc

type ApplicationTemplateConverter

type ApplicationTemplateConverter interface {
	ToGraphQL(in *model.ApplicationTemplate) (*graphql.ApplicationTemplate, error)
}

ApplicationTemplateConverter converts between the graphql and model

type ApplicationTemplateService

type ApplicationTemplateService interface {
	GetByFilters(ctx context.Context, filter []*labelfilter.LabelFilter) (*model.ApplicationTemplate, error)
	Get(ctx context.Context, id string) (*model.ApplicationTemplate, error)
}

ApplicationTemplateService missing godoc

type ApplicationWithTenantsConverter

type ApplicationWithTenantsConverter interface {
	MultipleToGraphQL(in []*model.ApplicationWithTenants) []*graphql.ApplicationWithTenants
}

ApplicationWithTenantsConverter is responsible for converting between graphql and model objects

type AspectEventResourceService

type AspectEventResourceService interface {
	ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.AspectEventResource, map[string]int, error)
}

AspectEventResourceService is responsible for the service-layer Aspect Event Resource operations.

type AspectService

type AspectService interface {
	ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.Aspect, map[string]int, error)
}

AspectService is responsible for the service-layer Integration Dependency operations

type BundleConverter

type BundleConverter interface {
	ToGraphQL(in *model.Bundle) (*graphql.Bundle, error)
	MultipleToGraphQL(in []*model.Bundle) ([]*graphql.Bundle, error)
	MultipleCreateInputFromGraphQL(in []*graphql.BundleCreateInput) ([]*model.BundleCreateInput, error)
}

BundleConverter missing godoc

type BundleService

type BundleService interface {
	GetForApplication(ctx context.Context, id string, applicationID string) (*model.Bundle, error)
	ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.BundlePage, error)
	CreateMultiple(ctx context.Context, resourceType resource.Type, resourceID string, in []*model.BundleCreateInput) error
}

BundleService missing godoc

type Entity

type Entity struct {
	ApplicationTemplateID sql.NullString `db:"app_template_id"`
	Name                  string         `db:"name"`
	ProviderName          sql.NullString `db:"provider_name"`
	Description           sql.NullString `db:"description"`
	StatusCondition       string         `db:"status_condition"`
	StatusTimestamp       time.Time      `db:"status_timestamp"`
	HealthCheckURL        sql.NullString `db:"healthcheck_url"`
	IntegrationSystemID   sql.NullString `db:"integration_system_id"`
	BaseURL               sql.NullString `db:"base_url"`
	ApplicationNamespace  sql.NullString `db:"application_namespace"`
	SystemNumber          sql.NullString `db:"system_number"`
	LocalTenantID         sql.NullString `db:"local_tenant_id"`
	OrdLabels             sql.NullString `db:"labels"`
	CorrelationIDs        sql.NullString `db:"correlation_ids"`
	SystemStatus          sql.NullString `db:"system_status"`

	Tags                sql.NullString `db:"tags"`
	DocumentationLabels sql.NullString `db:"documentation_labels"`
	*repo.BaseEntity
}

Entity missing godoc

func (*Entity) DecorateWithTenantID

func (e *Entity) DecorateWithTenantID(tenant string) interface{}

DecorateWithTenantID decorates the entity with the given tenant ID.

type EntityCollection

type EntityCollection []Entity

EntityCollection missing godoc

func (EntityCollection) Len

func (a EntityCollection) Len() int

Len missing godoc

type EntityConverter

type EntityConverter interface {
	ToEntity(in *model.Application) (*Entity, error)
	FromEntity(entity *Entity) *model.Application
}

EntityConverter missing godoc

type EventDefinitionConverter

type EventDefinitionConverter interface {
	ToGraphQL(in *model.EventDefinition, spec *model.Spec, bundleRef *model.BundleReference) (*graphql.EventDefinition, error)
}

EventDefinitionConverter missing godoc

type EventDefinitionService

type EventDefinitionService interface {
	GetForApplication(ctx context.Context, id string, appID string) (*model.EventDefinition, error)
}

EventDefinitionService missing godoc

type EventingService

type EventingService interface {
	CleanupAfterUnregisteringApplication(ctx context.Context, appID uuid.UUID) (*model.ApplicationEventingConfiguration, error)
	GetForApplication(ctx context.Context, app model.Application) (*model.ApplicationEventingConfiguration, error)
}

EventingService missing godoc

type FormationService

type FormationService interface {
	ListFormationsForObject(ctx context.Context, objectID string) ([]*model.Formation, error)
	ListFormationsForObjectGlobal(ctx context.Context, objectID string) ([]*model.Formation, error)
	ListObjectIDsOfTypeForFormations(ctx context.Context, tenantID string, formationNames []string, objectType model.FormationAssignmentType) ([]string, error)
	ListObjectIDsOfTypeForFormationsGlobal(ctx context.Context, formationNames []string, objectType model.FormationAssignmentType) ([]string, error)
	UnassignFormation(ctx context.Context, tnt, objectID string, objectType graphql.FormationObjectType, formation model.Formation, ignoreASA bool) (*model.Formation, error)
}

FormationService missing godoc

type IntegrationDependencyConverter

type IntegrationDependencyConverter interface {
	ToGraphQL(in *model.IntegrationDependency, aspects []*model.Aspect, aspectEventResourcesByAspectID map[string][]*model.AspectEventResource) (*graphql.IntegrationDependency, error)
}

IntegrationDependencyConverter missing godoc

type IntegrationDependencyService

type IntegrationDependencyService interface {
	ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.IntegrationDependencyPage, error)
}

IntegrationDependencyService is responsible for the service-layer Integration Dependency operations

type IntegrationSystemRepository

type IntegrationSystemRepository interface {
	Exists(ctx context.Context, id string) (bool, error)
}

IntegrationSystemRepository missing godoc

type LabelRepository

type LabelRepository interface {
	GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID, key string) (*model.Label, error)
	ListForObject(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)
	ListForGlobalObject(ctx context.Context, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)
	ListGlobalByKey(ctx context.Context, key string) ([]*model.Label, error)
	ListGlobalByKeyAndObjects(ctx context.Context, objectType model.LabelableObject, objectIDs []string, key string) ([]*model.Label, error)
	Delete(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) error
	DeleteAll(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) error
}

LabelRepository missing godoc

type LabelService

type LabelService interface {
	UpsertMultipleLabels(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, labels map[string]interface{}) error
	UpsertLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) error
	GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID, key string) (*model.Label, error)
}

LabelService missing godoc

type OAuth20Service

type OAuth20Service interface {
	DeleteMultipleClientCredentials(ctx context.Context, auths []pkgmodel.SystemAuth) error
}

OAuth20Service missing godoc

type ORDWebhookMapping

type ORDWebhookMapping struct {
	Type                string   `json:"Type"`
	PpmsProductVersions []string `json:"PpmsProductVersions"`
	OrdURLPath          string   `json:"OrdUrlPath"`
	SubdomainSuffix     string   `json:"SubdomainSuffix"`
	ProxyURL            string   `json:"ProxyURL"`
	ProxyHeaderTemplate string   `json:"ProxyHeaderTemplate"`
}

ORDWebhookMapping represents a struct for ORD Webhook Mappings

func UnmarshalMappings

func UnmarshalMappings(mappingsConfig string) ([]ORDWebhookMapping, error)

UnmarshalMappings unmarshalls a string into []ORDWebhookMapping. This is done because of limitation of the envconfig library

type OneTimeTokenService

type OneTimeTokenService interface {
	IsTokenValid(systemAuth *pkgmodel.SystemAuth) (bool, error)
}

OneTimeTokenService missing godoc

type OperationConverter

type OperationConverter interface {
	MultipleToGraphQL(in []*model.Operation) ([]*graphql.Operation, error)
}

OperationConverter is responsible for converting between graphql and model objects

type OperationService

type OperationService interface {
	GetByDataAndType(ctx context.Context, data interface{}, opType model.OperationType) (*model.Operation, error)
}

OperationService is responsible for the service-layer Operation operations

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver missing godoc

func NewResolver

func NewResolver(transact persistence.Transactioner,
	svc ApplicationService,
	webhookSvc WebhookService,
	oAuth20Svc OAuth20Service,
	sysAuthSvc SystemAuthService,
	appConverter ApplicationConverter,
	appWithTenantsConverter ApplicationWithTenantsConverter,
	webhookConverter WebhookConverter,
	sysAuthConv SystemAuthConverter,
	eventingSvc EventingService,
	bndlSvc BundleService,
	bndlConverter BundleConverter,
	specSvc SpecService,
	apiDefinitionSvc APIDefinitionService,
	eventDefinitionSvc EventDefinitionService,
	integrationDependencySvc IntegrationDependencyService,
	integrationDependencyConv IntegrationDependencyConverter,
	aspectService AspectService,
	aspectEventResourceSvc AspectEventResourceService,
	apiDefinitionConverter APIDefinitionConverter,
	eventDefinitionConverter EventDefinitionConverter,
	appTemplateSvc ApplicationTemplateService,
	appTemplateConverter ApplicationTemplateConverter,
	operationService OperationService,
	operationConverter OperationConverter,
	selfRegisterDistinguishLabelKey, tokenPrefix string) *Resolver

NewResolver missing godoc

func (*Resolver) APIDefinition

func (r *Resolver) APIDefinition(ctx context.Context, obj *graphql.Application, id string) (*graphql.APIDefinition, error)

APIDefinition fetches an API and its spec for Application and APIDefinition with a given ID

func (*Resolver) Application

func (r *Resolver) Application(ctx context.Context, id string) (*graphql.Application, error)

Application missing godoc

func (*Resolver) ApplicationByLocalTenantIDAndAppTemplateID

func (r *Resolver) ApplicationByLocalTenantIDAndAppTemplateID(ctx context.Context, localTenantID, appTemplateID string) (*graphql.Application, error)

ApplicationByLocalTenantIDAndAppTemplateID returns an application retrieved by local tenant id and app template id

func (*Resolver) ApplicationBySystemNumber

func (r *Resolver) ApplicationBySystemNumber(ctx context.Context, systemNumber string) (*graphql.Application, error)

ApplicationBySystemNumber returns an application retrieved by systemNumber

func (*Resolver) ApplicationTemplate

func (r *Resolver) ApplicationTemplate(ctx context.Context, obj *graphql.Application) (*graphql.ApplicationTemplate, error)

ApplicationTemplate retrieves application template by given application

func (*Resolver) Applications

func (r *Resolver) Applications(ctx context.Context, filter []*graphql.LabelFilter, first *int, after *graphql.PageCursor) (*graphql.ApplicationPage, error)

Applications retrieves all tenant scoped applications. If this method is executed in a double authentication flow (i.e. consumerInfo.OnBehalfOf != nil) then it would return 0 or 1 tenant applications - it would return 1 if there exists a tenant application representing a tenant in an Application Provider and 0 if there is none such application.

func (*Resolver) ApplicationsByLocalTenantID

func (r *Resolver) ApplicationsByLocalTenantID(ctx context.Context, localTenantID string, filter []*graphql.LabelFilter, first *int, after *graphql.PageCursor) (*graphql.ApplicationPage, error)

ApplicationsByLocalTenantID returns applications retrieved by local tenant id and optionally - a filter

func (*Resolver) ApplicationsForRuntime

func (r *Resolver) ApplicationsForRuntime(ctx context.Context, runtimeID string, first *int, after *graphql.PageCursor) (*graphql.ApplicationPage, error)

ApplicationsForRuntime missing godoc

func (*Resolver) ApplicationsGlobal

func (r *Resolver) ApplicationsGlobal(ctx context.Context, filter []*graphql.LabelFilter, first *int, after *graphql.PageCursor) (*graphql.ApplicationWithTenantsPage, error)

ApplicationsGlobal retrieves a page of applications with their associated tenants filtered by the provided filters. Associated tenants are all tenants of type 'customer' or 'cost-object' that have access to the application.

func (*Resolver) Auths

Auths missing godoc

func (*Resolver) Bundle

func (r *Resolver) Bundle(ctx context.Context, obj *graphql.Application, id string) (*graphql.Bundle, error)

Bundle missing godoc

func (*Resolver) Bundles

func (r *Resolver) Bundles(ctx context.Context, obj *graphql.Application, first *int, after *graphql.PageCursor) (*graphql.BundlePage, error)

Bundles missing godoc

func (*Resolver) BundlesDataLoader

func (r *Resolver) BundlesDataLoader(keys []dataloader.ParamBundle) ([]*graphql.BundlePage, []error)

BundlesDataLoader missing godoc

func (*Resolver) DeleteApplicationLabel

func (r *Resolver) DeleteApplicationLabel(ctx context.Context, applicationID string, key string) (*graphql.Label, error)

DeleteApplicationLabel missing godoc

func (*Resolver) EventDefinition

func (r *Resolver) EventDefinition(ctx context.Context, obj *graphql.Application, id string) (*graphql.EventDefinition, error)

EventDefinition fetches an API and its spec for Application and EventDefinition with a given ID

func (*Resolver) EventingConfiguration

func (r *Resolver) EventingConfiguration(ctx context.Context, obj *graphql.Application) (*graphql.ApplicationEventingConfiguration, error)

EventingConfiguration missing godoc

func (*Resolver) IntegrationDependencies

func (r *Resolver) IntegrationDependencies(ctx context.Context, obj *graphql.Application, first *int, after *graphql.PageCursor) (*graphql.IntegrationDependencyPage, error)

IntegrationDependencies fetches Integration Dependencies for an Application

func (*Resolver) IntegrationDependenciesDataLoader

func (r *Resolver) IntegrationDependenciesDataLoader(keys []dataloader.ParamIntegrationDependency) ([]*graphql.IntegrationDependencyPage, []error)

IntegrationDependenciesDataLoader retrieves a page of Integration Dependencies for each Application ID in the keys argument

func (*Resolver) Labels

func (r *Resolver) Labels(ctx context.Context, obj *graphql.Application, key *string) (graphql.Labels, error)

Labels missing godoc

func (*Resolver) MergeApplications

func (r *Resolver) MergeApplications(ctx context.Context, destID string, sourceID string) (*graphql.Application, error)

MergeApplications merges properties from Source Application into Destination Application, provided that the Destination's Application does not have a value set for a given property. Then the Source Application is being deleted.

func (*Resolver) Operations

func (r *Resolver) Operations(ctx context.Context, obj *graphql.Application) ([]*graphql.Operation, error)

Operations retrieves all ORD operations associated with given application

func (*Resolver) RegisterApplication

func (r *Resolver) RegisterApplication(ctx context.Context, in graphql.ApplicationRegisterInput) (*graphql.Application, error)

RegisterApplication missing godoc

func (*Resolver) SetApplicationLabel

func (r *Resolver) SetApplicationLabel(ctx context.Context, applicationID string, key string, value interface{}) (*graphql.Label, error)

SetApplicationLabel missing godoc

func (*Resolver) UnpairApplication

func (r *Resolver) UnpairApplication(ctx context.Context, id string) (*graphql.Application, error)

UnpairApplication Sets the UpdatedAt property for the given application, deletes associated []model.SystemAuth, deletes the hydra oauth clients.

func (*Resolver) UnregisterApplication

func (r *Resolver) UnregisterApplication(ctx context.Context, id string) (*graphql.Application, error)

UnregisterApplication missing godoc

func (*Resolver) UpdateApplication

func (r *Resolver) UpdateApplication(ctx context.Context, id string, in graphql.ApplicationUpdateInput) (*graphql.Application, error)

UpdateApplication missing godoc

func (*Resolver) Webhooks

func (r *Resolver) Webhooks(ctx context.Context, obj *graphql.Application) ([]*graphql.Webhook, error)

Webhooks missing godoc TODO: Proper error handling

type RuntimeRepository

type RuntimeRepository interface {
	Exists(ctx context.Context, tenant, id string) (bool, error)
	ListByIDs(ctx context.Context, tenant string, ids []string) ([]*model.Runtime, error)
}

RuntimeRepository missing godoc

type RuntimeService

type RuntimeService interface {
	List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimePage, error)
	GetLabel(ctx context.Context, runtimeID string, key string) (*model.Label, error)
}

RuntimeService missing godoc

type ScenariosFilterSanitizer

type ScenariosFilterSanitizer interface {
	RemoveScenarioFilter(ctx context.Context, tenant string, filters []*labelfilter.LabelFilter, objectType model.FormationAssignmentType, isGlobal bool, listerFunc filtersanitizer.ObjectIDListerFunc, globalListerFunc filtersanitizer.ObjectIDListerFuncGlobal) (bool, []string, []*labelfilter.LabelFilter, error)
}

ScenariosFilterSanitizer missing godoc

type SpecService

type SpecService interface {
	GetByReferenceObjectID(ctx context.Context, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) (*model.Spec, error)
}

SpecService is responsible for the service-layer Specification operations.

type SystemAuthConverter

type SystemAuthConverter interface {
	ToGraphQL(in *pkgmodel.SystemAuth) (graphql.SystemAuth, error)
}

SystemAuthConverter missing godoc

type SystemAuthService

type SystemAuthService interface {
	ListForObject(ctx context.Context, objectType pkgmodel.SystemAuthReferenceObjectType, objectID string) ([]pkgmodel.SystemAuth, error)
	DeleteMultipleByIDForObject(ctx context.Context, systemAuths []pkgmodel.SystemAuth) error
}

SystemAuthService missing godoc

type TenantConverter

type TenantConverter interface {
	MultipleToGraphQL(in []*model.BusinessTenantMapping) []*graphql.Tenant
	FromEntity(in *tnt.Entity) *model.BusinessTenantMapping
}

TenantConverter is responsible for converting between graphql and model objects

type UIDService

type UIDService interface {
	Generate() string
}

UIDService missing godoc

type WebhookConverter

type WebhookConverter interface {
	ToGraphQL(in *model.Webhook) (*graphql.Webhook, error)
	MultipleToGraphQL(in []*model.Webhook) ([]*graphql.Webhook, error)
	InputFromGraphQL(in *graphql.WebhookInput) (*model.WebhookInput, error)
	MultipleInputFromGraphQL(in []*graphql.WebhookInput) ([]*model.WebhookInput, error)
}

WebhookConverter missing godoc

type WebhookRepository

type WebhookRepository interface {
	CreateMany(ctx context.Context, tenant string, items []*model.Webhook) error
	ListByReferenceObjectID(ctx context.Context, tenant, objID string, objType model.WebhookReferenceObjectType) ([]*model.Webhook, error)
}

WebhookRepository missing godoc

type WebhookService

type WebhookService interface {
	ListAllApplicationWebhooks(ctx context.Context, applicationTemplateID string) ([]*model.Webhook, error)
}

WebhookService missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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