topology

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueueUpdateHandler

func QueueUpdateHandler(w http.ResponseWriter, r *http.Request)

QueueUpdateHandler queues server updates for all servers in all cachegroups included in a given topology.

func Validate

func Validate(reqObj tc.TopologiesQueueUpdateRequest, topologyName tc.TopologyName, tx *sql.Tx) error

Types

type Component

type Component []tc.TopologyNode

type Graph

type Graph []*TarjanNode

type NodeStack

type NodeStack []*TarjanNode

type TOTopology

type TOTopology struct {
	api.APIInfoImpl `json:"-"`
	Alerts          tc.Alerts `json:"-"`
	RequestedName   string
	tc.Topology
}

TOTopology is a type alias on which we can define functions.

func (*TOTopology) Create

func (topology *TOTopology) Create() (error, error, int)

Create is a requirement of the api.Creator interface.

func (*TOTopology) Delete

func (topology *TOTopology) Delete() (error, error, int)

Delete is unused and simply satisfies the Deleter interface (although TOTOpology is used as an OptionsDeleter)

func (*TOTopology) DeleteKeyOptions

func (topology *TOTopology) DeleteKeyOptions() map[string]dbhelpers.WhereColumnInfo

GenericOptionsDeleter is required by the api.GenericOptionsDeleter interface and is called by api.GenericOptionsDelete().

func (*TOTopology) DeleteQueryBase

func (topology *TOTopology) DeleteQueryBase() string

DeleteQueryBase holds a delete query with no WHERE clause and is a requirement of the api.GenericOptionsDeleter interface.

func (*TOTopology) GetAlerts

func (topology *TOTopology) GetAlerts() tc.Alerts

GetAlerts implements the AlertsResponse interface.

func (*TOTopology) GetAuditName

func (topology *TOTopology) GetAuditName() string

GetAuditName is a requirement of the api.Identifier interface.

func (TOTopology) GetKeyFieldsInfo

func (topology TOTopology) GetKeyFieldsInfo() []api.KeyFieldInfo

GetKeyFieldsInfo is a requirement of the api.Updater interface.

func (TOTopology) GetKeys

func (topology TOTopology) GetKeys() (map[string]interface{}, bool)

Implementation of the Identifier, Validator interface functions

func (*TOTopology) GetType

func (topology *TOTopology) GetType() string

GetType returns the human-readable type of TOTopology as a string.

func (*TOTopology) OptionsDelete

func (topology *TOTopology) OptionsDelete() (error, error, int)

OptionsDelete is a requirement of the OptionsDeleter interface.

func (*TOTopology) ParamColumns

func (topology *TOTopology) ParamColumns() map[string]dbhelpers.WhereColumnInfo

ParamColumns maps query parameters to their respective database columns.

func (*TOTopology) Read

func (topology *TOTopology) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

Read is a requirement of the api.Reader interface and is called by api.ReadHandler().

func (*TOTopology) SetKeys

func (topology *TOTopology) SetKeys(keys map[string]interface{})

SetKeys is a requirement of the api.Updater interface and is called by api.UpdateHandler().

func (*TOTopology) SetLastUpdated

func (topology *TOTopology) SetLastUpdated(time tc.TimeNoMod)

func (*TOTopology) Update

func (topology *TOTopology) Update(h http.Header) (error, error, int)

Update is a requirement of the api.Updater interface.

func (*TOTopology) Validate

func (topology *TOTopology) Validate() error

Validate is a requirement of the api.Validator interface.

type Tarjan

type Tarjan struct {
	Graph      *Graph
	Stack      *NodeStack
	Components []Component
	Index      int
}

type TarjanNode

type TarjanNode struct {
	tc.TopologyNode
	Index   *int
	LowLink *int
	OnStack *bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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