mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
cleanup: move volumeID to the volumeoptions
volumeID can be moved to the volumeOptions as most of the volume related helper functions are available on the volumeoptions.go Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
da70ed50dc
commit
be7749c90e
@ -26,8 +26,6 @@ import (
|
|||||||
"github.com/golang/protobuf/ptypes/timestamp"
|
"github.com/golang/protobuf/ptypes/timestamp"
|
||||||
)
|
)
|
||||||
|
|
||||||
type volumeID string
|
|
||||||
|
|
||||||
func parseTime(ctx context.Context, createTime time.Time) (*timestamp.Timestamp, error) {
|
func parseTime(ctx context.Context, createTime time.Time) (*timestamp.Timestamp, error) {
|
||||||
tm, err := ptypes.TimestampProto(createTime)
|
tm, err := ptypes.TimestampProto(createTime)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -30,6 +30,8 @@ import (
|
|||||||
"github.com/ceph/ceph-csi/internal/util/log"
|
"github.com/ceph/ceph-csi/internal/util/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type volumeID string
|
||||||
|
|
||||||
type volumeOptions struct {
|
type volumeOptions struct {
|
||||||
TopologyPools *[]util.TopologyConstrainedPool
|
TopologyPools *[]util.TopologyConstrainedPool
|
||||||
TopologyRequirement *csi.TopologyRequirement
|
TopologyRequirement *csi.TopologyRequirement
|
||||||
|
Loading…
Reference in New Issue
Block a user