interfaces

package
v0.0.0-...-a212bfd Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object interface {
	// The object needs to implement Meta Object interface from API
	// machinery. This interface is used for various Client operations
	// on Kubernetes objects.
	metav1.Object
	// The object needs to implement Runtime Object interface from API
	// machinery.
	runtime.Object
}

Object is the interface which all Kubernetes objects implements. This interface can be used to pass around any Kubernetes Object. This helps keep the functions more generic and less tied to the specific Objects.

type Reconcile

type Reconcile interface {
	// Getter function for reconcile client
	GetClient() client.Client
	// Getter function for reconcile Scheme
	GetScheme() *runtime.Scheme
}

Reconcile is the interface for Reconcile object structs . This interface can be used to pass around Reconcile structs commonly used in Operators.

Note however that by default Reconcile structs generated using Operator SDK do not implement this interface. Add following functions to implement this interface.

func (r *ReconcileObject) GetClient() client.Client { return r.client }
func (r *ReconcileObject) GetScheme() *runtime.Scheme { return r.scheme }

The Reconcile object structs must implement this interface to use Operatorlib functions.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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