Documentation
¶
Index ¶
- Variables
- type Context
- func (ctx *Context) AttachCredentials(validationCtx context.Context, skipValidation bool) error
- func (ctx *Context) AttachEnvironmentSet() error
- func (ctx *Context) AttachResolvedRegistry() error
- func (ctx *Context) AttachSettings(cmd *cobra.Command, validateDeployRPC bool) error
- func (ctx *Context) AttachTenantContext(validationCtx context.Context) error
- func (ctx *Context) FinalizeDeferredWorkflowOwner(cmd *cobra.Command) error
- func (ctx *Context) ValidateOnchainRegistryRPC() error
- type WorkflowRuntime
Constants ¶
This section is empty.
Variables ¶
var ( ErrNoCredentials = errors.New("no credentials found") ErrValidationFailed = errors.New("credential validation failed") )
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Logger *zerolog.Logger
Viper *viper.Viper
ClientFactory client.Factory
Settings *settings.Settings
Credentials *credentials.Credentials
EnvironmentSet *environments.EnvironmentSet
TenantContext *tenantctx.EnvironmentContext
ResolvedRegistry settings.ResolvedRegistry
Workflow WorkflowRuntime
OrgID string
DerivedWorkflowOwner string
// InvocationDir is the working directory at the time the CLI was invoked,
// before any os.Chdir calls made by SetExecutionContext.
InvocationDir string
}
func (*Context) AttachCredentials ¶
func (*Context) AttachEnvironmentSet ¶
func (*Context) AttachResolvedRegistry ¶ added in v1.11.0
AttachResolvedRegistry resolves the deployment-registry from workflow settings against the tenant context registries. Must be called after AttachSettings and AttachTenantContext.
func (*Context) AttachSettings ¶
func (*Context) AttachTenantContext ¶ added in v1.8.0
AttachTenantContext loads the user context for the current environment. If the manifest is missing, it is fetched from the service first.
func (*Context) FinalizeDeferredWorkflowOwner ¶ added in v1.12.0
FinalizeDeferredWorkflowOwner fills workflow owner when settings load deferred it (non-empty deployment-registry). Call after AttachResolvedRegistry.
func (*Context) ValidateOnchainRegistryRPC ¶ added in v1.14.0
ValidateOnchainRegistryRPC validates the deployment RPC URL when the resolved registry is on-chain. It is a no-op for off-chain (private) registries. A nil resolved registry is treated as on-chain (the default). Must be called after AttachResolvedRegistry.