Documentation ¶
Index ¶
- type CodehostColl
- func (c *CodehostColl) AddProjectCodeHost(projectName string, iCodeHost *models.CodeHost) (*models.CodeHost, error)
- func (c *CodehostColl) AddSystemCodeHost(iCodeHost *models.CodeHost) (*models.CodeHost, error)
- func (c *CodehostColl) AvailableCodeHost(projectName string) ([]*models.CodeHost, error)
- func (c *CodehostColl) CodeHostList() ([]*models.CodeHost, error)
- func (c *CodehostColl) DeleteProjectCodeHostByID(projectName string, ID int) error
- func (c *CodehostColl) DeleteSystemCodeHostByID(ID int) error
- func (c *CodehostColl) EnsureIndex(ctx context.Context) error
- func (c *CodehostColl) GetCodeHostByID(ID int, ignoreDelete bool) (*models.CodeHost, error)
- func (c *CodehostColl) GetCollectionName() string
- func (c *CodehostColl) GetProjectCodeHostByAlias(projectName, alias string) (*models.CodeHost, error)
- func (c *CodehostColl) GetProjectCodeHostByID(ID int, projectName string, ignoreDelete bool) (*models.CodeHost, error)
- func (c *CodehostColl) GetSystemCodeHostByAlias(alias string) (*models.CodeHost, error)
- func (c *CodehostColl) GetSystemCodeHostByID(ID int, ignoreDelete bool) (*models.CodeHost, error)
- func (c *CodehostColl) List(args *ListArgs) ([]*models.CodeHost, error)
- func (c *CodehostColl) ProjectCodeHostList() ([]*models.CodeHost, error)
- func (c *CodehostColl) SystemCodeHostList() ([]*models.CodeHost, error)
- func (c *CodehostColl) UpdateCodeHost(host *models.CodeHost) (*models.CodeHost, error)
- func (c *CodehostColl) UpdateCodeHostToken(host *models.CodeHost) (*models.CodeHost, error)
- func (c *CodehostColl) UpdateProjectCodeHost(projectName string, host *models.CodeHost) (*models.CodeHost, error)
- type ListArgs
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 (*CodehostColl) AddSystemCodeHost ¶
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 ¶
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 (*CodehostColl) GetSystemCodeHostByAlias ¶
func (c *CodehostColl) GetSystemCodeHostByAlias(alias string) (*models.CodeHost, error)
func (*CodehostColl) GetSystemCodeHostByID ¶
func (*CodehostColl) ProjectCodeHostList ¶
func (c *CodehostColl) ProjectCodeHostList() ([]*models.CodeHost, error)
func (*CodehostColl) SystemCodeHostList ¶
func (c *CodehostColl) SystemCodeHostList() ([]*models.CodeHost, error)
func (*CodehostColl) UpdateCodeHost ¶
func (*CodehostColl) UpdateCodeHostToken ¶
func (*CodehostColl) UpdateProjectCodeHost ¶
Click to show internal directories.
Click to hide internal directories.