k8sservice

package
v0.0.0-...-663e6fc Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateServiceLogic

type CreateServiceLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateServiceLogic

func NewCreateServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateServiceLogic

func (*CreateServiceLogic) CreateService

创建service,,接收ServiceCreate对象

type DataCell

type DataCell interface {
	GetCreation() time.Time
	GetName() string
}

DataCell 接口,用于各种资源List的类型转换,转换后可以使用dataselector的排序,过滤,分页方法

type DataSelectQuery

type DataSelectQuery struct {
	Filter   *FilterQuery
	Paginate *PaginateQuery
}

DataSelectQuery 定义过滤和分页的结构体,过滤:Name 分页:Limit和Page

type DeleteServiceLogic

type DeleteServiceLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteServiceLogic

func NewDeleteServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteServiceLogic

func (*DeleteServiceLogic) DeleteService

type FilterQuery

type FilterQuery struct {
	Name string
}

FilterQuery 用于查询 过滤:Name

type GetServiceDetailLogic

type GetServiceDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetServiceDetailLogic

func NewGetServiceDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetServiceDetailLogic

func (*GetServiceDetailLogic) GetServiceDetail

type GetServicesLogic

type GetServicesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetServicesLogic

func NewGetServicesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetServicesLogic

func (*GetServicesLogic) GetServices

获取service列表,支持过滤、排序、分页

type PaginateQuery

type PaginateQuery struct {
	Page  int
	Limit int
}

分页:Limit和Page Limit是单页的数据条数,Page是第几页

type Service

type Service struct{}

func (*Service) CreateService

func (s *Service) CreateService(l *CreateServiceLogic, in *core.CreateServiceReq) (resp *core.CreateServiceResp, err error)

创建service,,接收ServiceCreate对象

func (*Service) DeleteService

func (s *Service) DeleteService(l *DeleteServiceLogic, in *core.DeleteServiceReq) (resp *core.DeleteServiceResp, err error)

删除service

func (*Service) GetServiceDetail

func (s *Service) GetServiceDetail(l *GetServiceDetailLogic, in *core.GetServiceDetailReq) (resp *core.GetServiceDetailResp, err error)

获取service详情

func (*Service) GetServices

func (s *Service) GetServices(l *GetServicesLogic, in *core.GetServicesReq) (resp *core.GetServicesResp, err error)

获取service列表,支持过滤、排序、分页

func (*Service) UpdateService

func (s *Service) UpdateService(l *UpdateServiceLogic, in *core.UpdateServiceReq) (resp *core.UpdateServiceResp, err error)

更新service

type UpdateServiceLogic

type UpdateServiceLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateServiceLogic

func NewUpdateServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateServiceLogic

func (*UpdateServiceLogic) UpdateService

Jump to

Keyboard shortcuts

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