Documentation
¶
Index ¶
- type LoadKluctlProjectArgs
- type LoadedKluctlProject
- func (c *LoadedKluctlProject) CheckDynamicArg(target *types2.Target, argName string, argValue string) error
- func (c *LoadedKluctlProject) FindBaseTarget(name string) (*types2.Target, error)
- func (c *LoadedKluctlProject) FindDynamicTarget(name string) (*types2.DynamicTarget, error)
- func (c *LoadedKluctlProject) GetMetadata() *types2.ProjectMetadata
- func (p *LoadedKluctlProject) LoadClusterConfig(clusterName string) (*types.ClusterConfig, error)
- func (p *LoadedKluctlProject) NewTargetContext(ctx context.Context, targetName string, clusterName *string, dryRun bool, ...) (*TargetContext, error)
- type TargetContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadKluctlProjectArgs ¶
type LoadKluctlProjectArgs struct { RepoRoot string ProjectDir string ProjectUrl *git_url.GitUrl ProjectRef string ProjectConfig string LocalClusters string LocalDeployment string LocalSealedSecrets string RP repoprovider.RepoProvider ClientConfigGetter func(context *string) (*rest.Config, *api.Config, error) }
type LoadedKluctlProject ¶ added in v2.10.0
type LoadedKluctlProject struct { TmpDir string ProjectDir string DeploymentDir string ClustersDir string Config types2.KluctlProject DynamicTargets []*types2.DynamicTarget J2 *jinja2.Jinja2 RP repoprovider.RepoProvider // contains filtered or unexported fields }
func LoadKluctlProject ¶
func LoadKluctlProject(ctx context.Context, args LoadKluctlProjectArgs, tmpDir string, j2 *jinja2.Jinja2) (*LoadedKluctlProject, error)
func (*LoadedKluctlProject) CheckDynamicArg ¶ added in v2.10.0
func (*LoadedKluctlProject) FindBaseTarget ¶ added in v2.10.0
func (c *LoadedKluctlProject) FindBaseTarget(name string) (*types2.Target, error)
func (*LoadedKluctlProject) FindDynamicTarget ¶ added in v2.10.0
func (c *LoadedKluctlProject) FindDynamicTarget(name string) (*types2.DynamicTarget, error)
func (*LoadedKluctlProject) GetMetadata ¶ added in v2.10.0
func (c *LoadedKluctlProject) GetMetadata() *types2.ProjectMetadata
func (*LoadedKluctlProject) LoadClusterConfig ¶ added in v2.10.0
func (p *LoadedKluctlProject) LoadClusterConfig(clusterName string) (*types.ClusterConfig, error)
func (*LoadedKluctlProject) NewTargetContext ¶ added in v2.10.0
type TargetContext ¶
type TargetContext struct { KluctlProject *LoadedKluctlProject Target *types.Target ClusterContext string DeploymentProject *deployment.DeploymentProject DeploymentCollection *deployment.DeploymentCollection }
Click to show internal directories.
Click to hide internal directories.