projectarchive

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Key     string `yaml:"key"`
	Context string `yaml:"context"`
}

type Inventory

type Inventory struct {
	Projects []Project `yaml:"projects"`
}

func LoadInventory

func LoadInventory(path string) (Inventory, error)

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) Apply

func (s Service) Apply(ctx context.Context, project, environment, namespace, release, confirmation string) error

func (Service) CleanSnapshots

func (s Service) CleanSnapshots(inventory Inventory, confirmation string) error

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.

func (Service) Plan

func (s Service) Plan(ctx context.Context, project, environment, namespace, release string) error

func (Service) Sync

func (s Service) Sync(ctx context.Context, inventory Inventory) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL