env

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnmarshalling = errors.New("failed to unmarshal environment(s)")

Functions

func NewCancelCmd

func NewCancelCmd() *cobra.Command

func NewGetAllEnvironmentsCmd

func NewGetAllEnvironmentsCmd() *cobra.Command

func NewGetEnvironmentCmd

func NewGetEnvironmentCmd() *cobra.Command

func NewRebuildCmd

func NewRebuildCmd() *cobra.Command

func NewRestartCmd

func NewRestartCmd() *cobra.Command

func NewReviveCmd

func NewReviveCmd() *cobra.Command

func NewStopCmd

func NewStopCmd() *cobra.Command

func NewVisitCmd

func NewVisitCmd() *cobra.Command

Types

type Response

type Response struct {
	Data struct {
		types.Environment
	} `json:"data"`
}

func GetEnvironmentByID

func GetEnvironmentByID(client requests.Client, id string) (*Response, error)

GetEnvironmentByID is a helper function that tries to fetch an environment, given a client and environment ID.

Jump to

Keyboard shortcuts

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