pulumi

package
v0.0.0-...-7965783 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 39 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 (
	StateStorageTypeGcpBucket     = gcloud.StateStorageTypeGcpBucket
	StateStorageTypeS3Bucket      = aws.StateStorageTypeS3Bucket
	StateStorageTypeFileSystem    = fs.StateStorageTypeFileSystem
	SecretsProviderTypePassPhrase = fs.SecretsProviderTypePassphrase
	BackendTypePulumiCloud        = "pulumi-cloud"
	SecretsProviderTypeGcpKms     = "gcp-kms"
	SecretsProviderTypeAwsKms     = "aws-kms"
)

Variables

View Source
var NotConfiguredRegistrarError = errors.New("regisrar is not configured")

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 WithContextAction

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

Types

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"`
}

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

Jump to

Keyboard shortcuts

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