Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupVersionResourceNsPair ¶
type GroupVersionResourceNsPair struct { schema.GroupVersionResource metav1.APIResource }
func Listable ¶
func Listable(in []GroupVersionResourceNsPair) []GroupVersionResourceNsPair
func Matching ¶
func Matching(in []GroupVersionResourceNsPair, ref ResourceRef) []GroupVersionResourceNsPair
func NonMatching ¶
func NonMatching(in []GroupVersionResourceNsPair, ref ResourceRef) []GroupVersionResourceNsPair
func (GroupVersionResourceNsPair) Listable ¶
func (p GroupVersionResourceNsPair) Listable() bool
func (GroupVersionResourceNsPair) Namespaced ¶
func (p GroupVersionResourceNsPair) Namespaced() bool
type ObjectRef ¶
type ObjectRef struct { ResourceRef Name string }
type PartialResourceRef ¶
type PartialResourceRef struct {
schema.GroupVersionResource
}
func (PartialResourceRef) Matches ¶
func (r PartialResourceRef) Matches(other schema.GroupVersionResource) bool
type ResourceRef ¶
type ResourceRef struct {
schema.GroupVersionResource
}
type ResourceTypes ¶
type ResourceTypes struct {
// contains filtered or unexported fields
}
func NewResourceTypes ¶
func NewResourceTypes(coreClient kubernetes.Interface) ResourceTypes
func (ResourceTypes) All ¶
func (g ResourceTypes) All() ([]GroupVersionResourceNsPair, error)
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
func NewResources ¶
func NewResources(coreClient kubernetes.Interface, dynamicClient dynamic.Interface) Resources
func (Resources) All ¶
func (c Resources) All(resTypePairs []GroupVersionResourceNsPair, opts ResourcesAllOpts) ([]UnstructuredResourceNsPair, error)
type ResourcesAllOpts ¶
type ResourcesAllOpts struct { IncludeNonNamespaced bool IncludeAllNamespaces bool IncludeNamespaces []string }
func (ResourcesAllOpts) IncludesNamespace ¶
func (o ResourcesAllOpts) IncludesNamespace(ns string) bool
type UnstructuredResourceNsItemsPair ¶
type UnstructuredResourceNsItemsPair struct { Items []unstructured.Unstructured schema.GroupVersionResource Namespace string }
type UnstructuredResourceNsPair ¶
type UnstructuredResourceNsPair struct { Item unstructured.Unstructured schema.GroupVersionResource Namespace string }
Click to show internal directories.
Click to hide internal directories.