duck

package
v0.0.0-...-a045990 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

func (s *Source) DeepCopyObject() runtime.Object

DeepCopyObject noop method to satisfy Object interface

func (*Source) GetNamespace

func (s *Source) GetNamespace() string

GetNamespace returns the namespace of the Source, used for printing sources with namespace for commands like 'kn source list -A'

type SourceList

type SourceList struct {
	metav1.TypeMeta
	Items []Source
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL