Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAndCopyShapeByName ¶
func FindAndCopyShapeByName(shapes []wiringplugin.Shape, name wiringplugin.ShapeName, copyInto wiringplugin.Shape) (bool, error)
FindAndCopyShapeByName iterates over a given array of Shapes, finding one based on a given name and will error if the given name belongs to multiple shapes
Types ¶
type BindableShapeStruct ¶
type BindableShapeStruct struct {
ServiceInstanceName ProtoReference `json:"serviceInstanceName"`
}
BindableShapeStruct represents a bit of information that is needed to create a Service Catalog ServiceBinding object. To be embedded into other shapes' structs where a ServiceInstance needs to be bound to to get outputs for that shape. If an autowiring plugin exposes multiple shapes that have this struct embedded it may or may not be the case that they all refer to the same ServiceInstance. It is responsibility of the consuming side to track if more than one ServiceBinding needs to be created to consume values from those shapes. +k8s:deepcopy-gen=true
func (*BindableShapeStruct) DeepCopy ¶
func (in *BindableShapeStruct) DeepCopy() *BindableShapeStruct
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindableShapeStruct.
func (*BindableShapeStruct) DeepCopyInto ¶
func (in *BindableShapeStruct) DeepCopyInto(out *BindableShapeStruct)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BindingProtoReference ¶
type BindingProtoReference struct { Path string `json:"path,omitempty"` Example interface{} `json:"example,omitempty"` NamePostfix string `json:"namePostfix,omitempty"` }
BindingProtoReference is a reference to the ServiceBinding's contents. +k8s:deepcopy-gen=true
func (*BindingProtoReference) DeepCopy ¶
func (in *BindingProtoReference) DeepCopy() *BindingProtoReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindingProtoReference.
func (*BindingProtoReference) DeepCopyInto ¶
func (r *BindingProtoReference) DeepCopyInto(out *BindingProtoReference)
func (*BindingProtoReference) ToReference ¶
func (r *BindingProtoReference) ToReference(bindingResourceName smith_v1.ResourceName, nameElems ...string) smith_v1.Reference
ToReference should be used to augment BindingProtoReference with missing information to get a full Reference.
type BindingSecretProtoReference ¶
type BindingSecretProtoReference struct { Path string `json:"path,omitempty"` Example interface{} `json:"example,omitempty"` NamePostfix string `json:"namePostfix,omitempty"` }
BindingProtoReference is a reference to the ServiceBinding's Secret's contents. +k8s:deepcopy-gen=true
func (*BindingSecretProtoReference) DeepCopy ¶
func (in *BindingSecretProtoReference) DeepCopy() *BindingSecretProtoReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindingSecretProtoReference.
func (*BindingSecretProtoReference) DeepCopyInto ¶
func (r *BindingSecretProtoReference) DeepCopyInto(out *BindingSecretProtoReference)
func (*BindingSecretProtoReference) ToReference ¶
func (r *BindingSecretProtoReference) ToReference(bindingResourceName smith_v1.ResourceName, nameElems ...string) smith_v1.Reference
ToReference should be used to augment BindingSecretProtoReference with missing information to get a full Reference.
type ProtoReference ¶
type ProtoReference struct { Resource smith_v1.ResourceName `json:"resource"` Path string `json:"path,omitempty"` Example interface{} `json:"example,omitempty"` Modifier string `json:"modifier,omitempty"` NamePostfix string `json:"namePostfix,omitempty"` }
ProtoReference represents bits of information that need to be augmented with more information to construct a valid Smith reference. +k8s:deepcopy-gen=true
func (*ProtoReference) DeepCopy ¶
func (in *ProtoReference) DeepCopy() *ProtoReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtoReference.
func (*ProtoReference) DeepCopyInto ¶
func (r *ProtoReference) DeepCopyInto(out *ProtoReference)
DeepCopyInto handle the interface{} deepcopy (which k8s can't autogen, since it doesn't know it's JSON).
func (*ProtoReference) ToReference ¶
func (r *ProtoReference) ToReference(nameElems ...string) smith_v1.Reference
ToReference should be used to augment ProtoReference with missing information to get a full Reference.