go/

directory
v1.9.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: Apache-2.0

README ¶

KubeVela Go SDK

This is a Go SDK for KubeVela generated via vela CLI

Installation

Recommended way to install this SDK is run command below.

go get github.com/kubevela-contrib/kubevela-go-sdk
go mod edit -replace=sigs.k8s.io/apiserver-network-proxy/konnectivity-client=sigs.k8s.io/apiserver-network-proxy/konnectivity-client@v0.0.24

Features:

  • 🔧Application manipulating
    • Add Components/Traits/Workflow Steps/Policies
    • Set Workflow Mode
    • Convert to/from K8s Application Object
    • Convert to YAML/JSON
    • Get Components/Traits/Workflow Steps/Policies from app
    • Validate Application required parameters recursively
    • Referring to external Workflow object.
  • 🔍Application client
    • Create/Delete/Patch/Update Application
    • List/Get Application

Example

See example for some basic usage of this SDK.

Future Work

There is some proper features for this SDK and possible to be added in the future. If you are interested in any of them, please feel free to contact us.

  • Part of vela CLI functions
    • Application logs/exec/port-forward
    • Application resource in tree structure
    • VelaQL
    • ...
  • Standalone workflow functions
    • CRUD of workflow

Known issues

There are some known issues in this SDK, please be aware of them before using it.

  1. labels and annotations trait is not working as expected.
  2. notification workflow-step's parameter is not exactly the same as the one in KubeVela.

Directories ¶

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL