repository

package
v0.0.0-...-8010d25 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRepositoryReq

type AddRepositoryReq struct {
	RepositoryType int32  `thrift:"repository_type,1" frugal:"1,default,i32" form:"repository_type,required" json:"repository_type,required"`
	RepositoryUrl  string `` /* 127-byte string literal not displayed */
	Branch         string `thrift:"branch,3" frugal:"3,default,string" form:"branch,required" json:"branch,required"`
	StoreType      int32  `thrift:"store_type,4" frugal:"4,default,i32" form:"store_type,required" json:"store_type,required"`
}

func NewAddRepositoryReq

func NewAddRepositoryReq() *AddRepositoryReq

func (*AddRepositoryReq) GetBranch

func (p *AddRepositoryReq) GetBranch() (v string)

func (*AddRepositoryReq) GetRepositoryType

func (p *AddRepositoryReq) GetRepositoryType() (v int32)

func (*AddRepositoryReq) GetRepositoryUrl

func (p *AddRepositoryReq) GetRepositoryUrl() (v string)

func (*AddRepositoryReq) GetStoreType

func (p *AddRepositoryReq) GetStoreType() (v int32)

func (*AddRepositoryReq) InitDefault

func (p *AddRepositoryReq) InitDefault()

func (*AddRepositoryReq) SetBranch

func (p *AddRepositoryReq) SetBranch(val string)

func (*AddRepositoryReq) SetRepositoryType

func (p *AddRepositoryReq) SetRepositoryType(val int32)

func (*AddRepositoryReq) SetRepositoryUrl

func (p *AddRepositoryReq) SetRepositoryUrl(val string)

func (*AddRepositoryReq) SetStoreType

func (p *AddRepositoryReq) SetStoreType(val int32)

func (*AddRepositoryReq) String

func (p *AddRepositoryReq) String() string

type AddRepositoryRes

type AddRepositoryRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewAddRepositoryRes

func NewAddRepositoryRes() *AddRepositoryRes

func (*AddRepositoryRes) GetCode

func (p *AddRepositoryRes) GetCode() (v int32)

func (*AddRepositoryRes) GetMsg

func (p *AddRepositoryRes) GetMsg() (v string)

func (*AddRepositoryRes) InitDefault

func (p *AddRepositoryRes) InitDefault()

func (*AddRepositoryRes) SetCode

func (p *AddRepositoryRes) SetCode(val int32)

func (*AddRepositoryRes) SetMsg

func (p *AddRepositoryRes) SetMsg(val string)

func (*AddRepositoryRes) String

func (p *AddRepositoryRes) String() string

type DeleteRepositoriesReq

type DeleteRepositoriesReq struct {
	Ids []int64 `thrift:"ids,1" frugal:"1,default,list<i64>" form:"ids,required" json:"ids,required" vd:"len($)>0"`
}

func NewDeleteRepositoriesReq

func NewDeleteRepositoriesReq() *DeleteRepositoriesReq

func (*DeleteRepositoriesReq) GetIds

func (p *DeleteRepositoriesReq) GetIds() (v []int64)

func (*DeleteRepositoriesReq) InitDefault

func (p *DeleteRepositoriesReq) InitDefault()

func (*DeleteRepositoriesReq) SetIds

func (p *DeleteRepositoriesReq) SetIds(val []int64)

func (*DeleteRepositoriesReq) String

func (p *DeleteRepositoriesReq) String() string

type DeleteRepositoriesRes

type DeleteRepositoriesRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewDeleteRepositoriesRes

func NewDeleteRepositoriesRes() *DeleteRepositoriesRes

func (*DeleteRepositoriesRes) GetCode

func (p *DeleteRepositoriesRes) GetCode() (v int32)

func (*DeleteRepositoriesRes) GetMsg

func (p *DeleteRepositoriesRes) GetMsg() (v string)

func (*DeleteRepositoriesRes) InitDefault

func (p *DeleteRepositoriesRes) InitDefault()

func (*DeleteRepositoriesRes) SetCode

func (p *DeleteRepositoriesRes) SetCode(val int32)

func (*DeleteRepositoriesRes) SetMsg

func (p *DeleteRepositoriesRes) SetMsg(val string)

func (*DeleteRepositoriesRes) String

func (p *DeleteRepositoriesRes) String() string

type GetRepositoriesReq

type GetRepositoriesReq struct {
	Page             int32  `thrift:"page,1" frugal:"1,default,i32" json:"page" query:"page" vd:"$>=0"`
	Limit            int32  `thrift:"limit,2" frugal:"2,default,i32" json:"limit" query:"limit" vd:"$>=0"`
	Order            int32  `thrift:"order,3" frugal:"3,default,i32" json:"order" query:"order" vd:"$>=0"`
	OrderBy          string `thrift:"order_by,4" frugal:"4,default,string" json:"order_by" query:"order_by"`
	RepositoryType   int32  `thrift:"repository_type,5" frugal:"5,default,i32" json:"repository_type" query:"repository_type"`
	StoreType        int32  `thrift:"store_type,6" frugal:"6,default,i32" json:"store_type" query:"store_type"`
	RepositoryDomain string `thrift:"repository_domain,7" frugal:"7,default,string" json:"repository_domain" query:"repository_domain"`
	RepositoryOwner  string `thrift:"repository_owner,8" frugal:"8,default,string" json:"repository_owner" query:"repository_owner"`
	RepositoryName   string `thrift:"repository_name,9" frugal:"9,default,string" json:"repository_name" query:"repository_name"`
}

func NewGetRepositoriesReq

func NewGetRepositoriesReq() *GetRepositoriesReq

func (*GetRepositoriesReq) GetLimit

func (p *GetRepositoriesReq) GetLimit() (v int32)

func (*GetRepositoriesReq) GetOrder

func (p *GetRepositoriesReq) GetOrder() (v int32)

func (*GetRepositoriesReq) GetOrderBy

func (p *GetRepositoriesReq) GetOrderBy() (v string)

func (*GetRepositoriesReq) GetPage

func (p *GetRepositoriesReq) GetPage() (v int32)

func (*GetRepositoriesReq) GetRepositoryDomain

func (p *GetRepositoriesReq) GetRepositoryDomain() (v string)

func (*GetRepositoriesReq) GetRepositoryName

func (p *GetRepositoriesReq) GetRepositoryName() (v string)

func (*GetRepositoriesReq) GetRepositoryOwner

func (p *GetRepositoriesReq) GetRepositoryOwner() (v string)

func (*GetRepositoriesReq) GetRepositoryType

func (p *GetRepositoriesReq) GetRepositoryType() (v int32)

func (*GetRepositoriesReq) GetStoreType

func (p *GetRepositoriesReq) GetStoreType() (v int32)

func (*GetRepositoriesReq) InitDefault

func (p *GetRepositoriesReq) InitDefault()

func (*GetRepositoriesReq) SetLimit

func (p *GetRepositoriesReq) SetLimit(val int32)

func (*GetRepositoriesReq) SetOrder

func (p *GetRepositoriesReq) SetOrder(val int32)

func (*GetRepositoriesReq) SetOrderBy

func (p *GetRepositoriesReq) SetOrderBy(val string)

func (*GetRepositoriesReq) SetPage

func (p *GetRepositoriesReq) SetPage(val int32)

func (*GetRepositoriesReq) SetRepositoryDomain

func (p *GetRepositoriesReq) SetRepositoryDomain(val string)

func (*GetRepositoriesReq) SetRepositoryName

func (p *GetRepositoriesReq) SetRepositoryName(val string)

func (*GetRepositoriesReq) SetRepositoryOwner

func (p *GetRepositoriesReq) SetRepositoryOwner(val string)

func (*GetRepositoriesReq) SetRepositoryType

func (p *GetRepositoriesReq) SetRepositoryType(val int32)

func (*GetRepositoriesReq) SetStoreType

func (p *GetRepositoriesReq) SetStoreType(val int32)

func (*GetRepositoriesReq) String

func (p *GetRepositoriesReq) String() string

type GetRepositoriesRes

type GetRepositoriesRes struct {
	Code int32                   `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string                  `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
	Data *GetRepositoriesResData `thrift:"data,3" frugal:"3,default,GetRepositoriesResData" form:"data" json:"data" query:"data"`
}

func NewGetRepositoriesRes

func NewGetRepositoriesRes() *GetRepositoriesRes

func (*GetRepositoriesRes) GetCode

func (p *GetRepositoriesRes) GetCode() (v int32)

func (*GetRepositoriesRes) GetData

func (p *GetRepositoriesRes) GetData() (v *GetRepositoriesResData)

func (*GetRepositoriesRes) GetMsg

func (p *GetRepositoriesRes) GetMsg() (v string)

func (*GetRepositoriesRes) InitDefault

func (p *GetRepositoriesRes) InitDefault()

func (*GetRepositoriesRes) IsSetData

func (p *GetRepositoriesRes) IsSetData() bool

func (*GetRepositoriesRes) SetCode

func (p *GetRepositoriesRes) SetCode(val int32)

func (*GetRepositoriesRes) SetData

func (p *GetRepositoriesRes) SetData(val *GetRepositoriesResData)

func (*GetRepositoriesRes) SetMsg

func (p *GetRepositoriesRes) SetMsg(val string)

func (*GetRepositoriesRes) String

func (p *GetRepositoriesRes) String() string

type GetRepositoriesResData

type GetRepositoriesResData struct {
	Repositories []*model.Repository `` /* 126-byte string literal not displayed */
	Total        int32               `thrift:"total,2" frugal:"2,default,i32" form:"total" json:"total" query:"total"`
}
var GetRepositoriesRes_Data_DEFAULT *GetRepositoriesResData

func NewGetRepositoriesResData

func NewGetRepositoriesResData() *GetRepositoriesResData

func (*GetRepositoriesResData) GetRepositories

func (p *GetRepositoriesResData) GetRepositories() (v []*model.Repository)

func (*GetRepositoriesResData) GetTotal

func (p *GetRepositoriesResData) GetTotal() (v int32)

func (*GetRepositoriesResData) InitDefault

func (p *GetRepositoriesResData) InitDefault()

func (*GetRepositoriesResData) SetRepositories

func (p *GetRepositoriesResData) SetRepositories(val []*model.Repository)

func (*GetRepositoriesResData) SetTotal

func (p *GetRepositoriesResData) SetTotal(val int32)

func (*GetRepositoriesResData) String

func (p *GetRepositoriesResData) String() string

type RepositoryService

type RepositoryService interface {
	AddRepository(ctx context.Context, req *AddRepositoryReq) (r *AddRepositoryRes, err error)

	DeleteRepository(ctx context.Context, req *DeleteRepositoriesReq) (r *DeleteRepositoriesRes, err error)

	UpdateRepository(ctx context.Context, req *UpdateRepositoryReq) (r *UpdateRepositoryRes, err error)

	GetRepositories(ctx context.Context, req *GetRepositoriesReq) (r *GetRepositoriesRes, err error)
}

type UpdateRepositoryReq

type UpdateRepositoryReq struct {
	Id     int64  `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id"`
	Branch string `thrift:"branch,2" frugal:"2,default,string" form:"branch" json:"branch"`
	Status int32  `thrift:"status,3" frugal:"3,default,i32" form:"status" json:"status"`
}

func NewUpdateRepositoryReq

func NewUpdateRepositoryReq() *UpdateRepositoryReq

func (*UpdateRepositoryReq) GetBranch

func (p *UpdateRepositoryReq) GetBranch() (v string)

func (*UpdateRepositoryReq) GetId

func (p *UpdateRepositoryReq) GetId() (v int64)

func (*UpdateRepositoryReq) GetStatus

func (p *UpdateRepositoryReq) GetStatus() (v int32)

func (*UpdateRepositoryReq) InitDefault

func (p *UpdateRepositoryReq) InitDefault()

func (*UpdateRepositoryReq) SetBranch

func (p *UpdateRepositoryReq) SetBranch(val string)

func (*UpdateRepositoryReq) SetId

func (p *UpdateRepositoryReq) SetId(val int64)

func (*UpdateRepositoryReq) SetStatus

func (p *UpdateRepositoryReq) SetStatus(val int32)

func (*UpdateRepositoryReq) String

func (p *UpdateRepositoryReq) String() string

type UpdateRepositoryRes

type UpdateRepositoryRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewUpdateRepositoryRes

func NewUpdateRepositoryRes() *UpdateRepositoryRes

func (*UpdateRepositoryRes) GetCode

func (p *UpdateRepositoryRes) GetCode() (v int32)

func (*UpdateRepositoryRes) GetMsg

func (p *UpdateRepositoryRes) GetMsg() (v string)

func (*UpdateRepositoryRes) InitDefault

func (p *UpdateRepositoryRes) InitDefault()

func (*UpdateRepositoryRes) SetCode

func (p *UpdateRepositoryRes) SetCode(val int32)

func (*UpdateRepositoryRes) SetMsg

func (p *UpdateRepositoryRes) SetMsg(val string)

func (*UpdateRepositoryRes) String

func (p *UpdateRepositoryRes) String() string

Jump to

Keyboard shortcuts

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