Documentation ¶
Index ¶
- type Namespace
- func (namespace Namespace) Age() string
- func (namespace Namespace) Copy() Namespace
- func (namespace Namespace) LabelAndID() string
- func (ns Namespace) MarshalJSON() ([]byte, error)
- func (ns Namespace) MarshalYAML() (interface{}, error)
- func (namespace Namespace) OwnerAndLabel() string
- func (ns Namespace) RenderJSON() (string, error)
- func (namespace Namespace) RenderTable() string
- func (ns Namespace) RenderYAML() (string, error)
- func (Namespace) TableHeaders() []string
- func (namespace Namespace) TableRows() [][]string
- func (namespace Namespace) ToKube() kubeModel.Namespace
- func (namespace Namespace) UsageCPU() string
- func (namespace Namespace) UsageMemory() string
- func (namespace Namespace) UserNames() []string
- type NamespaceList
- func (list NamespaceList) Copy() NamespaceList
- func (list NamespaceList) Filter(pred func(Namespace) bool) NamespaceList
- func (list NamespaceList) Get(i int) Namespace
- func (list NamespaceList) GetByLabelAndOwner(owner, label string) (Namespace, bool)
- func (list NamespaceList) GetByUserFriendlyID(id string) (Namespace, bool)
- func (list NamespaceList) GetDefault(i int, defaultNs Namespace) (Namespace, bool)
- func (list NamespaceList) Head() (Namespace, bool)
- func (list NamespaceList) IDs() []string
- func (list NamespaceList) Labels() []string
- func (list NamespaceList) LabelsAndIDs() []string
- func (list NamespaceList) Len() int
- func (list NamespaceList) New() NamespaceList
- func (list NamespaceList) OwnersAndLabels() []string
- func (list NamespaceList) RenderJSON() (string, error)
- func (list NamespaceList) RenderTable() string
- func (list NamespaceList) RenderYAML() (string, error)
- func (_ NamespaceList) TableHeaders() []string
- func (list NamespaceList) TableRows() [][]string
- func (list NamespaceList) ToKube() kubeModels.NamespacesList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
func NamespaceFromKube ¶
func (Namespace) LabelAndID ¶
func (Namespace) MarshalJSON ¶
func (Namespace) MarshalYAML ¶
func (Namespace) OwnerAndLabel ¶
func (Namespace) RenderJSON ¶
func (Namespace) RenderTable ¶
func (Namespace) RenderYAML ¶
func (Namespace) TableHeaders ¶
func (Namespace) UsageMemory ¶
type NamespaceList ¶
type NamespaceList []Namespace
func NamespaceListFromKube ¶
func NamespaceListFromKube(kubeList kubeModels.NamespacesList) NamespaceList
func (NamespaceList) Copy ¶
func (list NamespaceList) Copy() NamespaceList
func (NamespaceList) Filter ¶
func (list NamespaceList) Filter(pred func(Namespace) bool) NamespaceList
func (NamespaceList) Get ¶
func (list NamespaceList) Get(i int) Namespace
func (NamespaceList) GetByLabelAndOwner ¶
func (list NamespaceList) GetByLabelAndOwner(owner, label string) (Namespace, bool)
func (NamespaceList) GetByUserFriendlyID ¶
func (list NamespaceList) GetByUserFriendlyID(id string) (Namespace, bool)
get Namespace by string $LABEL or $OWNER_LOGIN/$LABEL
func (NamespaceList) GetDefault ¶
func (list NamespaceList) GetDefault(i int, defaultNs Namespace) (Namespace, bool)
func (NamespaceList) Head ¶
func (list NamespaceList) Head() (Namespace, bool)
func (NamespaceList) IDs ¶
func (list NamespaceList) IDs() []string
func (NamespaceList) Labels ¶
func (list NamespaceList) Labels() []string
func (NamespaceList) LabelsAndIDs ¶
func (list NamespaceList) LabelsAndIDs() []string
func (NamespaceList) Len ¶
func (list NamespaceList) Len() int
func (NamespaceList) New ¶
func (list NamespaceList) New() NamespaceList
func (NamespaceList) OwnersAndLabels ¶
func (list NamespaceList) OwnersAndLabels() []string
func (NamespaceList) RenderJSON ¶
func (list NamespaceList) RenderJSON() (string, error)
func (NamespaceList) RenderTable ¶
func (list NamespaceList) RenderTable() string
func (NamespaceList) RenderYAML ¶
func (list NamespaceList) RenderYAML() (string, error)
func (NamespaceList) TableHeaders ¶
func (_ NamespaceList) TableHeaders() []string
func (NamespaceList) TableRows ¶
func (list NamespaceList) TableRows() [][]string
func (NamespaceList) ToKube ¶
func (list NamespaceList) ToKube() kubeModels.NamespacesList
Click to show internal directories.
Click to hide internal directories.