context

package
v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendActionName

func AppendActionName(err *error, actionName string)

func CheckPortsVnicType

func CheckPortsVnicType(portsObj []*portobj.PortObj) error

func GetNetworksAttrs

func GetNetworksAttrs(tenantID string, networkNames []string, needProvider bool) ([]*portobj.NetworkAttrs, error)

func RecoverErr

func RecoverErr(p interface{}, err *error, actionName string)

Types

type AddNetToFlowMgrAction

type AddNetToFlowMgrAction struct {
}

func (*AddNetToFlowMgrAction) Exec

func (this *AddNetToFlowMgrAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*AddNetToFlowMgrAction) RollBack

func (this *AddNetToFlowMgrAction) RollBack(transInfo *transdsl.TransInfo)

type AttachPortToBrIntAction

type AttachPortToBrIntAction struct {
}

func (*AttachPortToBrIntAction) Exec

func (this *AttachPortToBrIntAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*AttachPortToBrIntAction) RollBack

func (this *AttachPortToBrIntAction) RollBack(transInfo *transdsl.TransInfo)

type AttachPortToPodAction

type AttachPortToPodAction struct {
}

func (*AttachPortToPodAction) Exec

func (this *AttachPortToPodAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*AttachPortToPodAction) RollBack

func (this *AttachPortToPodAction) RollBack(transInfo *transdsl.TransInfo)

type CleanPhysicalResourceRecordAction

type CleanPhysicalResourceRecordAction struct {
}

func (*CleanPhysicalResourceRecordAction) Exec

func (this *CleanPhysicalResourceRecordAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*CleanPhysicalResourceRecordAction) RollBack

func (this *CleanPhysicalResourceRecordAction) RollBack(transInfo *transdsl.TransInfo)

type ConnectToBrdepAction

type ConnectToBrdepAction struct {
}

func (*ConnectToBrdepAction) Exec

func (this *ConnectToBrdepAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*ConnectToBrdepAction) RollBack

func (this *ConnectToBrdepAction) RollBack(transInfo *transdsl.TransInfo)

type CreateVethPairAction

type CreateVethPairAction struct {
}

func (*CreateVethPairAction) Exec

func (this *CreateVethPairAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*CreateVethPairAction) RollBack

func (this *CreateVethPairAction) RollBack(transInfo *transdsl.TransInfo)

type DelPodAction

type DelPodAction struct {
}

func (*DelPodAction) Exec

func (this *DelPodAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*DelPodAction) RollBack

func (this *DelPodAction) RollBack(transInfo *transdsl.TransInfo)

type DeleteLogicPortsForPodAction

type DeleteLogicPortsForPodAction struct {
}

func (*DeleteLogicPortsForPodAction) Exec

func (this *DeleteLogicPortsForPodAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*DeleteLogicPortsForPodAction) RollBack

func (this *DeleteLogicPortsForPodAction) RollBack(transInfo *transdsl.TransInfo)

type DestroyNeutronPortAction

type DestroyNeutronPortAction struct {
}

func (*DestroyNeutronPortAction) Exec

func (this *DestroyNeutronPortAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*DestroyNeutronPortAction) RollBack

func (this *DestroyNeutronPortAction) RollBack(transInfo *transdsl.TransInfo)

type DestroyVethPairAction

type DestroyVethPairAction struct {
}

func (*DestroyVethPairAction) Exec

func (this *DestroyVethPairAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*DestroyVethPairAction) RollBack

func (this *DestroyVethPairAction) RollBack(transInfo *transdsl.TransInfo)

type DetachPortFromBrintAction

type DetachPortFromBrintAction struct {
}

func (*DetachPortFromBrintAction) Exec

func (this *DetachPortFromBrintAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*DetachPortFromBrintAction) RollBack

func (this *DetachPortFromBrintAction) RollBack(transInfo *transdsl.TransInfo)

type DetachTriggerAction

type DetachTriggerAction struct {
}

func (*DetachTriggerAction) Exec

func (this *DetachTriggerAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*DetachTriggerAction) RollBack

func (this *DetachTriggerAction) RollBack(transInfo *transdsl.TransInfo)

type EndAction

type EndAction struct {
	ErrCode error
}

func (*EndAction) Exec

func (this *EndAction) Exec(transInfo *transdsl.TransInfo) error

func (*EndAction) RollBack

func (this *EndAction) RollBack(transInfo *transdsl.TransInfo)

type GeneralModeCreateNeutronBulkPortsAction

type GeneralModeCreateNeutronBulkPortsAction struct {
}

func (*GeneralModeCreateNeutronBulkPortsAction) Exec

func (c *GeneralModeCreateNeutronBulkPortsAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*GeneralModeCreateNeutronBulkPortsAction) RollBack

func (c *GeneralModeCreateNeutronBulkPortsAction) RollBack(transInfo *transdsl.TransInfo)

type GeneralModeGetMgrPortAction

type GeneralModeGetMgrPortAction struct {
}

func (*GeneralModeGetMgrPortAction) Exec

func (this *GeneralModeGetMgrPortAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*GeneralModeGetMgrPortAction) RollBack

func (this *GeneralModeGetMgrPortAction) RollBack(transInfo *transdsl.TransInfo)

type GetAllPortsOfPodAction

type GetAllPortsOfPodAction struct {
}

func (*GetAllPortsOfPodAction) Exec

func (this *GetAllPortsOfPodAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*GetAllPortsOfPodAction) RollBack

