dbaccessor

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: 2 Imported by: 22

Documentation

Index

Constants

View Source
const (
	AgentStatusReady            string = "READY"
	AgentStatusDown             string = "DOWN"
	DefaultIntervalTimeInSecond int    = 15
)

Variables

This section is empty.

Functions

func CheckDataBase

func CheckDataBase(Db DbAccessor) error

func GetCloudTNameSpaceKey

func GetCloudTNameSpaceKey(podns, podId string) string

***********************************************************************

func GetFixIPPortUrl

func GetFixIPPortUrl(portID string) string

func GetKeyOfC0

func GetKeyOfC0(cluster_ip, node_ip string) string

func GetKeyOfC0PodLabel

func GetKeyOfC0PodLabel(cluster_ip, node_ip string) string

func GetKeyOfCancelWaitPodsDeletedTimeout

func GetKeyOfCancelWaitPodsDeletedTimeout() string

func GetKeyOfCluster

func GetKeyOfCluster(cluster_ip string) string

func GetKeyOfClusterNodes

func GetKeyOfClusterNodes(cluster_ip string) string

func GetKeyOfClusterUUID

func GetKeyOfClusterUUID() string

func GetKeyOfConf

func GetKeyOfConf() string

func GetKeyOfContainerIdForC0

func GetKeyOfContainerIdForC0(cluster_ip, node_ip string) string

func GetKeyOfDcs

func GetKeyOfDcs() string

func GetKeyOfDefaultPhysnet

func GetKeyOfDefaultPhysnet() string

func GetKeyOfEmbeddedServer

func GetKeyOfEmbeddedServer() string

func GetKeyOfEmbeddedServerNetworkID

func GetKeyOfEmbeddedServerNetworkID(id string) string

func GetKeyOfEmbeddedServerNetworks

func GetKeyOfEmbeddedServerNetworks() string

func GetKeyOfEmbeddedServerPortID

func GetKeyOfEmbeddedServerPortID(id string) string

func GetKeyOfEmbeddedServerPorts

func GetKeyOfEmbeddedServerPorts() string

func GetKeyOfEmbeddedServerSubnetID

func GetKeyOfEmbeddedServerSubnetID(id string) string

func GetKeyOfEmbeddedServerSubnets

func GetKeyOfEmbeddedServerSubnets() string

func GetKeyOfEmbeddedServerVnis

func GetKeyOfEmbeddedServerVnis() string

func GetKeyOfExceptionalPort

func GetKeyOfExceptionalPort(port_id string) string

func GetKeyOfExceptionalPortGroup

func GetKeyOfExceptionalPortGroup() string

func GetKeyOfExceptionalPorts

func GetKeyOfExceptionalPorts() string

func GetKeyOfFixIP

func GetKeyOfFixIP() string

func GetKeyOfGateway

func GetKeyOfGateway() string

func GetKeyOfGatewayID

func GetKeyOfGatewayID(gatewayID string) string

func GetKeyOfGwForNode

func GetKeyOfGwForNode(cluster_ip, node_ip string) string

func GetKeyOfIaasBr0InterfaceForNode

func GetKeyOfIaasBr0InterfaceForNode(cluster_ip, node_ip, network_id string) string

func GetKeyOfIaasBr0InterfacesForNode

func GetKeyOfIaasBr0InterfacesForNode(cluster_ip, node_ip string) string

func GetKeyOfIaasC0InterfaceForNode

func GetKeyOfIaasC0InterfaceForNode(cluster_ip, node_ip, network_id string) string

func GetKeyOfIaasC0InterfacesForNode

func GetKeyOfIaasC0InterfacesForNode(cluster_ip, node_ip string) string

func GetKeyOfIaasEioInterfaceForNode

func GetKeyOfIaasEioInterfaceForNode(cluster_ip, node_ip, port_id string) string

func GetKeyOfIaasEioInterfacesForNode

func GetKeyOfIaasEioInterfacesForNode(cluster_ip, node_ip string) string

func GetKeyOfIaasInterfacesForNode

func GetKeyOfIaasInterfacesForNode(cluster_ip, node_ip string) string

func GetKeyOfIaasTenantInfo

func GetKeyOfIaasTenantInfo(tenantid string) string

func GetKeyOfImageNameForC0

func GetKeyOfImageNameForC0(cluster_ip, node_ip string) string

func GetKeyOfInitConf

func GetKeyOfInitConf() string

func GetKeyOfInterface

func GetKeyOfInterface(tenant_id, interfaceID string) string

func GetKeyOfInterfaceForNode

func GetKeyOfInterfaceForNode(cluster_ip, node_ip string) string

func GetKeyOfInterfaceGroup

func GetKeyOfInterfaceGroup(tenant_id string) string

func GetKeyOfInterfaceGroupInNetwork

func GetKeyOfInterfaceGroupInNetwork(tenant_id, network_id string) string

func GetKeyOfInterfaceGroupInPod

func GetKeyOfInterfaceGroupInPod(tenant_id, pod_ns, pod_name string) string

func GetKeyOfInterfaceGroupInRouter

func GetKeyOfInterfaceGroupInRouter(tenant_id, router_id string) string

func GetKeyOfInterfaceInDc

func GetKeyOfInterfaceInDc(dcId, ifId string) string

func GetKeyOfInterfaceInNetwork

func GetKeyOfInterfaceInNetwork(tenant_id, network_id, port_id string) string

func GetKeyOfInterfaceInPod

func GetKeyOfInterfaceInPod(tenant_id, port_id, pod_ns, pod_name string) string

func GetKeyOfInterfaceInRouter

func GetKeyOfInterfaceInRouter(tenant_id, router_id, port_id string) string

func GetKeyOfInterfaceSelf

func GetKeyOfInterfaceSelf(tenant_id, interfaceID string) string

func GetKeyOfInterfaceSelfForRole

func GetKeyOfInterfaceSelfForRole(driver, interfacesID string) string

func GetKeyOfInterfacesInDc

func GetKeyOfInterfacesInDc(dcId string) string

func GetKeyOfKnitter

func GetKeyOfKnitter() string

keys segment for LogicPod

func GetKeyOfKnitterManager

func GetKeyOfKnitterManager() string

keys segment for knitter-manager

func GetKeyOfKnitterManagerConf

func GetKeyOfKnitterManagerConf() string

func GetKeyOfKnitterManagerUrl

func GetKeyOfKnitterManagerUrl() string

func GetKeyOfLogicPod

func GetKeyOfLogicPod(tenantID, podNs, podName string) string

func GetKeyOfLogicPort

func GetKeyOfLogicPort(tenantID, podNs, podName, portID string) string

func GetKeyOfLogicPortsInPod

func GetKeyOfLogicPortsInPod(tenantID, podNs, podName string) string

func GetKeyOfManager

func GetKeyOfManager() string

func GetKeyOfMonitor

func GetKeyOfMonitor() string

func GetKeyOfMonitorPod

func GetKeyOfMonitorPod(podNS, podName string) string

func GetKeyOfMonitorPods

func GetKeyOfMonitorPods() string

func GetKeyOfNetwork

func GetKeyOfNetwork(tenant_id, network_id string) string

func GetKeyOfNetworkByInterface

func GetKeyOfNetworkByInterface(tenant_id, interfaceID string) string

func GetKeyOfNetworkGroup

func GetKeyOfNetworkGroup(tenant_id string) string

func GetKeyOfNetworkSelf

func GetKeyOfNetworkSelf(tenant_id, network_id string) string

func GetKeyOfNode

func GetKeyOfNode(cluster_ip, node_ip string) string

func GetKeyOfNouthContainer

func GetKeyOfNouthContainer(containerID string) string

func GetKeyOfNouthInterface

func GetKeyOfNouthInterface(containerID, driver, interfacesID string) string

func GetKeyOfNouthInterfaceList

func GetKeyOfNouthInterfaceList(containerID, driver string) string

func GetKeyOfObr0InterfaceForNode

func GetKeyOfObr0InterfaceForNode(cluster_ip, node_ip, vethName string) string

func GetKeyOfObr0InterfacesForNode

func GetKeyOfObr0InterfacesForNode(cluster_ip, node_ip string) string

func GetKeyOfOpenShift

func GetKeyOfOpenShift() string

func GetKeyOfOpenstack

func GetKeyOfOpenstack() string

func GetKeyOfOseToken

func GetKeyOfOseToken(oseId string) string

func GetKeyOfPaasInterfaceForNode

func GetKeyOfPaasInterfaceForNode(cluster_ip, node_ip, port_id string) string

func GetKeyOfPaasInterfacesForNode

func GetKeyOfPaasInterfacesForNode(cluster_ip, node_ip string) string

func GetKeyOfPaasUUID

func GetKeyOfPaasUUID() string

func GetKeyOfPod

func GetKeyOfPod(tenant_id, pod_ns, pod_name string) string

func GetKeyOfPodByInterface

func GetKeyOfPodByInterface(tenant_id, interfaceID string) string

func GetKeyOfPodForC0

func GetKeyOfPodForC0(cluster_ip, node_ip string) string

func GetKeyOfPodForNode

func GetKeyOfPodForNode(cluster_ip, node_ip, pod_ns, pod_name string) string

func GetKeyOfPodGroup

func GetKeyOfPodGroup(tenant_id, ns string) string

func GetKeyOfPodInInterface

func GetKeyOfPodInInterface(tenant_id, interfaceID string) string

func GetKeyOfPodName

func GetKeyOfPodName(tenantId string, PodName string) string

func GetKeyOfPodNsGroup

func GetKeyOfPodNsGroup(tenant_id string) string

func GetKeyOfPodSelf

func GetKeyOfPodSelf(tenant_id, pod_ns, pod_name string) string

func GetKeyOfPodsForNode

func GetKeyOfPodsForNode(cluster_ip, node_ip string) string

func GetKeyOfPodsTenantId

func GetKeyOfPodsTenantId(tenantId string) string

func GetKeyOfPublic

func GetKeyOfPublic() string

func GetKeyOfPublicNetwork

func GetKeyOfPublicNetwork(network_id string) string

func GetKeyOfPublicNetworkGroup

func GetKeyOfPublicNetworkGroup() string

func GetKeyOfRecycleMaxCheckTimesUrl

func GetKeyOfRecycleMaxCheckTimesUrl() string

func GetKeyOfRecycleResourceByTimerUrl

func GetKeyOfRecycleResourceByTimerUrl() string

func GetKeyOfRegularCheck

func GetKeyOfRegularCheck() string

func GetKeyOfRoot

func GetKeyOfRoot() string

************************************************************************ * * FUNCTION OF GET DATABASE KEY * ************************************************************************

func GetKeyOfRouter

func GetKeyOfRouter(tenant_id, router_id string) string

func GetKeyOfRouterByInterface

func GetKeyOfRouterByInterface(tenant_id, interfaceID string) string

func GetKeyOfRouterGroup

func GetKeyOfRouterGroup(tenant_id string) string

func GetKeyOfRouterSelf

func GetKeyOfRouterSelf(tenant_id, router_id string) string

func GetKeyOfRuntime

func GetKeyOfRuntime() string

func GetKeyOfSouthInterface

func GetKeyOfSouthInterface(netid, chanType, interfacesID string) string

func GetKeyOfSouthInterfacePubAttr

func GetKeyOfSouthInterfacePubAttr(netid string) string

func GetKeyOfTenant

func GetKeyOfTenant(tenant_id string) string

func GetKeyOfTenantSelf

func GetKeyOfTenantSelf(tenant_id string) string

func GetKeyOfTenants

func GetKeyOfTenants() string

func GetKeyOfTopoSyncData

func GetKeyOfTopoSyncData() string

func GetKeyOfVmidForPod

func GetKeyOfVmidForPod(tenant_id, pod_ns, pod_name string) string

func GetKeyOfVnfm

func GetKeyOfVnfm() string

func GetVnfmAttachDetachPortUrl

func GetVnfmAttachDetachPortUrl(baseURL string, nfInstanceID string, vmName string) string

func GetVnfmBaseUrl

func GetVnfmBaseUrl(baseURL string, nfInstanceID string) string

func GetVnfmCreatePortUrl

func GetVnfmCreatePortUrl(baseURL string, nfInstanceID string) string

func GetVnfmDeletePortUrl

func GetVnfmDeletePortUrl(baseURL string, nfInstanceID string, resourceID string) string

func GetVnfmJobResultUrl

func GetVnfmJobResultUrl(baseURL, jobID, operation string) string

func GetVnfmJobUrl

func GetVnfmJobUrl(baseURL string) string

func GetVnfmNetwrokUrl

func GetVnfmNetwrokUrl(baseURL string, nfInstanceID string, netName string) string

func GetVnfmPortInfoUrl

func GetVnfmPortInfoUrl(baseURL string, nfInstanceID string, resourceID string) string

func GetVnfmSubNetwrokUrl

func GetVnfmSubNetwrokUrl(baseURL string, nfInstanceID string, subNetName string) string

Types

type Agent

type Agent struct {
	Id     string `json:"id"`
	Ip     string `json:"ip"`
	Status string `json:"status"`
	TTL    int    `json:"ttl"`
}

type DbAccessor

type DbAccessor interface {
	SaveLeaf(k, v string) error
	ReadDir(k string) ([]*client.Node, error)
	ReadLeaf(k string) (string, error)
	DeleteLeaf(k string) error
	DeleteDir(url string) error
	WatcherDir(url string) (*client.Response, error)
	Lock(url string) bool
	Unlock(url string) bool
}

type Sync

type Sync struct {
	Interval string   `json:"interval"`
	Client   *Agent   `json:"client"`
	Agents   []*Agent `json:"agents"`
}

type SyncRsp

type SyncRsp struct {
	Interval string  `json:"interval"`
	Client   Agent   `json:"client"`
	Agents   []Agent `json:"agents"`
}

Jump to

Keyboard shortcuts

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