k8sconfigmap

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap struct{}

func (*ConfigMap) DeleteConfigMap

func (c *ConfigMap) DeleteConfigMap(l *DeleteConfigMapLogic, in *core.DeleteConfigMapReq) (resp *core.DeleteConfigMapResp, err error)

删除configmap

func (*ConfigMap) GetConfigMapDetail

func (c *ConfigMap) GetConfigMapDetail(l *GetConfigMapDetailLogic, in *core.GetConfigMapDetailReq) (resp *core.GetConfigMapDetailResp, err error)

获取configmap详情

func (*ConfigMap) GetConfigMaps

func (c *ConfigMap) GetConfigMaps(l *GetConfigMapsLogic, in *core.GetConfigMapsReq) (resp *core.GetConfigMapsResp, err error)

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

func (*ConfigMap) UpdateConfigMap

func (c *ConfigMap) UpdateConfigMap(l *UpdateConfigMapLogic, in *core.UpdateConfigMapReq) (resp *core.UpdateConfigMapResp, err error)

更新configmap

type ConfigMapsResp

type ConfigMapsResp struct {
	Items []corev1.ConfigMap `json:"items"`
	Total int                `json:"total"`
}

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 DeleteConfigMapLogic

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

func NewDeleteConfigMapLogic

func NewDeleteConfigMapLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteConfigMapLogic

func (*DeleteConfigMapLogic) DeleteConfigMap

type FilterQuery

type FilterQuery struct {
	Name string
}

FilterQuery 用于查询 过滤:Name

type GetConfigMapDetailLogic

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

func NewGetConfigMapDetailLogic

func NewGetConfigMapDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetConfigMapDetailLogic

func (*GetConfigMapDetailLogic) GetConfigMapDetail

type GetConfigMapsLogic

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

func NewGetConfigMapsLogic

func NewGetConfigMapsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetConfigMapsLogic

func (*GetConfigMapsLogic) GetConfigMaps

K8sConfigMap management

type PaginateQuery

type PaginateQuery struct {
	Page  int
	Limit int
}

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

type UpdateConfigMapLogic

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

func NewUpdateConfigMapLogic

func NewUpdateConfigMapLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateConfigMapLogic

func (*UpdateConfigMapLogic) UpdateConfigMap

Jump to

Keyboard shortcuts

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