Documentation ¶
Overview ¶
scale-out, multi-cloud OpenStack/SWIFT services controller
Package SWIFT for the Edgefs manager.
Index ¶
- Variables
- type SWIFTController
- func (c *SWIFTController) CreateOrUpdate(s edgefsv1beta1.SWIFT, update bool, ownerRefs []metav1.OwnerReference) error
- func (c *SWIFTController) CreateService(s edgefsv1beta1.SWIFT, ownerRefs []metav1.OwnerReference) error
- func (c *SWIFTController) DeleteService(s edgefsv1beta1.SWIFT) error
- func (c *SWIFTController) StartWatch(namespace string, stopCh chan struct{}) error
- func (c *SWIFTController) UpdateService(s edgefsv1beta1.SWIFT, ownerRefs []metav1.OwnerReference) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SWIFTResource = opkit.CustomResource{ Name: customResourceName, Plural: customResourceNamePlural, Group: edgefsv1beta1.CustomResourceGroup, Version: edgefsv1beta1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(edgefsv1beta1.SWIFT{}).Name(), }
SWIFTResource represents the swift custom resource
Functions ¶
This section is empty.
Types ¶
type SWIFTController ¶
type SWIFTController struct {
// contains filtered or unexported fields
}
SWIFTController represents a controller object for swift custom resources
func NewSWIFTController ¶
func NewSWIFTController( context *clusterd.Context, rookImage string, hostNetwork bool, dataDirHostPath string, dataVolumeSize resource.Quantity, placement rookalpha.Placement, resources v1.ResourceRequirements, resourceProfile string, ownerRef metav1.OwnerReference, ) *SWIFTController
NewSWIFTController create controller for watching SWIFT custom resources created
func (*SWIFTController) CreateOrUpdate ¶
func (c *SWIFTController) CreateOrUpdate(s edgefsv1beta1.SWIFT, update bool, ownerRefs []metav1.OwnerReference) error
Start the swift instance
func (*SWIFTController) CreateService ¶
func (c *SWIFTController) CreateService(s edgefsv1beta1.SWIFT, ownerRefs []metav1.OwnerReference) error
Start the SWIFT manager
func (*SWIFTController) DeleteService ¶
func (c *SWIFTController) DeleteService(s edgefsv1beta1.SWIFT) error
Delete SWIFT service and possibly some artifacts.
func (*SWIFTController) StartWatch ¶
func (c *SWIFTController) StartWatch(namespace string, stopCh chan struct{}) error
StartWatch watches for instances of SWIFT custom resources and acts on them
func (*SWIFTController) UpdateService ¶
func (c *SWIFTController) UpdateService(s edgefsv1beta1.SWIFT, ownerRefs []metav1.OwnerReference) error
Click to show internal directories.
Click to hide internal directories.