environment

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(client *client.ClientWithResponses) *Repo

func (*Repo) GetEnvironment

func (e *Repo) GetEnvironment(ctx context.Context, id string) (*client.Environment, error)

GetEnvironment retrieves an environment by ID. Note: We are not checking the workspace here because we currently only call this is from contexts where we've pulled the environment ID from a resource that was already checked. If this changes, we should fetch the project and check its workspace. For now, we will avoid the extra network call.

func (*Repo) ListEnvironments

func (e *Repo) ListEnvironments(ctx context.Context, params *client.ListEnvironmentsParams) ([]*client.Environment, error)

Jump to

Keyboard shortcuts

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