endpoint

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package endpoint provides Graylog API endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

Endpoints represents each API's endpoint URLs.

func NewEndpoints

func NewEndpoints(endpoint string) (*Endpoints, error)

NewEndpoints returns a new Endpoints.

func (*Endpoints) AlarmCallbacks added in v0.5.0

func (ep *Endpoints) AlarmCallbacks() string

AlarmCallbacks returns AlarmCallbacks API's endpoint url.

func (*Endpoints) Alert added in v0.3.0

func (ep *Endpoints) Alert(id string) (*url.URL, error)

Alert returns an Alert API's endpoint url.

func (*Endpoints) AlertConditions added in v0.2.0

func (ep *Endpoints) AlertConditions() string

AlertConditions returns an Alert Condition API's endpoint url.

func (*Endpoints) Alerts added in v0.3.0

func (ep *Endpoints) Alerts() string

Alerts returns Alerts API's endpoint url.

func (*Endpoints) CollectorConfiguration added in v0.7.0

func (ep *Endpoints) CollectorConfiguration(id string) (*url.URL, error)

CollectorConfiguration returns a Collector Configuration API's endpoint url.

func (*Endpoints) CollectorConfigurationInput added in v0.7.0

func (ep *Endpoints) CollectorConfigurationInput(id, inputID string) (*url.URL, error)

CollectorConfigurationInput returns a Collector Configuration Input API's endpoint url.

func (*Endpoints) CollectorConfigurationInputs added in v0.7.0

func (ep *Endpoints) CollectorConfigurationInputs(id string) (*url.URL, error)

CollectorConfigurationInputs returns a Collector Configuration Input API's endpoint url.

func (*Endpoints) CollectorConfigurationName added in v0.7.0

func (ep *Endpoints) CollectorConfigurationName(id string) (*url.URL, error)

CollectorConfigurationName returns a Collector Configuration API's endpoint url.

func (*Endpoints) CollectorConfigurationOutput added in v0.7.0

func (ep *Endpoints) CollectorConfigurationOutput(id, outputID string) (*url.URL, error)

CollectorConfigurationOutput returns a Collector Configuration Output API's endpoint url.

func (*Endpoints) CollectorConfigurationOutputs added in v0.7.0

func (ep *Endpoints) CollectorConfigurationOutputs(id string) (*url.URL, error)

CollectorConfigurationOutputs returns a Collector Configuration Output API's endpoint url.

func (*Endpoints) CollectorConfigurationSnippet added in v0.7.0

func (ep *Endpoints) CollectorConfigurationSnippet(id, snippetID string) (*url.URL, error)

CollectorConfigurationSnippet returns a Collector Configuration Snippet API's endpoint url.

func (*Endpoints) CollectorConfigurationSnippets added in v0.7.0

func (ep *Endpoints) CollectorConfigurationSnippets(id string) (*url.URL, error)

CollectorConfigurationSnippets returns a Collector Configuration Snippet API's endpoint url.

func (*Endpoints) CollectorConfigurations added in v0.7.0

func (ep *Endpoints) CollectorConfigurations() string

CollectorConfigurations returns a Collector Configuration API's endpoint url.

func (*Endpoints) Dashboard added in v0.4.0

func (ep *Endpoints) Dashboard(id string) (*url.URL, error)

Dashboard returns an Dashboard API's endpoint url.

func (*Endpoints) DashboardWidget added in v0.8.0

func (ep *Endpoints) DashboardWidget(dashboardID, widgetID string) (*url.URL, error)

DashboardWidget returns an Dashboard Widget API's endpoint url.

func (*Endpoints) DashboardWidgets added in v0.8.0

func (ep *Endpoints) DashboardWidgets(dashboardID string) (*url.URL, error)

DashboardWidgets returns an Dashboard Widget API's endpoint url.

func (*Endpoints) Dashboards added in v0.4.0

func (ep *Endpoints) Dashboards() string

Dashboards returns an Dashboard API's endpoint url.

func (*Endpoints) EnabledStreams

func (ep *Endpoints) EnabledStreams() string

EnabledStreams returns GetEnabledStreams API's endpoint url.

func (*Endpoints) IndexSet

func (ep *Endpoints) IndexSet(id string) (*url.URL, error)

IndexSet returns an IndexSet API's endpoint url.

func (*Endpoints) IndexSetStats

func (ep *Endpoints) IndexSetStats(id string) (*url.URL, error)

IndexSetStats returns an IndexSet stats API's endpoint url.

func (*Endpoints) IndexSets

func (ep *Endpoints) IndexSets() string

IndexSets returns an IndexSet API's endpoint url.

func (*Endpoints) IndexSetsStats

func (ep *Endpoints) IndexSetsStats() string

IndexSetsStats returns all IndexSets stats API's endpoint url.

func (*Endpoints) Input

func (ep *Endpoints) Input(id string) (*url.URL, error)

Input returns an Input API's endpoint url.

func (*Endpoints) Inputs

func (ep *Endpoints) Inputs() string

Inputs returns an Input API's endpoint url.

func (*Endpoints) LDAPGroupRoleMapping added in v0.10.0

func (ep *Endpoints) LDAPGroupRoleMapping() string

LDAPGroupRoleMapping returns the LDAP Group and role mapping API's endpoint url.

func (*Endpoints) LDAPGroups added in v0.10.0

func (ep *Endpoints) LDAPGroups() string

LDAPGroups returns the LDAP Setting API's endpoint url.

func (*Endpoints) LDAPSetting added in v0.6.0

func (ep *Endpoints) LDAPSetting() string

LDAPSetting returns the LDAP Setting API's endpoint url.

func (*Endpoints) PauseStream

func (ep *Endpoints) PauseStream(id string) (*url.URL, error)

PauseStream returns PauseStream API's endpoint url.

func (*Endpoints) PipelineRule added in v1.4.0

func (ep *Endpoints) PipelineRule(id string) (*url.URL, error)

PipelineRule returns an Pipeline Rule API's endpoint url.

func (*Endpoints) PipelineRules added in v1.4.0

func (ep *Endpoints) PipelineRules() string

PipelineRules returns a Pipeline Rules API's endpoint url.

func (*Endpoints) ResumeStream

func (ep *Endpoints) ResumeStream(id string) (*url.URL, error)

ResumeStream returns ResumeStream API's endpoint url.

func (*Endpoints) Role

func (ep *Endpoints) Role(name string) (*url.URL, error)

Role returns a Role API's endpoint url.

func (*Endpoints) RoleMember

func (ep *Endpoints) RoleMember(userName, roleName string) (*url.URL, error)

RoleMember returns given role member endpoint url.

func (*Endpoints) RoleMembers

func (ep *Endpoints) RoleMembers(name string) (*url.URL, error)

RoleMembers returns given role's member endpoint url.

func (*Endpoints) Roles

func (ep *Endpoints) Roles() string

Roles returns a Role API's endpoint url.

func (*Endpoints) SetDefaultIndexSet

func (ep *Endpoints) SetDefaultIndexSet(id string) (*url.URL, error)

SetDefaultIndexSet returns SetDefaultIndexSet API's endpoint url.

func (*Endpoints) Stream

func (ep *Endpoints) Stream(id string) (*url.URL, error)

Stream returns a Stream API's endpoint url.

func (*Endpoints) StreamAlarmCallback added in v1.1.0

func (ep *Endpoints) StreamAlarmCallback(streamID, id string) (*url.URL, error)

StreamAlarmCallback returns Stream Alarm Callback API's endpoint url.

func (*Endpoints) StreamAlarmCallbacks added in v1.1.0

func (ep *Endpoints) StreamAlarmCallbacks(streamID string) (*url.URL, error)

StreamAlarmCallbacks returns Stream Alarm Callback API's endpoint url.

func (*Endpoints) StreamAlertCondition added in v1.0.0

func (ep *Endpoints) StreamAlertCondition(streamID, id string) (*url.URL, error)

StreamAlertCondition returns Stream Alert Condition API's endpoint url.

func (*Endpoints) StreamAlertConditions added in v1.0.0

func (ep *Endpoints) StreamAlertConditions(streamID string) (*url.URL, error)

StreamAlertConditions returns Stream Alert Condition API's endpoint url.

func (*Endpoints) StreamRule

func (ep *Endpoints) StreamRule(streamID, streamRuleID string) (*url.URL, error)

StreamRule returns a Stream Rule API's endpoint url.

func (*Endpoints) StreamRuleTypes

func (ep *Endpoints) StreamRuleTypes(streamID string) (*url.URL, error)

StreamRuleTypes returns Stream Rule Types API's endpoint url.

func (*Endpoints) StreamRules

func (ep *Endpoints) StreamRules(streamID string) (*url.URL, error)

StreamRules returns Stream Rules API's endpoint url.

func (*Endpoints) Streams

func (ep *Endpoints) Streams() string

Streams returns a Stream API's endpoint url.

func (*Endpoints) User

func (ep *Endpoints) User(name string) (*url.URL, error)

User returns a User API's endpoint url.

func (*Endpoints) Users

func (ep *Endpoints) Users() string

Users returns a User API's endpoint url.

Jump to

Keyboard shortcuts

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