Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { PhaseByID(ID) (Phase, error) PlanByID(ID) (Plan, error) PhaseByAPIObj(*v1alpha1.Phase) (Phase, error) ClusterMap() (clustermap.ClusterMap, error) }
Client is a phase client that can be used by command line or ui packages
type Executor ¶
type Executor interface { Run(RunOptions) error Render(io.Writer, RenderOptions) error Validate() error Status() (ExecutorStatus, error) }
Executor interface should be implemented by each runner
type ExecutorConfig ¶
type ExecutorConfig struct { PhaseName string ClusterName string SinkBasePath string TargetPath string ClusterMap clustermap.ClusterMap ExecutorDocument document.Document KubeConfig kubeconfig.Interface BundleFactory document.BundleFactoryFunc PhaseConfigBundle document.Bundle Inventory inventoryifc.Inventory ContainerFunc container.ClientV1Alpha1FactoryFunc }
ExecutorConfig container to store all executor options
type ExecutorFactory ¶
type ExecutorFactory func(config ExecutorConfig) (Executor, error)
ExecutorFactory for executor instantiation
type ExecutorStatus ¶
type ExecutorStatus struct{}
ExecutorStatus is a struct which defines the status
type Helper ¶
type Helper interface { TargetPath() string PhaseRepoDir() string DocEntryPointPrefix() string WorkDir() string Phase(phaseID ID) (*v1alpha1.Phase, error) Plan(planID ID) (*v1alpha1.PhasePlan, error) ListPhases(o ListPhaseOptions) ([]*v1alpha1.Phase, error) ListPlans() ([]*v1alpha1.PhasePlan, error) ClusterMapAPIobj() (*v1alpha1.ClusterMap, error) ClusterMap() (clustermap.ClusterMap, error) ExecutorDoc(phaseID ID) (document.Document, error) PhaseBundleRoot() string Inventory() ifc.Inventory PhaseEntryPointBasePath() string PhaseConfigBundle() document.Bundle }
Helper is a phase helper that provides phases with additional config related information
type ListPhaseOptions ¶
ListPhaseOptions is used to filter phases
type Phase ¶
type Phase interface { Validate() error Run(RunOptions) error DocumentRoot() (string, error) Details() (string, error) Executor() (Executor, error) Render(io.Writer, bool, RenderOptions) error Status() (PhaseStatus, error) }
Phase provides a way to interact with a phase
type PhaseStatus ¶
type PhaseStatus struct {
ExecutorStatus ExecutorStatus
}
PhaseStatus is a struct which defines status of phase
type Plan ¶
type Plan interface { Validate() error Run(PlanRunOptions) error Status(StatusOptions) (PlanStatus, error) }
Plan provides a way to interact with phase plans
type PlanRunOptions ¶
type PlanRunOptions struct { RunOptions ResumeFromPhase string }
PlanRunOptions holds options for plan run method
type RenderOptions ¶
RenderOptions holds options for render method
type RunOptions ¶
RunOptions holds options for run method