importutil

package
v0.0.0-...-16d7efa Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KvmCategory = map[string]string{
	"2cd00bebec0c48ba9db761da48678134": "#non-profit",
	"77b3c33a92554bcf8e8c2c86cedd6f6f": "#commercial",
	"c2dc278a2d6a4b9b8a50cb606fc017ed": "#event",
}

Functions

func DeleteIndex

func DeleteIndex(deleteNodeURL string, nodeID string) error

func GetMapping

func GetMapping(schemaName string) (map[string]string, error)

func MapFieldsName

func MapFieldsName(
	profile map[string]interface{},
	mapping map[string]string,
) map[string]interface{}

func MapProfile

func MapProfile(
	profile map[string]interface{},
	mapping map[string]string,
	schema string,
) (map[string]interface{}, error)

func PostIndex

func PostIndex(postNodeURL string, profileURL string) (string, error)

func Validate

func Validate(
	validateURL string,
	profile map[string]interface{},
) (bool, string, error)

Types

type Node

type Node struct {
	NodeID     string `json:"node_id,omitempty"`
	ProfileURL string `json:"profile_url,omitempty"`
	Status     string `json:"status,omitempty"`
}

type NodeData

type NodeData struct {
	Data   Node
	Errors []interface{} `json:"errors,omitempty"`
}

Jump to

Keyboard shortcuts

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