context

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

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) 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) 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 {
	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
	// integrations
	GHRunnerArgs *github.GithubRunnerArgs
	CirrusPWArgs *cirrus.PersistentWorkerArgs
}

type Provider added in v0.8.2

type Provider interface {
	Init(backedURL string) error
	DefaultHostingPlace() (*string, error)
}

Jump to

Keyboard shortcuts

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