composable

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FailedStatus  = "Failed"
	PendingStatus = "Pending"
	OnlineStatus  = "Online"
)
View Source
const (
	Base64ToString  = "Base64ToString"
	StringToBase64  = "StringToBase64"
	StringToInt     = "StringToInt"
	StringToFloat   = "StringToFloat"
	StringToBool    = "StringToBool"
	ArrayToCSString = "ArrayToCSString"
	JsonToObject    = "JsonToObject"
	ObjectToJson    = "ObjectToJson"
	ToString        = "ToString"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Composable Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func Array2CSStringTransformer

func Array2CSStringTransformer(intValue interface{}) (interface{}, error)

func Base642StringTransformer

func Base642StringTransformer(value interface{}) (interface{}, error)

func CompoundTransformer

func CompoundTransformer(value interface{}, transformers ...Transformer) (interface{}, error)

Compound Transformer function

func CompoundTransformerNames

func CompoundTransformerNames(value interface{}, transNames ...string) (interface{}, error)

Compound Transformer function

func GroupQualifiedName

func GroupQualifiedName(apiResource metav1.APIResource) string

func JsonToObjectTransformer

func JsonToObjectTransformer(value interface{}) (interface{}, error)

func NameMatchesResource

func NameMatchesResource(name string, objGroup string, resource metav1.APIResource, resGroup string) bool

func ObjectToJsonTransformer

func ObjectToJsonTransformer(value interface{}) (interface{}, error)

func String2Base64Transformer

func String2Base64Transformer(value interface{}) (interface{}, error)

func String2BoolTransformer

func String2BoolTransformer(value interface{}) (interface{}, error)

func String2FloatTransformer

func String2FloatTransformer(value interface{}) (interface{}, error)

func String2IntTransformer

func String2IntTransformer(value interface{}) (interface{}, error)

func ToStringTransformer

func ToStringTransformer(value interface{}) (interface{}, error)

Types

type ReconcileComposable

type ReconcileComposable struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileComposable reconciles a Composable object

func (*ReconcileComposable) GetServerPreferredResources

func (r *ReconcileComposable) GetServerPreferredResources() ([]*metav1.APIResourceList, error)

func (*ReconcileComposable) LookupAPIResource

func (r *ReconcileComposable) LookupAPIResource(objKind, objGroup string, cache *composableCache) (*metav1.APIResource, error)

func (*ReconcileComposable) Reconcile

func (r *ReconcileComposable) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Composable object and makes changes based on the state read and what is in the Composable.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. The scaffolding writes a Deployment as an example Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=ibmcloud.ibm.com,resources=composables,verbs=get;list;watch;create;update;patch;delete

type Transformer

type Transformer func(interface{}) (interface{}, error)

Base Transformer function

Jump to

Keyboard shortcuts

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