Documentation ¶
Index ¶
- func GetDefaultNetworkConfig() ([]byte, error)
- func InitConfigurations4Monitor(confObj *jason.Object, kubeconfig string) error
- func IsCTNetPlane(netPlane string) bool
- func IsSameRoles(portObj1, portObj2 *Port) bool
- func IsSameRolesIllegal(portObj1, portObj2 *Port) error
- func NewCreatePortForPodController() (*createPortForPodController, error)
- type BluePrintAttributes
- type BluePrintNetworkMessage
- type BluePrintPort
- type EagerPort
- type Pod
- type PodForCreatPort
- type PodServiceInterface
- type Port
- type PortEagerAttr
- type PortLazyAttr
- type PortServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultNetworkConfig ¶
func IsCTNetPlane ¶
func IsSameRoles ¶
func IsSameRolesIllegal ¶
func NewCreatePortForPodController ¶
func NewCreatePortForPodController() (*createPortForPodController, error)
Types ¶
type BluePrintAttributes ¶
type BluePrintNetworkMessage ¶
type BluePrintNetworkMessage struct {
Ports []BluePrintPort `json:"ports"`
}
func (*BluePrintNetworkMessage) NewDelaultNetworkMessage ¶
func (bpnm *BluePrintNetworkMessage) NewDelaultNetworkMessage() error
type BluePrintPort ¶
type BluePrintPort struct { AttachToNetwork string `json:"attach_to_network"` Attributes BluePrintAttributes `json:"attributes"` }
type EagerPort ¶
type PodForCreatPort ¶
type PodServiceInterface ¶
type PodServiceInterface interface { NewPodFromK8sPod(pod *v1.Pod) (*Pod, error) Save(pod *Pod) error Get(podNs, podName string) (*Pod, error) DeletePodAndPorts(podNs, podName string) error }
func GetPodService ¶
func GetPodService() PodServiceInterface
type Port ¶
type Port struct { EagerAttr PortEagerAttr LazyAttr PortLazyAttr }
func (*Port) TransformToMangerCreatePortReq ¶
func (p *Port) TransformToMangerCreatePortReq(pod *PodForCreatPort) *infra.ManagerCreatePortReq
type PortEagerAttr ¶
type PortLazyAttr ¶
type PortServiceInterface ¶
type PortServiceInterface interface { //todo NewPortsWithEagerAttrFromK8s(pod *PodForCreatPort, nwJSON *jason.Object) ([]*Port, error) NewPortsWithEagerAttrAndLazyAttr(pod *PodForCreatPort, nwJSON *jason.Object) ([]*Port, error) DeleteBulkPorts(tenantID string, portIDs []string) error }
func GetPortService ¶
func GetPortService() PortServiceInterface
Click to show internal directories.
Click to hide internal directories.