apibinding

package
v0.0.0-...-3256294 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

func SetAPIBindingName(name string) ABOption

SetAPIBindingName sets the APIBinding's name

func SetAPIBindingReferenceExportName

func SetAPIBindingReferenceExportName(exportName string) ABOption

SetAPIBindingReferenceExportName sets the APIBinding's workspace reference exportName

func SetAPIBindingReferencePath

func SetAPIBindingReferencePath(path string) ABOption

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) Create

func (apb *APIBinding) Create(k *exutil.CLI)

Create APIBinding

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

func (*APIBinding) Delete

func (apb *APIBinding) Delete(k *exutil.CLI)

Delete APIBinding

Jump to

Keyboard shortcuts

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