mongodb

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodehostColl

type CodehostColl struct {
	*mongo.Collection
	// contains filtered or unexported fields
}

func NewCodehostColl

func NewCodehostColl() *CodehostColl

func (*CodehostColl) AddProjectCodeHost

func (c *CodehostColl) AddProjectCodeHost(projectName string, iCodeHost *models.CodeHost) (*models.CodeHost, error)

func (*CodehostColl) AddSystemCodeHost

func (c *CodehostColl) AddSystemCodeHost(iCodeHost *models.CodeHost) (*models.CodeHost, error)

func (*CodehostColl) AvailableCodeHost

func (c *CodehostColl) AvailableCodeHost(projectName string) ([]*models.CodeHost, error)

func (*CodehostColl) CodeHostList

func (c *CodehostColl) CodeHostList() ([]*models.CodeHost, error)

func (*CodehostColl) DeleteProjectCodeHostByID

func (c *CodehostColl) DeleteProjectCodeHostByID(projectName string, ID int) error

func (*CodehostColl) DeleteSystemCodeHostByID

func (c *CodehostColl) DeleteSystemCodeHostByID(ID int) error

func (*CodehostColl) EnsureIndex

func (c *CodehostColl) EnsureIndex(ctx context.Context) error

func (*CodehostColl) GetCodeHostByID

func (c *CodehostColl) GetCodeHostByID(ID int, ignoreDelete bool) (*models.CodeHost, error)

Internal use only

func (*CodehostColl) GetCollectionName

func (c *CodehostColl) GetCollectionName() string

func (*CodehostColl) GetProjectCodeHostByAlias

func (c *CodehostColl) GetProjectCodeHostByAlias(projectName, alias string) (*models.CodeHost, error)

func (*CodehostColl) GetProjectCodeHostByID

func (c *CodehostColl) GetProjectCodeHostByID(ID int, projectName string, ignoreDelete bool) (*models.CodeHost, error)

func (*CodehostColl) GetSystemCodeHostByAlias

func (c *CodehostColl) GetSystemCodeHostByAlias(alias string) (*models.CodeHost, error)

func (*CodehostColl) GetSystemCodeHostByID

func (c *CodehostColl) GetSystemCodeHostByID(ID int, ignoreDelete bool) (*models.CodeHost, error)

func (*CodehostColl) List

func (c *CodehostColl) List(args *ListArgs) ([]*models.CodeHost, error)

func (*CodehostColl) ProjectCodeHostList

func (c *CodehostColl) ProjectCodeHostList() ([]*models.CodeHost, error)

func (*CodehostColl) SystemCodeHostList

func (c *CodehostColl) SystemCodeHostList() ([]*models.CodeHost, error)

func (*CodehostColl) UpdateCodeHost

func (c *CodehostColl) UpdateCodeHost(host *models.CodeHost) (*models.CodeHost, error)

func (*CodehostColl) UpdateCodeHostToken

func (c *CodehostColl) UpdateCodeHostToken(host *models.CodeHost) (*models.CodeHost, error)

func (*CodehostColl) UpdateProjectCodeHost

func (c *CodehostColl) UpdateProjectCodeHost(projectName string, host *models.CodeHost) (*models.CodeHost, error)

type ListArgs

type ListArgs struct {
	IntegrationLevel setting.IntegrationLevel
	Project          string
	Owner            string
	Address          string
	Source           string
}

Jump to

Keyboard shortcuts

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