k8snamespace

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 DeleteNamespaceLogic

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

func NewDeleteNamespaceLogic

func NewDeleteNamespaceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteNamespaceLogic

func (*DeleteNamespaceLogic) DeleteNamespace

type FilterQuery

type FilterQuery struct {
	Name string
}

FilterQuery 用于查询 过滤:Name

type GetNamespaceDetailLogic

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

func NewGetNamespaceDetailLogic

func NewGetNamespaceDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetNamespaceDetailLogic

func (*GetNamespaceDetailLogic) GetNamespaceDetail

type GetNamespacesLogic

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

func NewGetNamespacesLogic

func NewGetNamespacesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetNamespacesLogic

func (*GetNamespacesLogic) GetNamespaces

type PaginateQuery

type PaginateQuery struct {
	Page  int
	Limit int
}

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

Jump to

Keyboard shortcuts

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