scaleway

package
v0.0.0-...-814654e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Ensure is the method to implement to reconcile the resource
	Ensure(context.Context, runtime.Object) (bool, error)
	// Delete is the method to implement to delete the resource
	Delete(context.Context, runtime.Object) (bool, error)
	// GetOwners is the method to implement to get the resource's owners
	GetOwners(context.Context, runtime.Object) ([]Owner, error)

	// Webhooks
	// ValidateCreate is the method to implement for the creation validation
	ValidateCreate(context.Context, runtime.Object) (field.ErrorList, error)
	// ValidateUpdate is the method to implement for the update validation
	ValidateUpdate(context.Context, runtime.Object, runtime.Object) (field.ErrorList, error)
}

Manager is the interface implemented by all Scaleway products

type Owner

type Owner struct {
	Key    types.NamespacedName
	Object runtime.Object
}

Owner represent an owner of a Scaleway resource

Jump to

Keyboard shortcuts

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