Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPersistentVolumeK8sGet = errors.New("获取存储卷错误")
)
Functions ¶
Types ¶
type Service ¶
type Service interface { // 获取pv详情 Get(ctx context.Context, name string) (rs interface{}, err error) // 获取pv列表 List(ctx context.Context, ns string) // 删除pv Delete(ctx context.Context, ns, name string) (err error) // 同步pv Sync(ctx context.Context, ns string) (err error) }
func NewService ¶
func NewService(logger log.Logger, client kubernetes.K8sClient) Service
Click to show internal directories.
Click to hide internal directories.