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