dimension

package
v1.126.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GetDimensions                      = "getInstanceDimensions"
	GetUniqueDimensionAndOptionsAction = "getInstanceUniqueDimensionAndOptions"
	AddDimensionAction                 = "addDimension"
	UpdateNodeIDAction                 = "updateDimensionOptionWithNodeID"
)

List of actions for dimensions

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	store.Storer
	Host               string
	MaxRequestOptions  int
	URLBuilder         *url.Builder
	EnableURLRewriting bool
}

Store provides a backend for dimensions

func (*Store) AddHandler

func (s *Store) AddHandler(w http.ResponseWriter, r *http.Request)

AddHandler represents adding a dimension to a specific instance

func (*Store) AddNodeIDHandler deprecated

func (s *Store) AddNodeIDHandler(w http.ResponseWriter, r *http.Request)

AddNodeIDHandler against a specific option for dimension

Deprecated: this method is superseded by PatchOptionHandler

func (*Store) GetDimensionsHandler

func (s *Store) GetDimensionsHandler(w http.ResponseWriter, r *http.Request, limit, offset int) (dimensions interface{}, totalCount int, err error)

GetDimensionsHandler returns a list of all dimensions and their options for an instance resource

func (*Store) GetUniqueDimensionAndOptionsHandler

func (s *Store) GetUniqueDimensionAndOptionsHandler(w http.ResponseWriter, r *http.Request, limit, offset int) (slicedOptions interface{}, totalCount int, err error)

GetUniqueDimensionAndOptionsHandler returns a list of dimension options for a dimension of an instance

func (*Store) PatchDimensionsHandler added in v1.36.0

func (s *Store) PatchDimensionsHandler(w http.ResponseWriter, r *http.Request)

PatchDimensionsHandler represents adding multiple dimensions to a specific instance And modifying multiple dimension options `node_id` and `order` values for a specific instance.

func (*Store) PatchOptionHandler added in v1.28.0

func (s *Store) PatchOptionHandler(w http.ResponseWriter, r *http.Request)

PatchOptionHandler updates a dimension option according to the provided patch array body

Jump to

Keyboard shortcuts

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