cli

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 44 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *Options) *cobra.Command

New creates a new ESC CLI instance.

func NewClient added in v0.6.1

func NewClient(ctx context.Context) (*workspace.Account, client.Client, error)

NewClient returns a new client.Client with the same credentials as would be used by the ESC CLI.

func PrepareEnvironment added in v0.6.0

func PrepareEnvironment(e *esc.Environment, opts *PrepareOptions) (files, environ, secrets []string, err error)

PrepareEnvironment prepares the envvar and temporary file projections for an environment. Returns the paths to temporary files, environment variable pairs, and secret values.

Types

type Options

type Options struct {
	ParentPath string
	UserAgent  string

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer

	Colors colors.Colorization

	Login           httpstate.LoginManager
	PulumiWorkspace workspace.PulumiWorkspace
	// contains filtered or unexported fields
}

type PrepareOptions added in v0.6.0

type PrepareOptions struct {
	Quote   bool // True to quote environment variable values
	Pretend bool // True to skip actually writing temporary files
	Redact  bool // True to redact secrets. Ignored unless Pretend is set.
	// contains filtered or unexported fields
}

PrepareOptions contains options for PrepareEnvironment.

Directories

Path Synopsis
Package client implements a client for the Pulumi Service HTTP/REST API.
Package client implements a client for the Pulumi Service HTTP/REST API.

Jump to

Keyboard shortcuts

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