Documentation ¶
Index ¶
- func Key(resource Resource) string
- func Kind(resource Resource) string
- func SplitKey(key string) (string, string, string, error)
- func UpdateListMetadata(resources ResourceList, updateFunc func(meta *core.Metadata))
- func UpdateMetadata(resource Resource, updateFunc func(meta *core.Metadata))
- func UpdateStatus(resource InputResource, updateFunc func(status *core.Status))
- func Validate(resource Resource) error
- func ValidateName(name string) error
- type CloneableResource
- type HashableResource
- type InputResource
- type InputResourceList
- func (list InputResourceList) AsResourceList() ResourceList
- func (list InputResourceList) Contains(list2 InputResourceList) bool
- func (list InputResourceList) Copy() InputResourceList
- func (list InputResourceList) Equal(list2 InputResourceList) bool
- func (list InputResourceList) FilterByKind(kind string) InputResourceList
- func (list InputResourceList) FilterByList(list2 InputResourceList) InputResourceList
- func (list InputResourceList) FilterByNames(names []string) InputResourceList
- func (list InputResourceList) FilterByNamespaces(namespaces []string) InputResourceList
- func (list InputResourceList) Find(namespace, name string) (InputResource, error)
- func (list InputResourceList) Names() []string
- func (list InputResourceList) Namespaces() []string
- type InputResourcesByKind
- type ProtoResource
- type Resource
- type ResourceList
- func (list ResourceList) AsInputResourceList() InputResourceList
- func (list ResourceList) ByCluster() map[string]ResourceList
- func (list ResourceList) Contains(list2 ResourceList) bool
- func (list ResourceList) Copy() ResourceList
- func (list ResourceList) Each(do func(resource Resource))
- func (list ResourceList) EachErr(do func(resource Resource) error) error
- func (list ResourceList) Equal(list2 ResourceList) bool
- func (list ResourceList) FilterByKind(kind string) ResourceList
- func (list ResourceList) FilterByList(list2 ResourceList) ResourceList
- func (list ResourceList) FilterByNames(names []string) ResourceList
- func (list ResourceList) FilterByNamespaces(namespaces []string) ResourceList
- func (list ResourceList) Find(namespace, name string) (Resource, error)
- func (list ResourceList) Names() []string
- func (list ResourceList) Namespaces() []string
- func (list ResourceList) Sort() ResourceList
- type ResourcesById
- type ResourcesByKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateListMetadata ¶
func UpdateListMetadata(resources ResourceList, updateFunc func(meta *core.Metadata))
func UpdateMetadata ¶
func UpdateStatus ¶
func UpdateStatus(resource InputResource, updateFunc func(status *core.Status))
func ValidateName ¶
Types ¶
type CloneableResource ¶
type HashableResource ¶
type InputResource ¶
type InputResourceList ¶
type InputResourceList []InputResource
func (InputResourceList) AsResourceList ¶
func (list InputResourceList) AsResourceList() ResourceList
func (InputResourceList) Contains ¶
func (list InputResourceList) Contains(list2 InputResourceList) bool
func (InputResourceList) Copy ¶
func (list InputResourceList) Copy() InputResourceList
func (InputResourceList) Equal ¶
func (list InputResourceList) Equal(list2 InputResourceList) bool
func (InputResourceList) FilterByKind ¶
func (list InputResourceList) FilterByKind(kind string) InputResourceList
func (InputResourceList) FilterByList ¶
func (list InputResourceList) FilterByList(list2 InputResourceList) InputResourceList
func (InputResourceList) FilterByNames ¶
func (list InputResourceList) FilterByNames(names []string) InputResourceList
func (InputResourceList) FilterByNamespaces ¶
func (list InputResourceList) FilterByNamespaces(namespaces []string) InputResourceList
func (InputResourceList) Find ¶
func (list InputResourceList) Find(namespace, name string) (InputResource, error)
func (InputResourceList) Names ¶
func (list InputResourceList) Names() []string
func (InputResourceList) Namespaces ¶
func (list InputResourceList) Namespaces() []string
type InputResourcesByKind ¶
type InputResourcesByKind map[string]InputResourceList
func (InputResourcesByKind) Add ¶
func (m InputResourcesByKind) Add(resource InputResource)
func (InputResourcesByKind) Get ¶
func (m InputResourcesByKind) Get(resource InputResource) InputResourceList
func (InputResourcesByKind) List ¶
func (m InputResourcesByKind) List() InputResourceList
type ProtoResource ¶
func ProtoCast ¶
func ProtoCast(res Resource) (ProtoResource, error)
type Resource ¶
type ResourceList ¶
type ResourceList []Resource
func (ResourceList) AsInputResourceList ¶
func (list ResourceList) AsInputResourceList() InputResourceList
func (ResourceList) ByCluster ¶
func (list ResourceList) ByCluster() map[string]ResourceList
func (ResourceList) Contains ¶
func (list ResourceList) Contains(list2 ResourceList) bool
func (ResourceList) Copy ¶
func (list ResourceList) Copy() ResourceList
func (ResourceList) Each ¶
func (list ResourceList) Each(do func(resource Resource))
func (ResourceList) EachErr ¶
func (list ResourceList) EachErr(do func(resource Resource) error) error
func (ResourceList) Equal ¶
func (list ResourceList) Equal(list2 ResourceList) bool
func (ResourceList) FilterByKind ¶
func (list ResourceList) FilterByKind(kind string) ResourceList
func (ResourceList) FilterByList ¶
func (list ResourceList) FilterByList(list2 ResourceList) ResourceList
func (ResourceList) FilterByNames ¶
func (list ResourceList) FilterByNames(names []string) ResourceList
func (ResourceList) FilterByNamespaces ¶
func (list ResourceList) FilterByNamespaces(namespaces []string) ResourceList
func (ResourceList) Names ¶
func (list ResourceList) Names() []string
func (ResourceList) Namespaces ¶
func (list ResourceList) Namespaces() []string
func (ResourceList) Sort ¶
func (list ResourceList) Sort() ResourceList
type ResourcesById ¶
func (ResourcesById) List ¶
func (m ResourcesById) List() ResourceList
type ResourcesByKind ¶
type ResourcesByKind map[string]ResourceList
func (ResourcesByKind) Add ¶
func (m ResourcesByKind) Add(resources ...Resource)
func (ResourcesByKind) Get ¶
func (m ResourcesByKind) Get(resource Resource) []Resource
func (ResourcesByKind) List ¶
func (m ResourcesByKind) List() ResourceList
Click to show internal directories.
Click to hide internal directories.