dynamic

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KnDynamicClient

type KnDynamicClient interface {
	// Namespace in which this client is operating for
	Namespace() string

	// ListCRDs returns list of CRDs with their type and name
	ListCRDs(options metav1.ListOptions) (*unstructured.UnstructuredList, error)

	// ListSourceCRDs returns list of eventing sources CRDs
	ListSourcesTypes() (*unstructured.UnstructuredList, error)

	// ListSources returns list of available source objects
	ListSources(types ...WithType) (*unstructured.UnstructuredList, error)

	// RawClient returns the raw dynamic client interface
	RawClient() dynamic.Interface
}

KnDynamicClient to client-go Dynamic client. All methods are relative to the namespace specified during construction

func NewKnDynamicClient

func NewKnDynamicClient(client dynamic.Interface, namespace string) KnDynamicClient

NewKnDynamicClient is to invoke Eventing Sources Client API to create object

type TypesFilter added in v0.13.0

type TypesFilter []string

TypesFilter for keeping list of sources types to filter upo

type WithType added in v0.13.0

type WithType func(filters *TypesFilter)

WithType function for easy filtering on source types

func WithTypeFilter added in v0.13.0

func WithTypeFilter(name string) WithType

WithTypeFilter can be used to filter based on source type name

type WithTypes added in v0.13.0

type WithTypes []WithType

WithTypes for recording the source type filtering function WithType

func (WithTypes) List added in v0.13.0

func (types WithTypes) List() []string

List returns the source type name list recorded via WithTypeFilter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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