utils

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildResource

func BuildResource(nodeID, namespace, resourceType, resourceID string) (resource string, err error)

BuildResource return a string as "beehive/pkg/core/model".Message.Router.Resource

func GetNamespace

func GetNamespace(msg model.Message) (string, error)

GetNamespace from "beehive/pkg/core/model".Model.Router.Resource

func GetNodeID

func GetNodeID(msg model.Message) (string, error)

GetNodeID from "beehive/pkg/core/model".Message.Router.Resource

func GetResourceName

func GetResourceName(msg model.Message) (string, error)

GetResourceName from "beehive/pkg/core/model".Model.Router.Resource

func GetResourceType

func GetResourceType(msg model.Message) (string, error)

GetResourceType from "beehive/pkg/core/model".Model.Router.Resource

func ParseResourceEdge

func ParseResourceEdge(resource string, operation string) (string, string, string, error)

ParseResourceEdge parses resource at edge and returns namespace, resource_type, resource_id. If operation of msg is query list, return namespace, pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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