resource

package
v1.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceCmd

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

Types

type DeleteParams

type DeleteParams struct {
	Namespace    string
	ResourceName string
}

DeleteParams defines parameters for deleting a single resource

type GetParams

type GetParams struct {
	Namespace    string
	ResourceName string
}

GetParams defines parameters for getting a single resource

type ListParams

type ListParams struct {
	Namespace string
	Project   string
}

ListParams defines parameters for listing resources

type PromoteParams

type PromoteParams struct {
	Namespace    string
	ResourceName string
	Environment  string
}

PromoteParams defines parameters for promoting a resource to a target environment

type Resource

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

Resource implements resource operations

func New

func New(c client.Interface) *Resource

New creates a new resource implementation

func (*Resource) Delete

func (r *Resource) Delete(params DeleteParams) error

Delete deletes a single resource

func (*Resource) Get

func (r *Resource) Get(params GetParams) error

Get retrieves a single resource and outputs it as YAML

func (*Resource) List

func (r *Resource) List(params ListParams) error

List lists resources in a namespace, optionally filtered by project

func (*Resource) Promote

func (r *Resource) Promote(params PromoteParams) error

Promote advances the ResourceReleaseBinding for the given environment to the resource's latest release. It is a thin client wrapper: read Resource.status.latestRelease.name, find the binding for the target environment, and PUT it with the new spec.resourceRelease. No dedicated server endpoint.

Jump to

Keyboard shortcuts

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