affiliation

package
v0.0.0-...-16f8954 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(api *operations.DevAnalyticsAffiliationAPI, service Service)

Configure setups handlers on api with Service

Types

type Service

type Service interface {
	shared.ServiceInterface
	// External methods
	GetMatchingBlacklist(context.Context, *affiliation.GetMatchingBlacklistParams) (*models.GetMatchingBlacklistOutput, error)
	PostMatchingBlacklist(context.Context, *affiliation.PostMatchingBlacklistParams) (*models.MatchingBlacklistOutput, error)
	DeleteMatchingBlacklist(context.Context, *affiliation.DeleteMatchingBlacklistParams) (*models.TextStatusOutput, error)
	GetListOrganizations(context.Context, *affiliation.GetListOrganizationsParams) (*models.GetListOrganizationsServiceOutput, error)
	GetListOrganizationsDomains(context.Context, *affiliation.GetListOrganizationsDomainsParams) (*models.GetListOrganizationsDomainsOutput, error)
	GetFindOrganizationByID(context.Context, *affiliation.GetFindOrganizationByIDParams) (*models.OrganizationDataOutput, error)
	GetFindOrganizationByName(context.Context, *affiliation.GetFindOrganizationByNameParams) (*models.OrganizationDataOutput, error)
	PostAddOrganization(context.Context, *affiliation.PostAddOrganizationParams) (*models.OrganizationDataOutput, error)
	PutEditOrganization(context.Context, *affiliation.PutEditOrganizationParams) (*models.OrganizationDataOutput, error)
	DeleteOrganization(context.Context, *affiliation.DeleteOrganizationParams) (*models.TextStatusOutput, error)
	PutOrgDomain(context.Context, *affiliation.PutOrgDomainParams) (*models.PutOrgDomainOutput, error)
	DeleteOrgDomain(context.Context, *affiliation.DeleteOrgDomainParams) (*models.TextStatusOutput, error)
	GetListProfiles(context.Context, *affiliation.GetListProfilesParams) (*models.GetListProfilesOutput, error)
	GetIdentity(context.Context, *affiliation.GetIdentityParams) (*models.IdentityDataOutput, error)
	GetIdentityByUser(ctx context.Context, params *affiliation.GetIdentityByUserParams) (*models.IdentityDataOutput, error)
	GetProfile(context.Context, *affiliation.GetProfileParams) (*models.UniqueIdentityNestedDataOutput, error)
	GetProfileByUsername(context.Context, *affiliation.GetProfileByUsernameParams) (*models.UniqueIdentitiesNestedDataOutput, error)
	GetProfileNested(context.Context, *affiliation.GetProfileNestedParams) (*models.ProfileNestedRolls, error)
	PutEditProfile(context.Context, *affiliation.PutEditProfileParams) (*models.UniqueIdentityNestedDataOutput, error)
	DeleteProfile(context.Context, *affiliation.DeleteProfileParams) (*models.TextStatusOutput, error)
	PostUnarchiveProfile(context.Context, *affiliation.PostUnarchiveProfileParams) (*models.UniqueIdentityNestedDataOutput, error)
	PostAddUniqueIdentity(context.Context, *affiliation.PostAddUniqueIdentityParams) (*models.UniqueIdentityNestedDataOutput, error)
	PostAddIdentity(context.Context, *affiliation.PostAddIdentityParams) (*models.UniqueIdentityNestedDataOutput, error)
	PostAddIdentities(context.Context, *affiliation.PostAddIdentitiesParams) (*models.TextStatusOutput, error)
	DeleteIdentity(context.Context, *affiliation.DeleteIdentityParams) (*models.TextStatusOutput, error)
	GetProfileEnrollments(context.Context, *affiliation.GetProfileEnrollmentsParams) (*models.GetProfileEnrollmentsDataOutput, error)
	GetAffiliationSingle(context.Context, *affiliation.GetAffiliationSingleParams) (*models.OrgOutput, error)
	GetAffiliationMultiple(context.Context, *affiliation.GetAffiliationMultipleParams) (*models.OrgsOutput, error)
	GetAffiliationBoth(context.Context, *affiliation.GetAffiliationBothParams) (*models.OrgAndOrgsOutput, error)
	PostAddEnrollment(context.Context, *affiliation.PostAddEnrollmentParams) (*models.UniqueIdentityNestedDataOutputNoDates, error)
	PutEditEnrollment(context.Context, *affiliation.PutEditEnrollmentParams) (*models.UniqueIdentityNestedDataOutput, error)
	PutEditEnrollmentByID(context.Context, *affiliation.PutEditEnrollmentByIDParams) (*models.UniqueIdentityNestedDataOutput, error)
	DeleteEnrollments(context.Context, *affiliation.DeleteEnrollmentsParams) (*models.UniqueIdentityNestedDataOutput, error)
	DeleteEnrollment(context.Context, *affiliation.DeleteEnrollmentParams) (*models.UniqueIdentityNestedDataOutput, error)
	PutMergeEnrollments(context.Context, *affiliation.PutMergeEnrollmentsParams) (*models.UniqueIdentityNestedDataOutput, error)
	PutMergeUniqueIdentities(context.Context, *affiliation.PutMergeUniqueIdentitiesParams) (*models.UniqueIdentityNestedDataOutput, error)
	PutMoveIdentity(context.Context, *affiliation.PutMoveIdentityParams) (*models.UniqueIdentityNestedDataOutput, error)
	GetUnaffiliated(context.Context, *affiliation.GetUnaffiliatedParams) (*models.GetUnaffiliatedOutput, error)
	FilterDataSources([]string, []string) []string
	MakeDSInfo([]*models.DataSourceTypeFields, []string, []string) ([]*models.ConfiguredDataSourcesFields, string)
	TopContributorsParams(*affiliation.GetTopContributorsParams, *affiliation.GetTopContributorsCSVParams) (int64, int64, int64, int64, string, string, string, string, []string)
	GetTopContributors(context.Context, *affiliation.GetTopContributorsParams) (*models.TopContributorsFlatOutput, error)
	GetTopContributorsCSV(context.Context, *affiliation.GetTopContributorsCSVParams) (io.ReadCloser, error)
	GetAllAffiliations(context.Context, *affiliation.GetAllAffiliationsParams) (*models.AllArrayOutput, error)
	PostBulkUpdate(context.Context, *affiliation.PostBulkUpdateParams) (*models.TextStatusOutput, error)
	PutMergeAll(context.Context, *affiliation.PutMergeAllParams) (*models.TextStatusOutput, error)
	PutSyncSfProfiles(context.Context, *affiliation.PutSyncSfProfilesParams) (*models.TextStatusOutput, error)
	PutHideEmails(context.Context, *affiliation.PutHideEmailsParams) (*models.TextStatusOutput, error)
	PutCacheTopContributors(context.Context, *affiliation.PutCacheTopContributorsParams) (*models.TextStatusOutput, error)
	PutMapOrgNames(context.Context, *affiliation.PutMapOrgNamesParams) (*models.TextStatusOutput, error)
	PutDetAffRange(context.Context, *affiliation.PutDetAffRangeParams) (*models.TextStatusOutput, error)
	GetListProjects(context.Context, *affiliation.GetListProjectsParams) (*models.ListProjectsOutput, error)
	GetListSlugMappings(context.Context, *affiliation.GetListSlugMappingsParams) (*models.ListSlugMappings, error)
	GetSlugMapping(context.Context, *affiliation.GetSlugMappingParams) (*models.SlugMapping, error)
	PostAddSlugMapping(context.Context, *affiliation.PostAddSlugMappingParams) (*models.SlugMapping, error)
	DeleteSlugMapping(context.Context, *affiliation.DeleteSlugMappingParams) (*models.TextStatusOutput, error)
	PutEditSlugMapping(context.Context, *affiliation.PutEditSlugMappingParams) (*models.SlugMapping, error)
	ClearPrecacheRunning()
	SetServiceRequestID(requestID string)
	GetServiceRequestID() string

	IsProjectSkipped(string) bool
	SkipDisabledProjects(project string) string
	// contains filtered or unexported methods
}

Service - API interface

func New

func New(apiDB apidb.Service, shDBAPI, shDBGitdm shdb.Service, es elastic.Service, platformAPI platform.Service, userAPI usersvc.Service, esLog elastic.Service) Service

New is a simple helper function to create a service instance

Jump to

Keyboard shortcuts

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