Documentation ¶
Index ¶
- func ResourceIDsSortHandler(id1, id2 *ResourceID) bool
- type ResourceID
- func (i *ResourceID) FilePath() string
- func (i *ResourceID) GroupVersionKind() schema.GroupVersionKind
- func (i *ResourceID) GroupVersionResource() (schema.GroupVersionResource, error)
- func (i *ResourceID) HumanID() string
- func (i *ResourceID) ID() string
- func (i *ResourceID) Name() string
- func (i *ResourceID) Namespace() string
- func (i *ResourceID) Namespaced() (namespaced bool, err error)
- func (i *ResourceID) VersionID() string
- type ResourceIDOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceIDsSortHandler ¶
func ResourceIDsSortHandler(id1, id2 *ResourceID) bool
Types ¶
type ResourceID ¶
type ResourceID struct {
// contains filtered or unexported fields
}
func NewResourceID ¶
func NewResourceID(name, namespace string, gvk schema.GroupVersionKind, opts ResourceIDOptions) *ResourceID
func NewResourceIDFromID ¶
func NewResourceIDFromID(id string, opts ResourceIDOptions) *ResourceID
func NewResourceIDFromUnstruct ¶
func NewResourceIDFromUnstruct(unstruct *unstructured.Unstructured, opts ResourceIDOptions) *ResourceID
func (*ResourceID) FilePath ¶
func (i *ResourceID) FilePath() string
func (*ResourceID) GroupVersionKind ¶
func (i *ResourceID) GroupVersionKind() schema.GroupVersionKind
func (*ResourceID) GroupVersionResource ¶
func (i *ResourceID) GroupVersionResource() (schema.GroupVersionResource, error)
func (*ResourceID) HumanID ¶
func (i *ResourceID) HumanID() string
func (*ResourceID) ID ¶
func (i *ResourceID) ID() string
func (*ResourceID) Name ¶
func (i *ResourceID) Name() string
func (*ResourceID) Namespace ¶
func (i *ResourceID) Namespace() string
func (*ResourceID) Namespaced ¶
func (i *ResourceID) Namespaced() (namespaced bool, err error)
func (*ResourceID) VersionID ¶
func (i *ResourceID) VersionID() string
type ResourceIDOptions ¶
type ResourceIDOptions struct { DefaultNamespace string FilePath string Mapper meta.ResettableRESTMapper }
Click to show internal directories.
Click to hide internal directories.