Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToModel ¶
func ToModel(in *GitLabOrganization) *models2.GitlabOrganization
ToModel converts to models.GitlabOrganization
func ToModels ¶
func ToModels(input []*GitLabOrganization) []*models2.GitlabOrganization
ToModels converts a list of GitLab organizations to a list of external GitLab organization response models
Types ¶
type GitLabAddOrganization ¶
type GitLabAddOrganization struct { OrganizationID string `json:"organization_id"` ExternalGroupID int64 `json:"external_gitlab_group_id"` DateCreated string `json:"date_created,omitempty"` DateModified string `json:"date_modified,omitempty"` OrganizationName string `json:"organization_name,omitempty"` OrganizationNameLower string `json:"organization_name_lower,omitempty"` OrganizationFullPath string `json:"organization_full_path,omitempty"` OrganizationURL string `json:"organization_url,omitempty"` OrganizationSFID string `json:"organization_sfid,omitempty"` ProjectSFID string `json:"project_sfid"` ParentProjectSFID string `json:"parent_project_sfid"` Enabled bool `json:"enabled"` AutoEnabled bool `json:"auto_enabled"` BranchProtectionEnabled bool `json:"branch_protection_enabled"` AutoEnabledClaGroupID string `json:"auto_enabled_cla_group_id,omitempty"` AuthInfo string `json:"auth_info"` AuthState string `json:"auth_state"` Version string `json:"version,omitempty"` }
GitLabAddOrganization is data model for GitLab add organization requests
func (*GitLabAddOrganization) ExternalGroupIDAsInt ¶
func (m *GitLabAddOrganization) ExternalGroupIDAsInt() int
ExternalGroupIDAsInt returns the external group ID as an integer value
type GitLabOrganization ¶
type GitLabOrganization struct { OrganizationID string `json:"organization_id"` ExternalGroupID int `json:"external_gitlab_group_id"` DateCreated string `json:"date_created,omitempty"` DateModified string `json:"date_modified,omitempty"` OrganizationName string `json:"organization_name,omitempty"` OrganizationNameLower string `json:"organization_name_lower,omitempty"` OrganizationFullPath string `json:"organization_full_path,omitempty"` OrganizationURL string `json:"organization_url,omitempty"` OrganizationSFID string `json:"organization_sfid,omitempty"` ProjectSFID string `json:"project_sfid"` Enabled bool `json:"enabled"` AutoEnabled bool `json:"auto_enabled"` BranchProtectionEnabled bool `json:"branch_protection_enabled"` AutoEnabledClaGroupID string `json:"auto_enabled_cla_group_id,omitempty"` AuthInfo string `json:"auth_info"` AuthState string `json:"auth_state"` Note string `json:"note,omitempty"` AuthExpirationTime int `json:"auth_expiry_time,omitempty"` Version string `json:"version,omitempty"` }
GitLabOrganization is data model for gitlab organizations
func ToCommonModel ¶
func ToCommonModel(in *models2.GitlabOrganization) *GitLabOrganization
ToCommonModel converts to common.GitLabOrganization
Click to show internal directories.
Click to hide internal directories.