crd

package
v0.0.0-...-793517a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBundleToSpec

func ConvertBundleToSpec(spec v1alpha1.BundleSpec, id string) (*bundle.Spec, error)

ConvertBundleToSpec accepts a bundle-client-go BundleSpec along with its id (which is often the Bundle's name), and will convert these into a bundle Spec type.

func ConvertJobMethodToAPB

func ConvertJobMethodToAPB(j v1alpha1.JobMethod) bundle.JobMethod

ConvertJobMethodToAPB will convert crd job method to bundle job method.

func ConvertJobMethodToCRD

func ConvertJobMethodToCRD(j bundle.JobMethod) v1alpha1.JobMethod

ConvertJobMethodToCRD will convert the bundle job method to the crd job method.

func ConvertServiceBindingToAPB

func ConvertServiceBindingToAPB(bi v1alpha1.BundleBinding, id string) (*bundle.BindInstance, error)

ConvertServiceBindingToAPB accepts a bundle-client-go ServiceBindingSpec along with its id (which is often the ServiceBinding's name), and will convert these into a bundle BindInstance.

func ConvertServiceBindingToCRD

func ConvertServiceBindingToCRD(bi *bundle.BindInstance) (v1alpha1.BundleBinding, error)

ConvertServiceBindingToCRD will take a bundle BindInstance and convert it to a ServiceBindingSpec CRD type.

func ConvertServiceInstanceToAPB

func ConvertServiceInstanceToAPB(si v1alpha1.BundleInstance, spec *bundle.Spec, id string) (*bundle.ServiceInstance, error)

ConvertServiceInstanceToAPB will take a ServiceInstanceSpec its associated bundle Spec, as well as an id (often the ServiceInstance's name), and will convert those to a bundle ServiceInstance.

func ConvertServiceInstanceToCRD

func ConvertServiceInstanceToCRD(si *bundle.ServiceInstance) (v1alpha1.BundleInstance, error)

ConvertServiceInstanceToCRD will take a bundle ServiceInstance and convert it to a ServiceInstanceSpec CRD type.

func ConvertSpecToBundle

func ConvertSpecToBundle(spec *bundle.Spec) (v1alpha1.BundleSpec, error)

ConvertSpecToBundle will convert a bundle Spec to a Bundle CRD resource type.

func ConvertStateToAPB

func ConvertStateToAPB(s v1alpha1.State) bundle.State

ConvertStateToAPB will take a bundle-client-go State type and convert it to a bundle State type.

func ConvertStateToCRD

func ConvertStateToCRD(s bundle.State) v1alpha1.State

ConvertStateToCRD will take an bundle State type and convert it to a broker-client-go State type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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