struct CrystaLXD::Operation

Overview

https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10operations

Defined in:

client/operation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Client, uuid : String) #

[View source]

Instance Method Detail

Returns the current state (https://github.com/lxc/lxd/blob/master/doc/rest-api.md#get-24).


[View source]
def uuid : String #

[View source]
def wait(timeout : Int32 | Nil = nil) : Success(BackgroundOperation) | Error #

Wait for an operation to finish, with an optional timeout in seconds (https://github.com/lxc/lxd/blob/master/doc/rest-api.md#get-optional-timeout30).


[View source]
def websocket(secret : String) #

This connection is upgraded into a websocket connection speaking the protocol defined by the operation type. (https://github.com/lxc/lxd/blob/master/doc/rest-api.md#get-secretsecret).


[View source]