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 ¶
DeleteParams defines parameters for deleting a single resource
type ListParams ¶
ListParams defines parameters for listing resources
type PromoteParams ¶
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 (*Resource) Delete ¶
func (r *Resource) Delete(params DeleteParams) error
Delete deletes a single resource
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.
Click to show internal directories.
Click to hide internal directories.