grpcserver_openwrt

package
v0.0.0-...-1b70f73 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// each job has a "type" string. Always reference this variable, dont copy the string.
	// they are versioned so we can have new versions not interfere. Maybe if we move to
	// protobuf for job state encoding that wouldnt be as important.
	CreateNetworkJobTypeV1 = "network/create/v1"
	DeleteNetworkJobTypeV1 = "network/delete/v1"

	JobStatePENDING = 0
	JobStateRUNNING = 1
	JobStateDONE    = 2
	JobStateERROR   = 3
)

Variables

This section is empty.

Functions

func CreateNetwork

func CreateNetwork(ctx context.Context, request json.RawMessage) error

func DeleteNetwork

func DeleteNetwork(ctx context.Context, request json.RawMessage) error

Types

type CreateRequest

type CreateRequest struct {
	ID     string
	Tenant string

	// settings for the network
	VlanID int32
}

type DeleteRequest

type DeleteRequest struct {
	ID string
}

Jump to

Keyboard shortcuts

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