trait

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 NewTraitCmd added in v1.1.0

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

Types

type DeleteParams

type DeleteParams struct {
	Namespace string
	TraitName string
}

DeleteParams defines parameters for deleting a single trait

func (DeleteParams) GetNamespace

func (p DeleteParams) GetNamespace() string

func (DeleteParams) GetTraitName

func (p DeleteParams) GetTraitName() string

type GetParams

type GetParams struct {
	Namespace string
	TraitName string
}

GetParams defines parameters for getting a single trait

func (GetParams) GetNamespace

func (p GetParams) GetNamespace() string

type ListParams

type ListParams struct {
	Namespace string
}

ListParams defines parameters for listing traits

func (ListParams) GetNamespace

func (p ListParams) GetNamespace() string

type Trait

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

Trait implements trait operations

func New

func New(c client.Interface) *Trait

New creates a new trait implementation

func (*Trait) Delete

func (t *Trait) Delete(params DeleteParams) error

Delete deletes a single trait

func (*Trait) Get

func (t *Trait) Get(params GetParams) error

Get retrieves a single trait and outputs it as YAML

func (*Trait) List

func (t *Trait) List(params ListParams) error

List lists all traits in a namespace

Jump to

Keyboard shortcuts

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