class Docr::Endpoints::Volumes

Overview

The Volumes class provides methods to interact with volume-related endpoints. This class uses the client to send requests to the server and handles responses.

Defined in:

docr/endpoints/volumes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Docr::Client) #

Initializes a new Volumes instance with the provided client.


[View source]

Instance Method Detail

def client : Docr::Client #

A client instance used for making requests.


[View source]

Creates a new volume based on the provided configuration.

  • config: The configuration for creating the volume.

Returns the created volume.


[View source]
def delete(name : String, force : Bool = false) #

Deletes a specific volume by its name.

  • name: The name of the volume to delete.
  • force: (Optional) Force deletion if true. Default is false.

Does not return any specific value.


[View source]
def inspect(name : String) : Docr::Types::Volume #

Inspects a specific volume by its name.

  • name: The name of the volume to inspect.

Returns details about the specified volume.


[View source]

Retrieves a list of volumes.

Returns a response containing a list of volumes.


[View source]