windmill

package module
v1.93.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

README

windmill-go-client

Go client for the windmill platform.

Import

Import user-friendly client:

import wmill "github.com/windmill-labs/windmill-go-client"

Import full api from the autogenerated openapi client:

import api "github.com/windmill-labs/windmill-go-client/api"

Usage

a, _ := wmill.GetResource("u/ruben-user/test")
a, _ := wmill.GetVariable("u/ruben-user/test")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResource

func GetResource(path string) (interface{}, error)

func GetState added in v1.48.2

func GetState() (interface{}, error)

func GetStatePath added in v1.48.2

func GetStatePath() string

func GetVariable

func GetVariable(path string) (string, error)

func SetResource added in v1.48.2

func SetResource(path string, value interface{}) error

func SetState added in v1.48.2

func SetState(state interface{}) error

func SetVariable added in v1.48.2

func SetVariable(path string, value string) error

Types

type ClientWithWorkspace

type ClientWithWorkspace struct {
	Client    *api.ClientWithResponses
	Workspace string
}

func GetClient

func GetClient() (ClientWithWorkspace, error)

Directories

Path Synopsis
Package windmill_api provides primitives to interact with the openapi HTTP API.
Package windmill_api provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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