Documentation ¶
Index ¶
- type AddTokenReq
- func (p *AddTokenReq) GetRepositoryDomain() (v string)
- func (p *AddTokenReq) GetRepositoryType() (v int32)
- func (p *AddTokenReq) GetToken() (v string)
- func (p *AddTokenReq) InitDefault()
- func (p *AddTokenReq) SetRepositoryDomain(val string)
- func (p *AddTokenReq) SetRepositoryType(val int32)
- func (p *AddTokenReq) SetToken(val string)
- func (p *AddTokenReq) String() string
- type AddTokenRes
- func (p *AddTokenRes) GetCode() (v int32)
- func (p *AddTokenRes) GetData() (v *AddTokenResData)
- func (p *AddTokenRes) GetMsg() (v string)
- func (p *AddTokenRes) InitDefault()
- func (p *AddTokenRes) IsSetData() bool
- func (p *AddTokenRes) SetCode(val int32)
- func (p *AddTokenRes) SetData(val *AddTokenResData)
- func (p *AddTokenRes) SetMsg(val string)
- func (p *AddTokenRes) String() string
- type AddTokenResData
- type DeleteTokenReq
- type DeleteTokenRes
- type GetTokenReq
- func (p *GetTokenReq) GetLimit() (v int32)
- func (p *GetTokenReq) GetOrder() (v int32)
- func (p *GetTokenReq) GetOrderBy() (v string)
- func (p *GetTokenReq) GetOwner() (v string)
- func (p *GetTokenReq) GetPage() (v int32)
- func (p *GetTokenReq) GetRepositoryDomain() (v string)
- func (p *GetTokenReq) GetRepositoryType() (v int32)
- func (p *GetTokenReq) InitDefault()
- func (p *GetTokenReq) SetLimit(val int32)
- func (p *GetTokenReq) SetOrder(val int32)
- func (p *GetTokenReq) SetOrderBy(val string)
- func (p *GetTokenReq) SetOwner(val string)
- func (p *GetTokenReq) SetPage(val int32)
- func (p *GetTokenReq) SetRepositoryDomain(val string)
- func (p *GetTokenReq) SetRepositoryType(val int32)
- func (p *GetTokenReq) String() string
- type GetTokenRes
- func (p *GetTokenRes) GetCode() (v int32)
- func (p *GetTokenRes) GetData() (v *GetTokenResData)
- func (p *GetTokenRes) GetMsg() (v string)
- func (p *GetTokenRes) InitDefault()
- func (p *GetTokenRes) IsSetData() bool
- func (p *GetTokenRes) SetCode(val int32)
- func (p *GetTokenRes) SetData(val *GetTokenResData)
- func (p *GetTokenRes) SetMsg(val string)
- func (p *GetTokenRes) String() string
- type GetTokenResData
- type TokenService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTokenReq ¶
type AddTokenReq struct { RepositoryType int32 `thrift:"repository_type,1" frugal:"1,default,i32" form:"repository_type,required" json:"repository_type,required"` RepositoryDomain string `thrift:"repository_domain,2" frugal:"2,default,string" form:"repository_domain,required" json:"repository_domain,required"` Token string `thrift:"token,3" frugal:"3,default,string" form:"token,required" json:"token,required"` }
func NewAddTokenReq ¶
func NewAddTokenReq() *AddTokenReq
func (*AddTokenReq) GetRepositoryDomain ¶
func (p *AddTokenReq) GetRepositoryDomain() (v string)
func (*AddTokenReq) GetRepositoryType ¶
func (p *AddTokenReq) GetRepositoryType() (v int32)
func (*AddTokenReq) GetToken ¶
func (p *AddTokenReq) GetToken() (v string)
func (*AddTokenReq) InitDefault ¶
func (p *AddTokenReq) InitDefault()
func (*AddTokenReq) SetRepositoryDomain ¶
func (p *AddTokenReq) SetRepositoryDomain(val string)
func (*AddTokenReq) SetRepositoryType ¶
func (p *AddTokenReq) SetRepositoryType(val int32)
func (*AddTokenReq) SetToken ¶
func (p *AddTokenReq) SetToken(val string)
func (*AddTokenReq) String ¶
func (p *AddTokenReq) String() string
type AddTokenRes ¶
type AddTokenRes 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 *AddTokenResData `thrift:"data,3" frugal:"3,default,AddTokenResData" form:"data" json:"data" query:"data"` }
func NewAddTokenRes ¶
func NewAddTokenRes() *AddTokenRes
func (*AddTokenRes) GetCode ¶
func (p *AddTokenRes) GetCode() (v int32)
func (*AddTokenRes) GetData ¶
func (p *AddTokenRes) GetData() (v *AddTokenResData)
func (*AddTokenRes) GetMsg ¶
func (p *AddTokenRes) GetMsg() (v string)
func (*AddTokenRes) InitDefault ¶
func (p *AddTokenRes) InitDefault()
func (*AddTokenRes) IsSetData ¶
func (p *AddTokenRes) IsSetData() bool
func (*AddTokenRes) SetCode ¶
func (p *AddTokenRes) SetCode(val int32)
func (*AddTokenRes) SetData ¶
func (p *AddTokenRes) SetData(val *AddTokenResData)
func (*AddTokenRes) SetMsg ¶
func (p *AddTokenRes) SetMsg(val string)
func (*AddTokenRes) String ¶
func (p *AddTokenRes) String() string
type AddTokenResData ¶
type AddTokenResData struct { Owner string `thrift:"owner,1" frugal:"1,default,string" form:"owner" json:"owner" query:"owner"` ExpirationTime string `thrift:"expiration_time,2" frugal:"2,default,string" form:"expiration_time" json:"expiration_time" query:"expiration_time"` }
var AddTokenRes_Data_DEFAULT *AddTokenResData
func NewAddTokenResData ¶
func NewAddTokenResData() *AddTokenResData
func (*AddTokenResData) GetExpirationTime ¶
func (p *AddTokenResData) GetExpirationTime() (v string)
func (*AddTokenResData) GetOwner ¶
func (p *AddTokenResData) GetOwner() (v string)
func (*AddTokenResData) InitDefault ¶
func (p *AddTokenResData) InitDefault()
func (*AddTokenResData) SetExpirationTime ¶
func (p *AddTokenResData) SetExpirationTime(val string)
func (*AddTokenResData) SetOwner ¶
func (p *AddTokenResData) SetOwner(val string)
func (*AddTokenResData) String ¶
func (p *AddTokenResData) String() string
type DeleteTokenReq ¶
type DeleteTokenReq struct {
Ids []int64 `thrift:"ids,1" frugal:"1,default,list<i64>" form:"ids,required" json:"ids,required" vd:"len($)>0"`
}
func NewDeleteTokenReq ¶
func NewDeleteTokenReq() *DeleteTokenReq
func (*DeleteTokenReq) GetIds ¶
func (p *DeleteTokenReq) GetIds() (v []int64)
func (*DeleteTokenReq) InitDefault ¶
func (p *DeleteTokenReq) InitDefault()
func (*DeleteTokenReq) SetIds ¶
func (p *DeleteTokenReq) SetIds(val []int64)
func (*DeleteTokenReq) String ¶
func (p *DeleteTokenReq) String() string
type DeleteTokenRes ¶
type DeleteTokenRes 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 NewDeleteTokenRes ¶
func NewDeleteTokenRes() *DeleteTokenRes
func (*DeleteTokenRes) GetCode ¶
func (p *DeleteTokenRes) GetCode() (v int32)
func (*DeleteTokenRes) GetMsg ¶
func (p *DeleteTokenRes) GetMsg() (v string)
func (*DeleteTokenRes) InitDefault ¶
func (p *DeleteTokenRes) InitDefault()
func (*DeleteTokenRes) SetCode ¶
func (p *DeleteTokenRes) SetCode(val int32)
func (*DeleteTokenRes) SetMsg ¶
func (p *DeleteTokenRes) SetMsg(val string)
func (*DeleteTokenRes) String ¶
func (p *DeleteTokenRes) String() string
type GetTokenReq ¶
type GetTokenReq 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"` RepositoryDomain string `thrift:"repository_domain,6" frugal:"6,default,string" json:"repository_domain" query:"repository_domain"` Owner string `thrift:"owner,7" frugal:"7,default,string" json:"owner" query:"owner"` }
func NewGetTokenReq ¶
func NewGetTokenReq() *GetTokenReq
func (*GetTokenReq) GetLimit ¶
func (p *GetTokenReq) GetLimit() (v int32)
func (*GetTokenReq) GetOrder ¶
func (p *GetTokenReq) GetOrder() (v int32)
func (*GetTokenReq) GetOrderBy ¶
func (p *GetTokenReq) GetOrderBy() (v string)
func (*GetTokenReq) GetOwner ¶
func (p *GetTokenReq) GetOwner() (v string)
func (*GetTokenReq) GetPage ¶
func (p *GetTokenReq) GetPage() (v int32)
func (*GetTokenReq) GetRepositoryDomain ¶
func (p *GetTokenReq) GetRepositoryDomain() (v string)
func (*GetTokenReq) GetRepositoryType ¶
func (p *GetTokenReq) GetRepositoryType() (v int32)
func (*GetTokenReq) InitDefault ¶
func (p *GetTokenReq) InitDefault()
func (*GetTokenReq) SetLimit ¶
func (p *GetTokenReq) SetLimit(val int32)
func (*GetTokenReq) SetOrder ¶
func (p *GetTokenReq) SetOrder(val int32)
func (*GetTokenReq) SetOrderBy ¶
func (p *GetTokenReq) SetOrderBy(val string)
func (*GetTokenReq) SetOwner ¶
func (p *GetTokenReq) SetOwner(val string)
func (*GetTokenReq) SetPage ¶
func (p *GetTokenReq) SetPage(val int32)
func (*GetTokenReq) SetRepositoryDomain ¶
func (p *GetTokenReq) SetRepositoryDomain(val string)
func (*GetTokenReq) SetRepositoryType ¶
func (p *GetTokenReq) SetRepositoryType(val int32)
func (*GetTokenReq) String ¶
func (p *GetTokenReq) String() string
type GetTokenRes ¶
type GetTokenRes 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 *GetTokenResData `thrift:"data,3" frugal:"3,default,GetTokenResData" form:"data" json:"data" query:"data"` }
func NewGetTokenRes ¶
func NewGetTokenRes() *GetTokenRes
func (*GetTokenRes) GetCode ¶
func (p *GetTokenRes) GetCode() (v int32)
func (*GetTokenRes) GetData ¶
func (p *GetTokenRes) GetData() (v *GetTokenResData)
func (*GetTokenRes) GetMsg ¶
func (p *GetTokenRes) GetMsg() (v string)
func (*GetTokenRes) InitDefault ¶
func (p *GetTokenRes) InitDefault()
func (*GetTokenRes) IsSetData ¶
func (p *GetTokenRes) IsSetData() bool
func (*GetTokenRes) SetCode ¶
func (p *GetTokenRes) SetCode(val int32)
func (*GetTokenRes) SetData ¶
func (p *GetTokenRes) SetData(val *GetTokenResData)
func (*GetTokenRes) SetMsg ¶
func (p *GetTokenRes) SetMsg(val string)
func (*GetTokenRes) String ¶
func (p *GetTokenRes) String() string
type GetTokenResData ¶
type GetTokenResData struct { Tokens []*model.Token `thrift:"tokens,1" frugal:"1,default,list<model.Token>" form:"tokens" json:"tokens" query:"tokens"` Total int32 `thrift:"total,2" frugal:"2,default,i32" form:"total" json:"total" query:"total"` }
var GetTokenRes_Data_DEFAULT *GetTokenResData
func NewGetTokenResData ¶
func NewGetTokenResData() *GetTokenResData
func (*GetTokenResData) GetTokens ¶
func (p *GetTokenResData) GetTokens() (v []*model.Token)
func (*GetTokenResData) GetTotal ¶
func (p *GetTokenResData) GetTotal() (v int32)
func (*GetTokenResData) InitDefault ¶
func (p *GetTokenResData) InitDefault()
func (*GetTokenResData) SetTokens ¶
func (p *GetTokenResData) SetTokens(val []*model.Token)
func (*GetTokenResData) SetTotal ¶
func (p *GetTokenResData) SetTotal(val int32)
func (*GetTokenResData) String ¶
func (p *GetTokenResData) String() string
type TokenService ¶
type TokenService interface { AddToken(ctx context.Context, req *AddTokenReq) (r *AddTokenRes, err error) DeleteToken(ctx context.Context, req *DeleteTokenReq) (r *DeleteTokenRes, err error) GetToken(ctx context.Context, req *GetTokenReq) (r *GetTokenRes, err error) }
Click to show internal directories.
Click to hide internal directories.