workloads

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package workloads is the API v6 client for Workloads. In v6 a Workload does not point at an Application and a Firewall: it carries one binding per Environment, naming the Deployment whose active release it serves and the domains it answers on.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c *http.Client, url string, token string) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, req sdk.WorkloadRequest) (sdk.Workload, error)

Create creates a Workload.

func (*Client) FindByName

func (c *Client) FindByName(ctx context.Context, name string) (sdk.Workload, bool, error)

FindByName returns the Workload with exactly this name, if any.

func (*Client) Get

func (c *Client) Get(ctx context.Context, id int64) (sdk.Workload, error)

Get reads one Workload.

func (*Client) Update

func (c *Client) Update(ctx context.Context, id int64, req sdk.WorkloadRequest) (sdk.Workload, error)

Update replaces a Workload. The request is complete: fields left out are reset, which is why callers start from Get.

Jump to

Keyboard shortcuts

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