Documentation ¶
Index ¶
- type DataCell
- type DataSelectQuery
- type DeletePodLogic
- type FilterQuery
- type GetPodContainerLogic
- type GetPodDetailLogic
- type GetPodLogLogic
- type GetPodNumPerNpLogic
- type GetPodsLogic
- type PaginateQuery
- type Pod
- func (p *Pod) DeletePod(l *DeletePodLogic, in *core.DeletePodReq) (deletePodResp *core.DeletePodResp, err error)
- func (p *Pod) GetPodContainer(l *GetPodContainerLogic, in *core.GetPodContainerReq) (getPodContainerResp *core.GetPodContainerResp, err error)
- func (p *Pod) GetPodDetail(l *GetPodDetailLogic, in *core.GetPodDetailReq) (getPodDetailResp *core.GetPodDetailResp, err error)
- func (p *Pod) GetPodLog(l *GetPodLogLogic, in *core.GetPodLogReq) (getPodLogResp *core.GetPodLogResp, err error)
- func (p *Pod) GetPodNumPerNp(l *GetPodNumPerNpLogic, in *core.GetPodNumPerNpReq) (getPodNumPerNpResp *core.GetPodNumPerNpResp, err error)
- func (p *Pod) GetPods(l *GetPodsLogic, in *core.GetPodsReq) (getPodsResp *core.GetPodsResp, err error)
- func (p *Pod) UpdatePod(l *UpdatePodLogic, in *core.UpdatePodReq) (updatePodResp *core.UpdatePodResp, err error)
- type UpdatePodLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSelectQuery ¶
type DataSelectQuery struct { Filter *FilterQuery Paginate *PaginateQuery }
DataSelectQuery 定义过滤和分页的结构体,过滤:Name 分页:Limit和Page
type DeletePodLogic ¶
func NewDeletePodLogic ¶
func NewDeletePodLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeletePodLogic
func (*DeletePodLogic) DeletePod ¶
func (l *DeletePodLogic) DeletePod(in *core.DeletePodReq) (*core.DeletePodResp, error)
type GetPodContainerLogic ¶
func NewGetPodContainerLogic ¶
func NewGetPodContainerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPodContainerLogic
func (*GetPodContainerLogic) GetPodContainer ¶
func (l *GetPodContainerLogic) GetPodContainer(in *core.GetPodContainerReq) (*core.GetPodContainerResp, error)
type GetPodDetailLogic ¶
func NewGetPodDetailLogic ¶
func NewGetPodDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPodDetailLogic
func (*GetPodDetailLogic) GetPodDetail ¶
func (l *GetPodDetailLogic) GetPodDetail(in *core.GetPodDetailReq) (*core.GetPodDetailResp, error)
type GetPodLogLogic ¶
func NewGetPodLogLogic ¶
func NewGetPodLogLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPodLogLogic
func (*GetPodLogLogic) GetPodLog ¶
func (l *GetPodLogLogic) GetPodLog(in *core.GetPodLogReq) (*core.GetPodLogResp, error)
type GetPodNumPerNpLogic ¶
func NewGetPodNumPerNpLogic ¶
func NewGetPodNumPerNpLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPodNumPerNpLogic
func (*GetPodNumPerNpLogic) GetPodNumPerNp ¶
func (l *GetPodNumPerNpLogic) GetPodNumPerNp(in *core.GetPodNumPerNpReq) (*core.GetPodNumPerNpResp, error)
type GetPodsLogic ¶
func NewGetPodsLogic ¶
func NewGetPodsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPodsLogic
func (*GetPodsLogic) GetPods ¶
func (l *GetPodsLogic) GetPods(in *core.GetPodsReq) (*core.GetPodsResp, error)
K8sPod management
type PaginateQuery ¶
PaginateQuery 分页:Limit和Page Limit是单页的数据条数,Page是第几页
type Pod ¶
type Pod struct{}
func (*Pod) DeletePod ¶
func (p *Pod) DeletePod(l *DeletePodLogic, in *core.DeletePodReq) (deletePodResp *core.DeletePodResp, err error)
删除Pod
func (*Pod) GetPodContainer ¶
func (p *Pod) GetPodContainer(l *GetPodContainerLogic, in *core.GetPodContainerReq) (getPodContainerResp *core.GetPodContainerResp, err error)
获取Pod中的容器名
func (*Pod) GetPodDetail ¶
func (p *Pod) GetPodDetail(l *GetPodDetailLogic, in *core.GetPodDetailReq) (getPodDetailResp *core.GetPodDetailResp, err error)
获取pod详情
func (*Pod) GetPodLog ¶
func (p *Pod) GetPodLog(l *GetPodLogLogic, in *core.GetPodLogReq) (getPodLogResp *core.GetPodLogResp, err error)
获取Pod内容器日志
func (*Pod) GetPodNumPerNp ¶
func (p *Pod) GetPodNumPerNp(l *GetPodNumPerNpLogic, in *core.GetPodNumPerNpReq) (getPodNumPerNpResp *core.GetPodNumPerNpResp, err error)
获取每个namespace中pod的数量
func (*Pod) GetPods ¶
func (p *Pod) GetPods(l *GetPodsLogic, in *core.GetPodsReq) (getPodsResp *core.GetPodsResp, err error)
获取pod列表,支持过滤,排序,分页
func (*Pod) UpdatePod ¶
func (p *Pod) UpdatePod(l *UpdatePodLogic, in *core.UpdatePodReq) (updatePodResp *core.UpdatePodResp, err error)
更新Pod
type UpdatePodLogic ¶
func NewUpdatePodLogic ¶
func NewUpdatePodLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdatePodLogic
func (*UpdatePodLogic) UpdatePod ¶
func (l *UpdatePodLogic) UpdatePod(in *core.UpdatePodReq) (*core.UpdatePodResp, error)
Click to show internal directories.
Click to hide internal directories.