context

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 2 modules, 1 package

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

View Source
const (
	TagKeyProjectName = "projectName"
	TagKeyRunID       = "runid"
)

Variables

View Source
var (
	// mapt image to make self use. OCI image value is passed during building time
	// this is intended for full build process, when building mapt binary we need to ensure
	// OCI image already exists to make use of it
	OCI = "quay.io/redhat-developer/mapt:v0.0.0-unset"
)

Functions

This section is empty.

Types

type Context added in v0.9.6

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

func Init

func Init(ca *ContextArgs, provider Provider) (*Context, error)

func InitNoState added in v0.9.6

func InitNoState() *Context

func (*Context) BackedURL added in v0.9.6

func (c *Context) BackedURL() string

func (*Context) Context added in v0.10.0

func (c *Context) Context() context.Context

func (*Context) Debug added in v0.9.6

func (c *Context) Debug() bool

func (*Context) DebugLevel added in v0.9.6

func (c *Context) DebugLevel() uint

func (*Context) GetResultsOutputPath added in v0.9.6

func (c *Context) GetResultsOutputPath() string

func (*Context) GetTags added in v0.9.6

func (c *Context) GetTags() map[string]string

func (*Context) IsForceDestroy added in v0.9.6

func (c *Context) IsForceDestroy() bool

func (*Context) IsKeepState added in v0.10.0

func (c *Context) IsKeepState() bool

func (*Context) IsServerless added in v0.9.6

func (c *Context) IsServerless() bool

func (*Context) ProjectName added in v0.9.6

func (c *Context) ProjectName() string

func (*Context) ResourceTags added in v0.9.6

func (c *Context) ResourceTags() pulumi.StringMap

func (*Context) ResourceTagsWithCustom added in v0.9.6

func (c *Context) ResourceTagsWithCustom(customTags map[string]string) pulumi.StringMap

Get tags ready to be added to any pulumi resource in addition we cas set specific custom tags

func (*Context) RunID added in v0.9.6

func (c *Context) RunID() string

func (*Context) SetProjectName added in v0.9.6

func (c *Context) SetProjectName(projectName string)

func (*Context) StackNameByProject added in v0.9.6

func (c *Context) StackNameByProject(stackName string) string

func (*Context) TargetHostingPlace added in v0.9.9

func (c *Context) TargetHostingPlace() string

type ContextArgs added in v0.8.0

type ContextArgs struct {
	Context     context.Context
	ProjectName string
	BackedURL   string
	//Optional
	ResultsOutput string
	Debug         bool
	DebugLevel    uint
	Tags          map[string]string
	// serverless here is used to set the credentials based on
	// roles inherid by tasks as serverless
	// see SetAWSCredentials function
	// take into account that the name may change as the approach to get
	// credentials from role is more general approach
	Serverless bool
	// This forces destroy even when lock exists
	ForceDestroy bool
	// Keep Pulumi state files in backend after successful destroy (by default, state files are removed)
	KeepState bool
	// integrations
	GHRunnerArgs *github.GithubRunnerArgs
	CirrusPWArgs *cirrus.PersistentWorkerArgs
	GLRunnerArgs *gitlab.GitLabRunnerArgs
}

type Provider added in v0.8.2

type Provider interface {
	Init(ctx context.Context, backedURL string) error
	DefaultHostingPlace() (*string, error)
}

Jump to

Keyboard shortcuts

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