func (this *GetAllPortsOfPodAction) RollBack(transInfo *transdsl.TransInfo)

type GetNetworkAttrsAction

type GetNetworkAttrsAction struct {
}

func (*GetNetworkAttrsAction) Exec

func (this *GetNetworkAttrsAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*GetNetworkAttrsAction) RollBack

func (this *GetNetworkAttrsAction) RollBack(transInfo *transdsl.TransInfo)

type GetPodAction

type GetPodAction struct {
}

func (*GetPodAction) Exec

func (this *GetPodAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*GetPodAction) RollBack

func (this *GetPodAction) RollBack(transInfo *transdsl.TransInfo)

type GetVniAction

type GetVniAction struct {
}

func (*GetVniAction) Exec

func (this *GetVniAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*GetVniAction) RollBack

func (this *GetVniAction) RollBack(transInfo *transdsl.TransInfo)

type IsDeployPod

type IsDeployPod struct {
}

func (*IsDeployPod) Ok

func (this *IsDeployPod) Ok(transInfo *transdsl.TransInfo) bool

type IsK8SRecycleResource

type IsK8SRecycleResource struct {
}

func (*IsK8SRecycleResource) Ok

func (this *IsK8SRecycleResource) Ok(transInfo *transdsl.TransInfo) bool

type IsNetNsExist

type IsNetNsExist struct {
}

func (*IsNetNsExist) Ok

func (this *IsNetNsExist) Ok(transInfo *transdsl.TransInfo) bool

type IsNewPod

type IsNewPod struct {
}

func (*IsNewPod) Ok

func (this *IsNewPod) Ok(transInfo *transdsl.TransInfo) bool

func (*IsNewPod) RollBack

func (this *IsNewPod) RollBack(transInfo *transdsl.TransInfo)

type IsOvs

type IsOvs struct {
}

func (*IsOvs) Ok

func (this *IsOvs) Ok(transInfo *transdsl.TransInfo) bool

type IsPodRestarted

type IsPodRestarted struct {
}

func (*IsPodRestarted) Ok

func (this *IsPodRestarted) Ok(transInfo *transdsl.TransInfo) bool

func (*IsPodRestarted) RollBack

func (this *IsPodRestarted) RollBack(transInfo *transdsl.TransInfo)

type IsTenantNetworkNeedDel

type IsTenantNetworkNeedDel struct {
}

func (IsTenantNetworkNeedDel) Ok

func (this IsTenantNetworkNeedDel) Ok(transInfo *transdsl.TransInfo) bool

type IsTenantNetworkNotExist

type IsTenantNetworkNotExist struct {
}

func (*IsTenantNetworkNotExist) Ok

func (this *IsTenantNetworkNotExist) Ok(transInfo *transdsl.TransInfo) bool

type IsVxLan

type IsVxLan struct {
}

func (*IsVxLan) Ok

func (this *IsVxLan) Ok(transInfo *transdsl.TransInfo) bool

type K8SRecycleResourceAction

type K8SRecycleResourceAction struct {
}

func (*K8SRecycleResourceAction) Exec

func (this *K8SRecycleResourceAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*K8SRecycleResourceAction) RollBack

func (this *K8SRecycleResourceAction) RollBack(transInfo *transdsl.TransInfo)

type KnitterInfo

type KnitterInfo struct {
	ReqBody    []byte
	KnitterObj *knitterobj.KnitterObj

	Nics     []bind.Dpdknic
	Chan     chan int
	ChanFlag bool

	DpdkLabel string

	South bool // used for baremetal south bound port name prefix

	IsAttachOrDetachFlag bool // when flag type is ture meaning Attach , is false meaning Detach
	// contains filtered or unexported fields
}

type RemoveNetFromFlowMgrAction

type RemoveNetFromFlowMgrAction struct {
}

func (*RemoveNetFromFlowMgrAction) Exec

func (this *RemoveNetFromFlowMgrAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*RemoveNetFromFlowMgrAction) RollBack

func (this *RemoveNetFromFlowMgrAction) RollBack(transInfo *transdsl.TransInfo)

type ReusePortInfoAction

type ReusePortInfoAction struct {
}

func (*ReusePortInfoAction) Exec

func (c *ReusePortInfoAction) Exec(transInfo *transdsl.TransInfo) error

func (*ReusePortInfoAction) RollBack

func (c *ReusePortInfoAction) RollBack(transInfo *transdsl.TransInfo)

type SavePhysicalResourceAction

type SavePhysicalResourceAction struct {
}

func (*SavePhysicalResourceAction) Exec

func (this *SavePhysicalResourceAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*SavePhysicalResourceAction) RollBack

func (this *SavePhysicalResourceAction) RollBack(transInfo *transdsl.TransInfo)

type SavePodAction

type SavePodAction struct {
}

func (*SavePodAction) Exec

func (this *SavePodAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*SavePodAction) RollBack

func (this *SavePodAction) RollBack(transInfo *transdsl.TransInfo)

type SaveVethToLocalDBAction

type SaveVethToLocalDBAction struct {
}

func (*SaveVethToLocalDBAction) Exec

func (this *SaveVethToLocalDBAction) Exec(transInfo *transdsl.TransInfo) (err error)

func (*SaveVethToLocalDBAction) RollBack

func (this *SaveVethToLocalDBAction) RollBack(transInfo *transdsl.TransInfo)

type SouthInterface

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

Jump to

Keyboard shortcuts

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