Class: Siren::Compose::Volume

Inherits:
Struct
  • Object
show all
Defined in:
lib/siren/compose/types.rb

Overview

deploy: object( endpoint_mode: string(["vip", "dnsrr"]), labels: hashlike, mode: string(["global", "replicated"]), placement: object( constraints: array(string), preferences: array(object(spread: string)), ), replicas: integer, resources: object( limits: resources, reservations: resources, ),

Instance Attribute Summary collapse

Instance Attribute Details

#composeObject

Returns the value of attribute compose

Returns:

  • (Object)

    the current value of compose



104
105
106
# File 'lib/siren/compose/types.rb', line 104

def compose
  @compose
end

#driverObject

Returns the value of attribute driver

Returns:

  • (Object)

    the current value of driver



104
105
106
# File 'lib/siren/compose/types.rb', line 104

def driver
  @driver
end

#driver_optsObject

Returns the value of attribute driver_opts

Returns:

  • (Object)

    the current value of driver_opts



104
105
106
# File 'lib/siren/compose/types.rb', line 104

def driver_opts
  @driver_opts
end

#externalObject

Returns the value of attribute external

Returns:

  • (Object)

    the current value of external



104
105
106
# File 'lib/siren/compose/types.rb', line 104

def external
  @external
end

#labelsObject

Returns the value of attribute labels

Returns:

  • (Object)

    the current value of labels



104
105
106
# File 'lib/siren/compose/types.rb', line 104

def labels
  @labels
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



104
105
106
# File 'lib/siren/compose/types.rb', line 104

def name
  @name
end