persistentvolume

package
v0.0.0-...-7c3836c Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPersistentVolumeK8sGet = errors.New("获取存储卷错误")
)

Functions

func MakeHandler

func MakeHandler(svc Service, logger log.Logger) http.Handler

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 NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewService

func NewService(logger log.Logger, client kubernetes.K8sClient) Service

Jump to

Keyboard shortcuts

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