Documentation
¶
Index ¶
- Constants
- type Engine
- func (e *Engine) CreateBuild(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (engines.BuildCreationResponse, error)
- func (e *Engine) EnsurePrerequisites(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) error
- func (e *Engine) ExtractBuildArtifacts(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (*engines.BuildArtifacts, error)
- func (e *Engine) GetBuildStatus(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (engines.BuildStatus, error)
- func (e *Engine) GetName() string
Constants ¶
View Source
const ( WorkflowServiceAccountName = "workflow-sa" WorkflowRoleName = "workflow-role" WorkflowRoleBindingName = "workflow-role-binding" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implements BuildEngine interface for Argo Workflows
func (*Engine) CreateBuild ¶
func (e *Engine) CreateBuild(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (engines.BuildCreationResponse, error)
CreateBuild creates an Argo Workflow for the build
func (*Engine) EnsurePrerequisites ¶
func (e *Engine) EnsurePrerequisites(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) error
EnsurePrerequisites creates namespace, service account, role, and role binding
func (*Engine) ExtractBuildArtifacts ¶
func (e *Engine) ExtractBuildArtifacts(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (*engines.BuildArtifacts, error)
ExtractBuildArtifacts extracts image and workload CR from completed workflow
func (*Engine) GetBuildStatus ¶
func (e *Engine) GetBuildStatus(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (engines.BuildStatus, error)
GetBuildStatus retrieves the current status of the Argo Workflow
Click to show internal directories.
Click to hide internal directories.