ducktypes

package
v0.0.0-...-8aabc32 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package ducktypes contains helpers to interact with Knative duck-typed objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(obj *unstructured.Unstructured) *url.URL

Address returns the address of an Addressable object as a URL. Fails the test if not found.

func AddressOrNil

func AddressOrNil(obj *unstructured.Unstructured) *url.URL

Address returns the address of an Addressable object as a URL Retuns nil if not found.

func DestinationToMap

func DestinationToMap(dst *duckv1.Destination) map[string]interface{}

DestinationToMap performs a conversion of duckv1.Destination to map[string]interface{}. Useful to avoid errors such as "cannot deep copy *v1.KReference" while setting a fields on an unstructured.Unstrucured object.

func WaitUntilReady

WaitUntilReady waits until the given resource's status becomes ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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