Help us shape the future of Go! Take the 2026 Go Developer Survey

org

package
v0.18.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2025 l3montree UG (haftungsbeschraenkt). SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchMembersOfOrganization added in v0.5.1

func FetchMembersOfOrganization(ctx core.Context) ([]core.User, error)

func NewHTTPController added in v0.17.0

func NewHTTPController(repository core.OrganizationRepository, orgService core.OrgService, rbacProvider core.RBACProvider, projectService core.ProjectService, invitationRepository core.InvitationRepository) *httpController

func NewService added in v0.17.0

func NewService(organizationRepository core.OrganizationRepository, rbacProvider core.RBACProvider) *orgService

Types

type OrgDTO added in v0.5.14

type OrgDTO struct {
	models.Model
	Avatar                 *string          `json:"avatar,omitempty"`
	Name                   string           `json:"name" gorm:"type:text"`
	ContactPhoneNumber     *string          `json:"contactPhoneNumber" gorm:"type:text"`
	NumberOfEmployees      *int             `json:"numberOfEmployees"`
	Country                *string          `json:"country" gorm:"type:text"`
	Industry               *string          `json:"industry" gorm:"type:text"`
	CriticalInfrastructure bool             `json:"criticalInfrastructure"`
	ISO27001               bool             `json:"iso27001"`
	NIST                   bool             `json:"nist"`
	Grundschutz            bool             `json:"grundschutz"`
	Projects               []models.Project `json:"projects" gorm:"foreignKey:OrganizationID;"`
	Slug                   string           `json:"slug" gorm:"type:text;unique;not null;index"`
	Description            string           `json:"description" gorm:"type:text"`

	GithubAppInstallations []models.GithubAppInstallation `json:"githubAppInstallations" gorm:"foreignKey:OrgID;"`

	GitLabIntegrations []common.GitlabIntegrationDTO `json:"gitLabIntegrations" gorm:"foreignKey:OrgID;"`

	JiraIntegrations []common.JiraIntegrationDTO `json:"jiraIntegrations" gorm:"foreignKey:OrgID;"`

	SharesVulnInformation bool                           `json:"sharesVulnInformation"`
	IsPublic              bool                           `json:"isPublic" gorm:"default:false;"`
	Webhooks              []common.WebhookIntegrationDTO `json:"webhooks" gorm:"foreignKey:OrgID;"`

	ConfigFiles map[string]any `json:"configFiles"`

	Language                 string  `json:"language"`
	ExternalEntityProviderID *string `json:"externalEntityProviderId" gorm:"type:text"`
}

func FromModel added in v0.17.0

func FromModel(org models.Org) OrgDTO

Jump to

Keyboard shortcuts

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