Versions in this module Expand all Collapse all v0 v0.0.9 Jul 3, 2024 v0.0.8 May 10, 2024 v0.0.7 Jan 18, 2024 v0.0.6 Jan 15, 2024 v0.0.5 Dec 17, 2023 v0.0.4 Apr 27, 2023 v0.0.3 Nov 19, 2022 v0.0.2 Oct 24, 2022 v0.0.1 Oct 24, 2022 Changes in this version + var CreateConfig = &request.Config + var DeleteConfig = &request.Config + var GetByNameConfig = &request.Config + var GetConfig = &request.Config + var ListConfig = &request.Config + var SearchConfig = &request.Config + func Delete(client client.Client, id int64) error + type CreateRequest struct + DefaultBranch string + Description string + InitializeWithREADME bool + Name string + NamespaceID string + type CreateResponse = Repository + func Create(client client.Client, req *CreateRequest) (*CreateResponse, error) + type DeleteResponse struct + type GetByNameResponse = Repository + func GetByName(client client.Client, name string) (*GetByNameResponse, error) + type GetResponse = Repository + func Get(client client.Client, id int64) (*GetResponse, error) + type ListRequest struct + GroupID int64 + type ListResponse = []Repository + func List(client client.Client, cfg *ListRequest) (*ListResponse, error) + type Namespace struct + AvatarURL string + ID int64 + Kind string + Name string + ParentID int64 + Path string + WebURL string + type Repository struct + CreatedAt time.Time + DefaultBranch string + Description string + HTTPURL string + ID int64 + LastActivityAt time.Time + Name string + Namespace Namespace + Path string + READMEURL string + SSHURL string + Visibility string + WebURL string + func (r *Repository) Create(req *CreateRequest) (*Repository, error) + func (r *Repository) Delete(projectID int64) error + func (r *Repository) Get(projectID int64) (*Repository, error) + func (r *Repository) List(cfg *ListRequest) (*[]Repository, error) + type RepositoryImpl interface + Create func(req *CreateRequest) (*Repository, error) + Delete func(projectID int64) error + Get func(projectID int64) (*Repository, error) + List func(cfg *ListRequest) (*[]Repository, error) + func New(client client.Client) RepositoryImpl + type SearchRequest struct + Keyword string + type SearchResponse = []Repository + func Search(client client.Client, cfg *SearchRequest) (*SearchResponse, error)