Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions domain/service_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,22 @@ const (
)

type VolumeMount struct {
Driver string `json:"driver"`
ContainerDir string `json:"container_dir"`
Mode string `json:"mode"`
DeviceType string `json:"device_type"`
Device SharedDevice `json:"device"`
Driver string `json:"driver"`
ContainerDir string `json:"container_dir"`
Mode string `json:"mode"`
DeviceType string `json:"device_type"`
Device Device `json:"device,omitempty"`
}

type SharedDevice struct {
VolumeId string `json:"volume_id"`
MountConfig map[string]any `json:"mount_config"`
type Device struct {
VolumeId string `json:"volume_id"`
MountConfig map[string]any `json:"mount_config"`
DeviceConfig map[string]any `json:"device_config,omitempty"`
}

// Deprecated: Use Device
type SharedDevice = Device

type ProvisionDetails struct {
ServiceID string `json:"service_id"`
PlanID string `json:"plan_id"`
Expand Down
2 changes: 1 addition & 1 deletion service_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type GetBindingSpec = domain.GetBindingSpec
type VolumeMount = domain.VolumeMount

// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
type SharedDevice = domain.SharedDevice
type SharedDevice = domain.Device

// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain/apiresponses
var (
Expand Down
Loading