move SetResourceMapper to common
This commit is contained in:
parent
24a18c3094
commit
59f66af792
@ -42,7 +42,6 @@ type ContainerVolume struct {
|
|||||||
volume.Volume `json:",inline" yaml:",inline"`
|
volume.Volume `json:",inline" yaml:",inline"`
|
||||||
|
|
||||||
apiClient ContainerVolumeClient
|
apiClient ContainerVolumeClient
|
||||||
Resources data.ResourceMapper `json:"-" yaml:"-"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -85,10 +84,6 @@ func (v *ContainerVolume) NormalizePath() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *ContainerVolume) SetResourceMapper(resources data.ResourceMapper) {
|
|
||||||
v.Resources = resources
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *ContainerVolume) Clone() data.Resource {
|
func (v *ContainerVolume) Clone() data.Resource {
|
||||||
return &ContainerVolume {
|
return &ContainerVolume {
|
||||||
Common: v.Common.Clone(),
|
Common: v.Common.Clone(),
|
||||||
|
Loading…
Reference in New Issue
Block a user