controllers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeploymentError added in v0.1.2

type CreateDeploymentError struct {
	// contains filtered or unexported fields
}

CreateDeploymentError is return when the deployement cannot get created

func (CreateDeploymentError) Error added in v0.1.2

func (e CreateDeploymentError) Error() string

type CreateNetworkDeviceError added in v0.1.2

type CreateNetworkDeviceError struct {
	// contains filtered or unexported fields
}

CreateNetworkDeviceError is return when the network device cannot get created

func (CreateNetworkDeviceError) Error added in v0.1.2

func (e CreateNetworkDeviceError) Error() string

type Credentials

type Credentials struct {
	Username string
	Password string
}

Credentials holds the information for authenticating with the Server.

func (*Credentials) Validate

func (creds *Credentials) Validate() error

Validate returns an error if the credentials are invalid

type CredentialsValidationError

type CredentialsValidationError struct {
	// contains filtered or unexported fields
}

CredentialsValidationError is returned when the provided Target credentials are invalid (e.g. null)

func (CredentialsValidationError) Error

type DeleteDeploymentError added in v0.1.2

type DeleteDeploymentError struct {
	// contains filtered or unexported fields
}

DeleteDeploymentError is return when the deployement cannot get deleted

func (DeleteDeploymentError) Error added in v0.1.2

func (e DeleteDeploymentError) Error() string

type DeleteNetworkDeviceError added in v0.1.2

type DeleteNetworkDeviceError struct {
	// contains filtered or unexported fields
}

DeleteNetworkDeviceError is return when the network device cannot get deleted

func (DeleteNetworkDeviceError) Error added in v0.1.2

func (e DeleteNetworkDeviceError) Error() string

type EmptyTargetAddressError

type EmptyTargetAddressError struct {
	// contains filtered or unexported fields
}

EmptyTargetAddressError is returned when the Target address field for a network node is empty

func (EmptyTargetAddressError) Error

func (e EmptyTargetAddressError) Error() string

type EmptyTargetSecretError

type EmptyTargetSecretError struct {
	// contains filtered or unexported fields
}

EmptyTargetSecretError is returned when the Target secret for a network node is empty

func (EmptyTargetSecretError) Error

func (e EmptyTargetSecretError) Error() string

type GetNetworkDeviceError added in v0.1.2

type GetNetworkDeviceError struct {
	// contains filtered or unexported fields
}

GetNetworkDeviceError is return when the network device cannot be retrieved

func (GetNetworkDeviceError) Error added in v0.1.2

func (e GetNetworkDeviceError) Error() string

type NetworkNodeReconciler

type NetworkNodeReconciler struct {
	client.Client
	Log       logr.Logger
	Scheme    *runtime.Scheme
	Namespace string
}

NetworkNodeReconciler reconciles a NetworkNode object

func (*NetworkNodeReconciler) DeviceDriverMapFunc

func (r *NetworkNodeReconciler) DeviceDriverMapFunc(o client.Object) []ctrl.Request

DeviceDriverMapFunc is a handler.ToRequestsFunc to be used to enqeue request for reconciliation of FscProxy.

func (*NetworkNodeReconciler) Reconcile

func (r *NetworkNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NetworkNode object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile

func (*NetworkNodeReconciler) SetupWithManager

func (r *NetworkNodeReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, option controller.Options) error

SetupWithManager sets up the controller with the Manager.

type ResolveDeviceDriverRefError

type ResolveDeviceDriverRefError struct {
	// contains filtered or unexported fields
}

ResolveDeviceDriverRefError is returned when the device driver lookup fails

func (ResolveDeviceDriverRefError) Error

type ResolveTargetSecretRefError

type ResolveTargetSecretRefError struct {
	// contains filtered or unexported fields
}

ResolveTargetSecretRefError is returned when the Target secret for a network node is defined but cannot be found

func (ResolveTargetSecretRefError) Error

type SaveNetworkDeviceError added in v0.1.2

type SaveNetworkDeviceError struct {
	// contains filtered or unexported fields
}

SaveNetworkDeviceError is return when the network device cannot be saved

func (SaveNetworkDeviceError) Error added in v0.1.2

func (e SaveNetworkDeviceError) Error() string

type UpdateDeploymentError added in v0.1.2

type UpdateDeploymentError struct {
	// contains filtered or unexported fields
}

UpdateDeploymentError is return when the deployement cannot get updated

func (UpdateDeploymentError) Error added in v0.1.2

func (e UpdateDeploymentError) Error() string

type UpdateNetworkDeviceError added in v0.1.2

type UpdateNetworkDeviceError struct {
	// contains filtered or unexported fields
}

UpdateNetworkDeviceError is return when the network device cannot get updated

func (UpdateNetworkDeviceError) Error added in v0.1.2

func (e UpdateNetworkDeviceError) Error() string

Jump to

Keyboard shortcuts

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