Documentation
¶
Index ¶
- Constants
- Variables
- func InitPulumiProvisioner(config api.Config, opts ...api.ProvisionerOption) (api.Provisioner, error)
- func NotConfiguredRegistrar(ctx *sdk.Context, config api.RegistrarDescriptor, params pApi.ProvisionParams) (pApi.Registrar, error)
- func ReadAuthConfig(config *api.Config) (api.Config, error)
- func ReadProvisionerConfig(config *api.Config) (api.Config, error)
- func RegisterComponentTemplateMergeFunc(templateType string, fnc ComponentTemplateMergeFunc)
- func WithContextAction(ctx context.Context, action contextActionValue) context.Context
- type ComponentTemplateMergeFunc
- type ProvisionerConfig
- type Pulumi
- type SecretsProviderConfig
- type StateStorageConfig
- type TokenAuthDescriptor
- func (d *TokenAuthDescriptor) CredentialsValue() string
- func (d *TokenAuthDescriptor) IsProvisionEnabled() bool
- func (d *TokenAuthDescriptor) KeyUrl() string
- func (d *TokenAuthDescriptor) ProjectIdValue() string
- func (d *TokenAuthDescriptor) ProviderType() string
- func (d *TokenAuthDescriptor) StorageUrl() string
Constants ¶
const ( AuthTypePulumiToken = "pulumi-token" ProvisionerTypePulumi = "pulumi" )
const ( ActionContextDeploy contextActionValue = "deploy" ActionContextProvision contextActionValue = "provision" ActionContextCancel contextActionValue = "cancel" ActionContextRefresh contextActionValue = "refresh" ActionContextPreview contextActionValue = "preview" ActionContextDestroy contextActionValue = "destroy" ActionContextInit contextActionValue = "init" )
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 ¶
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 RegisterComponentTemplateMergeFunc ¶
func RegisterComponentTemplateMergeFunc(templateType string, fnc ComponentTemplateMergeFunc)
RegisterComponentTemplateMergeFunc is a shim that forwards to pApi.RegisterComponentTemplateMergeFunc. Kept for API continuity.
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 StateStorageConfig ¶
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
Source Files
¶
- auth.go
- cancel.go
- create_stack.go
- deploy.go
- destroy.go
- destructive_replace.go
- events.go
- fs_state_store.go
- init.go
- login.go
- null_secret_checkpoint.go
- plugin_dispatch.go
- plugin_peer_dispatch.go
- plugin_preengine.go
- plugin_sidecars.go
- preview.go
- provision.go
- provision_order.go
- provisioner.go
- pulumi.go
- refresh.go
- registrar.go
- registrars.go
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). |