Documentation ¶
Index ¶
Constants ¶
View Source
const DSListKind = "List"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct { metav1.TypeMeta // Name of the created source object Name string // Namespace of object, used for printing with namespace for example: 'kn source list -A' Namespace string // Kind of the source object created SourceKind string // Resource this source object represent Resource string // Sink configured for this source object Sink string // String representation if source is ready Ready string }
Source struct holds common properties between different eventing sources which we want to print for commands like 'kn source list'. The properties held in this struct is meant for simple access by human readable printer function
func (*Source) DeepCopyObject ¶
DeepCopyObject noop method to satisfy Object interface
func (*Source) GetNamespace ¶
GetNamespace returns the namespace of the Source, used for printing sources with namespace for commands like 'kn source list -A'
type SourceList ¶
SourceList for holding list of Source type objects
func ToSourceList ¶
func ToSourceList(uList *unstructured.UnstructuredList) *SourceList
ToSourceList transforms list of eventing sources objects received as UnstructuredList object into SourceList object
func (*SourceList) DeepCopyObject ¶
func (s *SourceList) DeepCopyObject() runtime.Object
DeepCopyObject noop method to satisfy Object interface
Click to show internal directories.
Click to hide internal directories.