isgw

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

scale-out, multi-cloud Edge-X ISGW (Inter-Segment Gateway) services controller

Package ISGW for the Edgefs manager.

Index

Constants

This section is empty.

Variables

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

ISGWResource represents the isgw custom resource

Functions

This section is empty.

Types

type ISGWController

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

ISGWController represents a controller object for isgw custom resources

func NewISGWController

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

NewISGWController create controller for watching ISGW custom resources created

func (*ISGWController) CreateOrUpdate

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

Start the isgw instance

func (*ISGWController) CreateService

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

Start the ISGW manager

func (*ISGWController) DeleteService

func (c *ISGWController) DeleteService(s edgefsv1beta1.ISGW) error

Delete ISGW service and possibly some artifacts.

func (*ISGWController) StartWatch

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

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

func (*ISGWController) UpdateService

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

Jump to

Keyboard shortcuts

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