client

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 9 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Requester   requests.Requester
	OrgLookupFn func() string
}

func New

func New(r requests.Requester, orgLookupFn func() string) Client

func (Client) AllEnvironmentUUIDs added in v1.6.0

func (c Client) AllEnvironmentUUIDs() (*types.UUIDResponse, error)

AllEnvironmentUUIDs tries to fetch all environment by UUIDs in an org.

func (Client) AllServices

func (c Client) AllServices(envID string) ([]types.Service, error)

AllServices tries to fetch an environment's services.

func (Client) EnvByID

func (c Client) EnvByID(id string) (*types.Response, error)

EnvByID tries to fetch an environment given its ID.

func (Client) FindService

func (c Client) FindService(serviceName, envID string) (*types.Service, error)

FindService tries to fetch a single service.

type Requester added in v1.7.0

type Requester interface {
	Do(method string, uri string, contentType string, body any) ([]byte, error)
}

Jump to

Keyboard shortcuts

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