Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBgpConfHandler ¶
NewBgpConfHandler returns a new instance of bgpConfHandler which implements the BgpConfHandler interface. This is used to register the endpoints to the router.
func NewBgpPeerHandler ¶
NewBgpPeerHandler returns a new instance of bgpPeerHandler which implements the BgpPeerHandler interface. This is used to register the endpoints to the router.
func NewEipHandler ¶
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 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.