pulumi

package
v0.0.0-...-6f76ffe Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTypePulumiToken   = "pulumi-token"
	ProvisionerTypePulumi = "pulumi"
)
View Source
const (
	ActionContextDeploy    contextActionValue = "deploy"
	ActionContextProvision contextActionValue = "provision"
	ActionContextCancel    contextActionValue = "cancel"
	ActionContextRefresh   contextActionValue = "refresh"
	ActionContextPreview   contextActionValue = "preview"
	ActionContextDestroy   contextActionValue = "destroy"
	ActionContextInit      contextActionValue = "init"
)
View Source
const (
	// Literal string instead of importing sc-plugin-gcp/api — SC core
	// stops Go-link-time importing the plugin's /api module in phase 5 of
	// the GCP extraction (mirrors the comment on StateStorageTypeS3Bucket
	// a few lines down — same reasoning: the token is a wire-level string
	// both sides have agreed on, a const in the plugin's /api is just one
	// place the spelling lives).
	StateStorageTypeGcpBucket = "gcp-bucket"
	// Literal string instead of the sc-plugin-aws/api constant so SC
	// core doesn't need to Go-link-time-import the plugin's /api
	// module. The token is a wire-level string that both sides have
	// agreed on since the aws plugin split; a const in the plugin's
	// /api is just one place that spelling lives. See A3 smoke.
	StateStorageTypeS3Bucket      = "s3-bucket"
	StateStorageTypeFileSystem    = fs.StateStorageTypeFileSystem
	SecretsProviderTypePassPhrase = fs.SecretsProviderTypePassphrase
	BackendTypePulumiCloud        = "pulumi-cloud"
	SecretsProviderTypeGcpKms     = "gcp-kms"
	SecretsProviderTypeAwsKms     = "aws-kms"
)

Variables

View Source
var NotConfiguredRegistrarError = pApi.NotConfiguredRegistrarError

NotConfiguredRegistrarError is an alias; the sentinel moved to pApi so that subpackages this package imports (pulumi/vm) can match on it without a cycle. Kept here under its original name because it is exported and matched on by name.

Functions

func InitPulumiProvisioner

func InitPulumiProvisioner(config api.Config, opts ...api.ProvisionerOption) (api.Provisioner, error)

func NotConfiguredRegistrar

func NotConfiguredRegistrar(ctx *sdk.Context, config api.RegistrarDescriptor, params pApi.ProvisionParams) (pApi.Registrar, error)

func ReadAuthConfig

func ReadAuthConfig(config *api.Config) (api.Config, error)

func ReadProvisionerConfig

func ReadProvisionerConfig(config *api.Config) (api.Config, error)

func RegisterComponentTemplateMergeFunc

func RegisterComponentTemplateMergeFunc(templateType string, fnc ComponentTemplateMergeFunc)

RegisterComponentTemplateMergeFunc is a shim that forwards to pApi.RegisterComponentTemplateMergeFunc. Kept for API continuity.

func WithContextAction

func WithContextAction(ctx context.Context, action contextActionValue) context.Context

Types

type ComponentTemplateMergeFunc

type ComponentTemplateMergeFunc = pApi.ComponentTemplateMergeFunc

Component template merge registry moved to pulumi/api/mapping.go so per-template drivers (pulumi/vm, pulumi/aws, …) can register from their own init() without an import cycle back up into pulumi. Type alias kept here for callers that reference the old name.

type ProvisionerConfig

type ProvisionerConfig struct {
	Organization    string                `json:"organization" yaml:"organization"`
	StateStorage    StateStorageConfig    `json:"state-storage" yaml:"state-storage"`
	SecretsProvider SecretsProviderConfig `json:"secrets-provider" yaml:"secrets-provider"`
}

func (*ProvisionerConfig) SecretsProviderType

func (p *ProvisionerConfig) SecretsProviderType() string

SecretsProviderType implements api.ProvisionerConfigAware similarly.

func (*ProvisionerConfig) StateStorageType

func (p *ProvisionerConfig) StateStorageType() string

StateStorageType implements api.ProvisionerConfigAware so ValidatePluginRequirements can reach the state-storage type token without importing pkg/clouds/pulumi.

type Pulumi

type Pulumi interface {
	api.Provisioner
}

type SecretsProviderConfig

type SecretsProviderConfig struct {
	Type       string `json:"type" yaml:"type"`
	api.Config `json:",inline" yaml:",inline"`
}

type StateStorageConfig

type StateStorageConfig struct {
	Type       string `json:"type" yaml:"type"`
	api.Config `json:",inline" yaml:",inline"`
}

type TokenAuthDescriptor

type TokenAuthDescriptor struct {
	Credentials string `json:"credentials" yaml:"credentials"`
}

TokenAuthDescriptor describes the pulumi token auth schema

func (*TokenAuthDescriptor) CredentialsValue

func (d *TokenAuthDescriptor) CredentialsValue() string

func (*TokenAuthDescriptor) IsProvisionEnabled

func (d *TokenAuthDescriptor) IsProvisionEnabled() bool

func (*TokenAuthDescriptor) KeyUrl

func (d *TokenAuthDescriptor) KeyUrl() string

func (*TokenAuthDescriptor) ProjectIdValue

func (d *TokenAuthDescriptor) ProjectIdValue() string

func (*TokenAuthDescriptor) ProviderType

func (d *TokenAuthDescriptor) ProviderType() string

func (*TokenAuthDescriptor) StorageUrl

func (d *TokenAuthDescriptor) StorageUrl() string

Directories

Path Synopsis
Package k3s provisions a Kubernetes cluster SC installs itself, over SSH, onto the machines of a `vm` resource.
Package k3s provisions a Kubernetes cluster SC installs itself, over SSH, onto the machines of a `vm` resource.
Package vm provisions the machines behind SC's VM-based delivery paths: compose on one VM (P5) and, next, k3s that SC stands up itself (P3).
Package vm provisions the machines behind SC's VM-based delivery paths: compose on one VM (P5) and, next, k3s that SC stands up itself (P3).

Jump to

Keyboard shortcuts

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