client

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoResult = gclient.ErrNoResult

ErrNoResult is returned when a query returned no result

Functions

func NewCrudClientFromConfig

func NewCrudClientFromConfig(authOptions *shttp.AuthenticationOpts) (*shttp.CrudClient, error)

NewCrudClientFromConfig creates a new REST client on /api

func NewRestClientFromConfig

func NewRestClientFromConfig(authOptions *shttp.AuthenticationOpts) (*shttp.RestClient, error)

NewRestClientFromConfig creates a new REST client

Types

type GremlinQueryHelper

type GremlinQueryHelper struct {
	*gclient.GremlinQueryHelper
}

GremlinQueryHelper describes a gremlin query request query helper mechanism

func NewGremlinQueryHelper

func NewGremlinQueryHelper(restClient *shttp.RestClient) *GremlinQueryHelper

NewGremlinQueryHelper creates a new Gremlin query helper based on authentication

func NewGremlinQueryHelperFromConfig added in v0.27.0

func NewGremlinQueryHelperFromConfig(authOptions *shttp.AuthenticationOpts) (*GremlinQueryHelper, error)

NewGremlinQueryHelperFromConfig creates a new Gremlin query helper based on authentication based on configuration file

func (*GremlinQueryHelper) GetFlowMetric

func (g *GremlinQueryHelper) GetFlowMetric(query interface{}) (*flow.FlowMetric, error)

GetFlowMetric from Gremlin query

func (*GremlinQueryHelper) GetFlowMetrics added in v0.21.0

func (g *GremlinQueryHelper) GetFlowMetrics(query interface{}) (map[string][]*flow.FlowMetric, error)

GetFlowMetrics from Gremlin query

func (*GremlinQueryHelper) GetFlows

func (g *GremlinQueryHelper) GetFlows(query interface{}) ([]*flow.Flow, error)

GetFlows from the Gremlin query

func (*GremlinQueryHelper) GetInterfaceMetric added in v0.21.0

func (g *GremlinQueryHelper) GetInterfaceMetric(query interface{}) (*topology.InterfaceMetric, error)

GetInterfaceMetric from Gremlin query

func (*GremlinQueryHelper) GetInterfaceMetrics added in v0.21.0

func (g *GremlinQueryHelper) GetInterfaceMetrics(query interface{}) (map[string][]*topology.InterfaceMetric, error)

GetInterfaceMetrics from Gremlin query

func (*GremlinQueryHelper) GetSFlowMetric added in v0.22.0

func (g *GremlinQueryHelper) GetSFlowMetric(query interface{}) (*sflow.SFMetric, error)

GetSFlowMetric from Gremlin query

func (*GremlinQueryHelper) GetSFlowMetrics added in v0.22.0

func (g *GremlinQueryHelper) GetSFlowMetrics(query interface{}) (map[string][]*sflow.SFMetric, error)

GetSFlowMetrics from Gremlin query

func (*GremlinQueryHelper) GetSockets added in v0.17.0

func (g *GremlinQueryHelper) GetSockets(query interface{}) (sockets map[string][]*socketinfo.ConnectionInfo, err error)

GetSockets from the Gremlin query

Jump to

Keyboard shortcuts

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