Skip to content

Bischoff/feilong-client-go

Repository files navigation

Go Client Library for Feilong

This library enables to deploy s390 virtual machines on z/VM via Feilong from a Go program.

Requirements

  • Go >= 1.21

Using the Library

Here is a small sample program using the library:

package main

import (
        "fmt"
        "os"

        "github.com/Bischoff/feilong-client-go"
)

func main() {
        connector := os.Getenv("ZVM_CONNECTOR")

        client := feilong.NewClient(&connector, nil)

        result, err := client.GetFeilongVersion()
        if err != nil {
                fmt.Println(err.Error())
                return
        }

        fmt.Printf("API version: %s\n", result.Output.APIVersion)
}

For more examples, look at the examples directory.

For an overview of all the functions, see the documentation.

Compliance

The library implements the Feilong API version 1.0. It has been tested to work with Feilong server version 1.6.7.

To Do

The following are not done yet:

  • detailed documentation
  • acceptance tests

Also, volume operations are probably not sufficiently tested because of missing opportunities to test it.

Your help is welcome!

License

Apache 2.0, See LICENSE file

About

Client library for Feilong API written in go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages