s3

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

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

Package S3 for the Edgefs manager.

Index

Constants

This section is empty.

Variables

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

S3Resource represents the s3 custom resource

Functions

This section is empty.

Types

type S3Controller

type S3Controller struct {
	NetworkSpec rookalpha.NetworkSpec
	// contains filtered or unexported fields
}

S3Controller represents a controller object for s3 custom resources

func NewS3Controller

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

NewS3Controller create controller for watching S3 custom resources created

func (*S3Controller) CreateOrUpdate

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

Start the s3 instance

func (*S3Controller) CreateService

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

Start the S3 manager

func (*S3Controller) DeleteService

func (c *S3Controller) DeleteService(s edgefsv1.S3) error

Delete S3 service and possibly some artifacts.

func (*S3Controller) ParentClusterChanged added in v1.1.0

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

func (*S3Controller) StartWatch

func (c *S3Controller) StartWatch(stopCh chan struct{}) error

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

func (*S3Controller) UpdateService

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

Jump to

Keyboard shortcuts

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