Documentation
¶
Index ¶
- type Environment
- type Inventory
- type Project
- type Release
- type Service
- func (s Service) Apply(ctx context.Context, ...) error
- func (s Service) CleanSnapshots(inventory Inventory, confirmation string) error
- func (s Service) Plan(ctx context.Context, project, environment, namespace, release string) error
- func (s Service) Sync(ctx context.Context, inventory Inventory) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Inventory ¶
type Inventory struct {
Projects []Project `yaml:"projects"`
}
func LoadInventory ¶
type Project ¶
type Project struct {
Key string `yaml:"key"`
DisplayName string `yaml:"display_name"`
Environments []Environment `yaml:"environments"`
}
type Release ¶
type Release struct {
Project string `yaml:"project" json:"-"`
Environment string `yaml:"environment" json:"-"`
Context string `yaml:"context" json:"-"`
Name string `yaml:"name" json:"name"`
Namespace string `yaml:"namespace" json:"namespace"`
Revision string `yaml:"revision" json:"revision"`
Updated string `yaml:"updated" json:"updated"`
Status string `yaml:"status" json:"status"`
Chart string `yaml:"chart" json:"chart"`
ChartName string `yaml:"chart_name" json:"-"`
ChartVersion string `yaml:"chart_version" json:"-"`
AppVersion string `yaml:"app_version" json:"app_version"`
SyncedAt time.Time `yaml:"synced_at" json:"-"`
}
type Service ¶
type Service struct {
Root string
Helm string
Kubectl string
Concurrency int
Timeout time.Duration
Stdout io.Writer
Stderr io.Writer
}
func (Service) CleanSnapshots ¶
CleanSnapshots removes generated observed snapshots while preserving every operator-owned working override. It is intentionally inventory-scoped so a typo in Root cannot remove unrelated platform data.
Click to show internal directories.
Click to hide internal directories.