common

package
v0.0.0-...-0c3f707 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToModel

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

Jump to

Keyboard shortcuts

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