Resource.WithRelationship
Method
func (Resource) WithRelationship( resourceBuilder Resource, type_ string,) ResourceSignature
method
WithRelationship builderAdds a relationship to another resource using its builder.
WithRelationship( resourceBuilder Resource, type_ string,) ResourceParameters
resourceBuilder ResourceThe resource builder that the relationship is to.type_stringThe relationship type.Returns
ResourceA resource builder.
Returns a handle; failures surface later via Err().
Defined on
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
Applies to
This function applies to the following types: