swift

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

scale-out, multi-cloud OpenStack/SWIFT services controller

Package SWIFT for the Edgefs manager.

Index

Constants

This section is empty.

Variables

View Source
var SWIFTResource = k8sutil.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   edgefsv1.CustomResourceGroup,
	Version: edgefsv1.Version,
	Kind:    reflect.TypeOf(edgefsv1.SWIFT{}).Name(),
}

SWIFTResource represents the swift custom resource

Functions

This section is empty.

Types

type SWIFTController

type SWIFTController struct {
	NetworkSpec rookv1.NetworkSpec
	// contains filtered or unexported fields
}

SWIFTController represents a controller object for swift custom resources

func NewSWIFTController

func NewSWIFTController(
	context *clusterd.Context,
	namespace string,
	rookImage string,
	NetworkSpec rookv1.NetworkSpec,
	dataDirHostPath string,
	dataVolumeSize resource.Quantity,
	placement rookv1.Placement,
	resources v1.ResourceRequirements,
	resourceProfile string,
	ownerRef metav1.OwnerReference,
	useHostLocalTime bool,
) *SWIFTController

NewSWIFTController create controller for watching SWIFT custom resources created

func (*SWIFTController) CreateOrUpdate

func (c *SWIFTController) CreateOrUpdate(s edgefsv1.SWIFT, update bool, ownerRefs []metav1.OwnerReference) error

Start the swift instance

func (*SWIFTController) CreateService

func (c *SWIFTController) CreateService(s edgefsv1.SWIFT, ownerRefs []metav1.OwnerReference) error

Start the SWIFT manager

func (*SWIFTController) DeleteService

func (c *SWIFTController) DeleteService(s edgefsv1.SWIFT) error

Delete SWIFT service and possibly some artifacts.

func (*SWIFTController) ParentClusterChanged

func (c *SWIFTController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)

func (*SWIFTController) StartWatch

func (c *SWIFTController) StartWatch(stopCh chan struct{})

StartWatch watches for instances of SWIFT custom resources and acts on them

func (*SWIFTController) UpdateService

func (c *SWIFTController) UpdateService(s edgefsv1.SWIFT, ownerRefs []metav1.OwnerReference) error

Jump to

Keyboard shortcuts

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