handler

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBgpConfHandler

func NewBgpConfHandler(client client.Client) *bgpConfHandler

NewBgpConfHandler returns a new instance of bgpConfHandler which implements the BgpConfHandler interface. This is used to register the endpoints to the router.

func NewBgpPeerHandler

func NewBgpPeerHandler(client client.Client) *bgpPeerHandler

NewBgpPeerHandler returns a new instance of bgpPeerHandler which implements the BgpPeerHandler interface. This is used to register the endpoints to the router.

func NewEipHandler

func NewEipHandler(client client.Client) *eipHandler

NewEipHandler returns a new instance of eipHandler which implements the EipHandler interface. This is used to register the endpoints to the router.

Types

type BgpConfHandler

type BgpConfHandler interface {
	// Create creates a new BgpConf object in the kubernetes cluster.
	Create(ctx context.Context, bgpConf *v1alpha2.BgpConf) (Create, error)
	// Get returns the BgpConf object in the kubernetes cluster if found.
	Get(ctx context.Context) (*v1alpha2.BgpConf, error)
	// Patch patches the BgpConf object in the kubernetes cluster.
	Patch(ctx context.Context, patch []byte) (Update, error)
	// Update edits the BgpConf object in the kubernetes cluster.
	Update(ctx context.Context, newObj *v1alpha2.BgpConf) (Update, error)
	// Delete deletes the BgpConf object in the kubernetes cluster.
	Delete(ctx context.Context) (Delete, error)
}

BgpConfHandler is an interface that is used to manage http requests related to BgpConf.

type BgpPeerHandler

type BgpPeerHandler interface {
	// Create creates a new BgpPeer object in the kubernetes cluster.
	Create(ctx context.Context, bgpPeer *v1alpha2.BgpPeer) (Create, error)
	// Get returns the BgpPeer object in the kubernetes cluster if found.
	Get(ctx context.Context, name string) (*v1alpha2.BgpPeer, error)
	// List returns all the BgpPeer objects in the kubernetes cluster.
	List(ctx context.Context) (*v1alpha2.BgpPeerList, error)
	// Patch patches the BgpPeer object in the kubernetes cluster.
	Patch(ctx context.Context, name string, patch []byte) (Update, error)
	// Update edits the BgpPeer object in the kubernetes cluster.
	Update(ctx context.Context, name string, newObj *v1alpha2.BgpPeer) (Update, error)
	// Delete deletes the BgpPeer object in the kubernetes cluster.
	Delete(ctx context.Context, name string) (Delete, error)
}

BgpPeerHandler is an interface that is used to manage http requests related to BgpPeer.

type Create

type Create struct {
	Created bool `json:"created"`
}

type Delete

type Delete struct {
	Deleted bool `json:"deleted"`
}

type EipHandler

type EipHandler interface {
	// Create creates a new Eip object in the kubernetes cluster.
	Create(ctx context.Context, eip *v1alpha2.Eip) (Create, error)
	// Get returns the Eip object in the kubernetes cluster if found.
	Get(ctx context.Context, name string) (*v1alpha2.Eip, error)
	// List returns the list of Eip objects in the kubernetes cluster.
	List(ctx context.Context) (*v1alpha2.EipList, error)
	// Patch patches the Eip object in the kubernetes cluster.
	Patch(ctx context.Context, name string, patch []byte) (Update, error)
	// Update edits the Eip object in the kubernetes cluster.
	Update(ctx context.Context, name string, newObj *v1alpha2.Eip) (Update, error)
	// Delete deletes the Eip object in the kubernetes cluster.
	Delete(ctx context.Context, name string) (Delete, error)
}

EipHandler is an interface that is used to manage http requests related to Eip.

type Update

type Update struct {
	Updated bool `json:"updated"`
}

Jump to

Keyboard shortcuts

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