syncer

package
v0.0.0-...-774bb41 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENIEventHandler

type ENIEventHandler interface {
	Create(resource *ccev2.ENI) error
	Update(resource *ccev2.ENI) error
	Delete(name string) error
	ResyncENI(context.Context) time.Duration
}

ENIEventHandler should implement the behavior to handle ENI

type ENISyncher

type ENISyncher interface {
	Init(ctx context.Context) error
	StartENISyncer(context.Context, ENIUpdater) ENIEventHandler
}

type ENIUpdater

type ENIUpdater interface {
	Lister() ccev2lister.ENILister
	Create(subnet *ccev2.ENI) (*ccev2.ENI, error)
	Update(newResource *ccev2.ENI) (*ccev2.ENI, error)
	Delete(name string) error
	UpdateStatus(newResource *ccev2.ENI) (*ccev2.ENI, error)
}

ENIUpdater interface to update resource

type SecurityGroupEventHandler

type SecurityGroupEventHandler interface {
	Create(resource *ccev2alpha1.SecurityGroup) error
	Update(resource *ccev2alpha1.SecurityGroup) error
	Delete(name string) error
	ResyncSecurityGroup(context.Context) time.Duration
}

SecurityGroupEventHandler should implement the behavior to handle SecurityGroup

type SecurityGroupSyncher

type SecurityGroupSyncher interface {
	Init(ctx context.Context) error
	StartSecurityGroupSyncer(context.Context, SecurityGroupUpdater) SecurityGroupEventHandler
}

type SecurityGroupUpdater

type SecurityGroupUpdater interface {
	Lister() ccev2alpha1lister.SecurityGroupLister
	Create(subnet *ccev2alpha1.SecurityGroup) (*ccev2alpha1.SecurityGroup, error)
	Update(newResource *ccev2alpha1.SecurityGroup) (*ccev2alpha1.SecurityGroup, error)
	Delete(name string) error
	UpdateStatus(newResource *ccev2alpha1.SecurityGroup) (*ccev2alpha1.SecurityGroup, error)
}

SecurityGroupUpdater interface to update resource

type SubnetEventHandler

type SubnetEventHandler interface {
	Create(resource *ccev1.Subnet) error
	Update(resource *ccev1.Subnet) error
	Delete(name string) error
	ResyncSubnet(context.Context) time.Duration
}

SubnetEventHandler should implement the behavior to handle Subnet

type SubnetSyncher

type SubnetSyncher interface {
	Init(ctx context.Context) error
	StartSubnetSyncher(context.Context, SubnetUpdater) SubnetEventHandler
}

type SubnetUpdater

type SubnetUpdater interface {
	Lister() ccev1lister.SubnetLister
	Create(subnet *ccev1.Subnet) (*ccev1.Subnet, error)
	Update(newResource *ccev1.Subnet) (*ccev1.Subnet, error)
	Delete(name string) error
	UpdateStatus(newResource *ccev1.Subnet) (*ccev1.Subnet, error)
}

SubnetUpdater interface to update resource

Jump to

Keyboard shortcuts

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