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
- type WorkflowRuntime
Constants ¶
This section is empty.
Variables ¶
View Source
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
// 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 ¶
type WorkflowRuntime ¶
Click to show internal directories.
Click to hide internal directories.