Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABOption ¶
type ABOption func(*APIBinding)
ABOption uses function option mode to change the default values of APIBinding attributes
func SetAPIBindingName ¶
SetAPIBindingName sets the APIBinding's name
func SetAPIBindingReferenceExportName ¶
SetAPIBindingReferenceExportName sets the APIBinding's workspace reference exportName
func SetAPIBindingReferencePath ¶
SetAPIBindingReferencePath sets the APIBinding's workspace reference path
type APIBinding ¶
type APIBinding struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata struct { Name string `json:"name"` } `json:"metadata"` Spec struct { Reference struct { Workspace struct { Path string `json:"path"` ExportName string `json:"exportName"` } `json:"workspace"` } `json:"reference"` } `json:"spec"` }
APIBinding struct definition
func NewAPIBinding ¶
func NewAPIBinding(opts ...ABOption) APIBinding
NewAPIBinding create a new customized APIBinding
func (*APIBinding) Clean ¶
func (apb *APIBinding) Clean(k *exutil.CLI) error
Clean the APIBinding resource
func (*APIBinding) CreateAsExpectedResult ¶
func (apb *APIBinding) CreateAsExpectedResult(k *exutil.CLI, successFlag bool, containsMsg string)
CreateAsExpectedResult creates APIBinding CR and checks the created result is as expected
Click to show internal directories.
Click to hide internal directories.