client

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 {
	// contains filtered or unexported fields
}

GremlinQueryHelper describes a gremlin query request query helper mechanism

func NewGremlinQueryHelper

func NewGremlinQueryHelper(authOptions *shttp.AuthenticationOpts) *GremlinQueryHelper

NewGremlinQueryHelper creates a new Gremlin query helper based on authentication

func (*GremlinQueryHelper) GetFlowMetric

func (g *GremlinQueryHelper) GetFlowMetric(query string) (m *flow.FlowMetric, _ error)

GetFlowMetric from Gremlin query

func (*GremlinQueryHelper) GetFlows

func (g *GremlinQueryHelper) GetFlows(query string) (flows []*flow.Flow, err error)

GetFlows form the Gremlin query

func (*GremlinQueryHelper) GetMetric

func (g *GremlinQueryHelper) GetMetric(query string) (common.Metric, error)

GetMetric from Gremlin query

func (*GremlinQueryHelper) GetMetrics

func (g *GremlinQueryHelper) GetMetrics(query string) (map[string][]common.Metric, error)

GetMetrics from Gremlin query

func (*GremlinQueryHelper) GetNode

func (g *GremlinQueryHelper) GetNode(query string) (node *graph.Node, _ error)

GetNode from the Gremlin query

func (*GremlinQueryHelper) GetNodes

func (g *GremlinQueryHelper) GetNodes(query string) ([]*graph.Node, error)

GetNodes from the Gremlin query

func (*GremlinQueryHelper) QueryObject

func (g *GremlinQueryHelper) QueryObject(query string, value interface{}) error

QueryObject the topology API and deserialize into value

func (*GremlinQueryHelper) QueryRaw

func (g *GremlinQueryHelper) QueryRaw(query string) ([]byte, error)

Query the topology API

func (*GremlinQueryHelper) Request

func (g *GremlinQueryHelper) Request(query string, header http.Header) (*http.Response, error)

Request send a Gremlin request to the topology API

Source Files

  • client.go
  • gremlin.go

Jump to

Keyboard shortcuts

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