s3x

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

scale-out, multi-cloud Edge-X S3 services controller

Package s3x for the Edgefs manager.

Index

Constants

This section is empty.

Variables

View Source
var S3XResource = opkit.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   edgefsv1beta1.CustomResourceGroup,
	Version: edgefsv1beta1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(edgefsv1beta1.S3X{}).Name(),
}

S3XResource represents the s3x custom resource

Functions

This section is empty.

Types

type S3XController

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

S3XController represents a controller object for s3x custom resources

func NewS3XController

func NewS3XController(
	context *clusterd.Context, rookImage string,
	hostNetwork bool,
	dataDirHostPath string,
	dataVolumeSize resource.Quantity,
	placement rookalpha.Placement,
	resources v1.ResourceRequirements,
	resourceProfile string,
	ownerRef metav1.OwnerReference,
) *S3XController

NewS3XController create controller for watching S3X custom resources created

func (*S3XController) CreateOrUpdate

func (c *S3XController) CreateOrUpdate(s edgefsv1beta1.S3X, update bool, ownerRefs []metav1.OwnerReference) error

Start the s3x instance

func (*S3XController) CreateService

func (c *S3XController) CreateService(s edgefsv1beta1.S3X, ownerRefs []metav1.OwnerReference) error

Start the rgw manager

func (*S3XController) DeleteService

func (c *S3XController) DeleteService(s edgefsv1beta1.S3X) error

Delete S3X service and possibly some artifacts.

func (*S3XController) StartWatch

func (c *S3XController) StartWatch(namespace string, stopCh chan struct{}) error

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

func (*S3XController) UpdateService

func (c *S3XController) UpdateService(s edgefsv1beta1.S3X, ownerRefs []metav1.OwnerReference) error

Jump to

Keyboard shortcuts

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