Swiftpack.co - Package - Reed-Bigelow/UnraidOpenSDK

UnraidOpenSDK

This package makes an attempt to create an SDK that can be used in conjunction with an Unraid Sever. The motivation behind this package is fix the gap that is there no API for the server.

This is still under development and has no guarantee that everything will work and handle all cases.

Supported versions: Versions less than 6.8

How to use:

let server = Unraid()

server.login(using: .init(host: "10.0.1.1", port: 8080, username: "root", password: "Password")) { success in
    if success {
        print("Login successful")
    }
}

You must call login and have it be successful before you can call any other operations.

Available options:

Info:

server.info.shares

server.info.server

Active Monitoring

server.monitor.disconectAll()

server.monitor.cpuUsage

server.monitor.dockerLoad

server.monitor.diskInfo

Status

server.status.parity

server.status.array

Docker

server.docker.information

server.docker.perform(action:, on:)

server.docker.update(containerName:)

server.docker.downloadTemplate(from:)

Install

.package(url: "https://github.com/reed-bigelow/UnraidOpenSDK.git", from: "1.0.0")

Github

link
Stars: 2

Used By

Total: 0

Releases

Added more docker actions and information. - 2020-01-16 01:44:02

Initial Prerelease - 2020-01-13 03:17:21