project

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProjectCmd added in v1.1.0

func NewProjectCmd(f client.NewClientFunc) *cobra.Command

Types

type DeleteParams

type DeleteParams struct {
	Namespace   string
	ProjectName string
}

DeleteParams defines parameters for deleting a single project

func (DeleteParams) GetNamespace

func (p DeleteParams) GetNamespace() string

func (DeleteParams) GetProjectName

func (p DeleteParams) GetProjectName() string

type DeployParams added in v1.2.0

type DeployParams struct {
	Namespace   string
	ProjectName string
	To          string   // --to flag (target env for promotion)
	Release     string   // --release flag (optional explicit ProjectRelease name to pin)
	Set         []string // --set values (key=value) merged into spec.environmentConfigs
}

DeployParams defines parameters for deploying or promoting a project

func (DeployParams) GetNamespace added in v1.2.0

func (p DeployParams) GetNamespace() string

func (DeployParams) GetProjectName added in v1.2.0

func (p DeployParams) GetProjectName() string

type GetParams

type GetParams struct {
	Namespace   string
	ProjectName string
}

GetParams defines parameters for getting a single project

func (GetParams) GetNamespace

func (p GetParams) GetNamespace() string

type ListParams

type ListParams struct {
	Namespace string
}

ListParams defines parameters for listing projects

func (ListParams) GetNamespace

func (p ListParams) GetNamespace() string

type Project

type Project struct {
	// contains filtered or unexported fields
}

Project implements project operations

func New

func New(c client.Interface) *Project

New creates a new project implementation

func (*Project) Delete

func (p *Project) Delete(params DeleteParams) error

Delete deletes a single project

func (*Project) Deploy added in v1.2.0

func (p *Project) Deploy(params DeployParams) error

Deploy deploys or promotes a project by managing its ProjectReleaseBinding.

func (*Project) Get

func (p *Project) Get(params GetParams) error

Get retrieves a single project and outputs it as YAML

func (*Project) List

func (p *Project) List(params ListParams) error

List lists all projects in a namespace

func (*Project) Scaffold added in v1.2.0

func (p *Project) Scaffold(params ScaffoldParams) error

Scaffold generates a Project YAML from a (Cluster)ProjectType, and by default one ProjectReleaseBinding per environment in the deployment pipeline.

type ScaffoldParams added in v1.2.0

type ScaffoldParams struct {
	ProjectName        string
	Namespace          string
	ProjectType        string // --projecttype (namespace-scoped)
	ClusterProjectType string // --clusterprojecttype (cluster-scoped)
	DeploymentPipeline string // --deployment-pipeline
	OutputPath         string // -o
	SkipComments       bool
	SkipOptional       bool
	NoBindings         bool // skip per-environment ProjectReleaseBinding output
}

ScaffoldParams defines parameters for scaffolding a Project from a (Cluster)ProjectType

func (ScaffoldParams) GetNamespace added in v1.2.0

func (p ScaffoldParams) GetNamespace() string

func (ScaffoldParams) GetProjectName added in v1.2.0

func (p ScaffoldParams) GetProjectName() string

Jump to

Keyboard shortcuts

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