edgeworkers

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Overview

Package edgeworkers contains code for exporting edge workers and edge kv configuration

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrFetchingEdgeKV is returned when fetching edgekv fails
	ErrFetchingEdgeKV = errors.New("unable to fetch edgekv with given namespace_name and network")
	// ErrFetchingEdgeKVItems is returned when fetching edgekv items fails
	ErrFetchingEdgeKVItems = errors.New("unable to fetch edgekv items with given group id")
	// ErrFetchingEdgeKVItem is returned when fetching edgekv item fails
	ErrFetchingEdgeKVItem = errors.New("unable to fetch edgekv item with given group and item id")
	// ErrFetchingEdgeKVGroups is returned when fetching edgekv groups fails
	ErrFetchingEdgeKVGroups = errors.New("unable to fetch edgekv groups with given namespace_name and network")
)
View Source
var (
	// ErrFetchingEdgeWorker is returned when fetching edgeworker fails
	ErrFetchingEdgeWorker = errors.New("unable to fetch edgeworker with given edgeworker_id")
)

Functions

func CmdCreateEdgeKV

func CmdCreateEdgeKV(c *cli.Context) error

CmdCreateEdgeKV is an entrypoint to create-edgekv command

func CmdCreateEdgeWorker

func CmdCreateEdgeWorker(c *cli.Context) error

CmdCreateEdgeWorker is an entrypoint to create-edgeworker command

Types

type TFEdgeKVData

type TFEdgeKVData struct {
	Name        string
	Network     edgeworkers.NamespaceNetwork
	GroupID     int
	Retention   int
	GeoLocation string
	Section     string
	GroupItems  map[string]map[string]edgeworkers.Item
}

TFEdgeKVData represents the data used in EdgeKV templates

type TFEdgeWorkerData

type TFEdgeWorkerData struct {
	EdgeWorkerID   int
	Name           string
	GroupID        int64
	ResourceTierID int
	LocalBundle    string
	Section        string
	Note           string
}

TFEdgeWorkerData represents the data used in EdgeWorker templates

Jump to

Keyboard shortcuts

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