Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodGet    = "GET"
	MethodPost   = "POST"
	MethodPut    = "PUT"
	MethodPatch  = "PATCH"
	MethodDelete = "DELETE"
)

Declare constants for service package

View Source
const ACLGetModeCloud = "cloud"

Variables

This section is empty.

Functions

func NewSplunkdHTTPClient

func NewSplunkdHTTPClient(timeout time.Duration, skipValidateTLS bool) (*http.Client, error)

NewSplunkdHTTPClient returns a HTTP Client with timeout and tls validation setup

Types

type Client

type Client struct {
	ACLGetMode string // provider acl_get_mode: "cloud" adds owner/sharing on ACL GET; otherwise omitted
	// contains filtered or unexported fields
}

A Client is used to communicate with Splunkd endpoints

func NewDefaultSplunkdClient

func NewDefaultSplunkdClient() (*Client, error)

NewDefaultSplunkdClient creates a Client with default values

func NewSplunkdClient

func NewSplunkdClient(sessionKey string, auth [2]string, host string, path string, httpClient *http.Client) (*Client, error)

NewSplunkdClient creates a Client with custom values passed in

func NewSplunkdClientWithAuthToken

func NewSplunkdClientWithAuthToken(authToken string, auth [2]string, host string, path string, httpClient *http.Client) (*Client, error)

NewSplunkdClient creates a Client with custom values passed in

func (*Client) BuildSplunkURL

func (c *Client) BuildSplunkURL(queryValues url.Values, urlPathParts ...string) url.URL

func (*Client) BuildSplunkURLWithEscapedPathPart added in v1.5.2

func (c *Client) BuildSplunkURLWithEscapedPathPart(queryValues url.Values, pathPart string, urlPathParts ...string) url.URL

func (*Client) CreateAdminProxyssoGroups added in v1.6.0

func (client *Client) CreateAdminProxyssoGroups(name string, adminProxyssoGroupsObject *models.AdminProxyssoGroupsObject) error

CreateAdminProxyssoGroups posts a new mapping to the admin/ProxySSO-groups collection. The group name belongs in the form body. Posting it in the path is the update endpoint and fails when the group does not exist yet.

func (*Client) CreateAdminSAMLGroups

func (client *Client) CreateAdminSAMLGroups(name string, adminSAMLGroupsObject *models.AdminSAMLGroupsObject) error

func (*Client) CreateAppsLocalObject

func (client *Client) CreateAppsLocalObject(app string, localAppObject *models.AppsLocalObject) error

func (*Client) CreateAuthenticationUser

func (client *Client) CreateAuthenticationUser(name string, authenticationUserObject *models.AuthenticationUserObject) error

func (*Client) CreateAuthorizationRoles

func (client *Client) CreateAuthorizationRoles(name string, authorizationRolesObject *models.AuthorizationRolesObject) error

func (*Client) CreateConfigsConfObject

func (client *Client) CreateConfigsConfObject(name string, owner string, app string, configsConfConfigObj *models.ConfigsConfObject) error

func (*Client) CreateDashboardObject added in v1.3.9

func (client *Client) CreateDashboardObject(owner string, app string, splunkDashboardsObj *models.SplunkDashboardsObject) (*http.Response, error)

func (*Client) CreateFederatedIndex added in v1.5.6

func (client *Client) CreateFederatedIndex(name string, index *models.FederatedIndexObject) error

CreateFederatedIndex submits a short name; Splunk adds the federated: prefix.

func (*Client) CreateFederatedProvider added in v1.5.6

func (client *Client) CreateFederatedProvider(name string, provider *models.FederatedProviderObject) error

CreateFederatedProvider creates a Splunk-to-Splunk federated provider.

func (*Client) CreateGlobalHttpEventCollectorObject

func (client *Client) CreateGlobalHttpEventCollectorObject(httpInputConfigObj models.GlobalHttpEventCollectorObject) error

func (*Client) CreateHttpEventCollectorObject

func (client *Client) CreateHttpEventCollectorObject(name string, owner string, app string, httpInputConfigObj *models.HttpEventCollectorObject) error

func (*Client) CreateIndexObject

func (client *Client) CreateIndexObject(name string, owner string, app string, indexConfigObj *models.IndexObject) error

func (*Client) CreateLookupDefinitionObject added in v1.4.28

func (client *Client) CreateLookupDefinitionObject(owner string, app string, splunkLookupDefObj *models.SplunkLookupDefinitionObject) error

func (*Client) CreateLookupTableFile added in v1.4.27

func (client *Client) CreateLookupTableFile(name string, owner string, app string, contents string) error

func (*Client) CreateMonitorInput

func (client *Client) CreateMonitorInput(name string, owner string, app string, inputsMonitorObject *models.InputsMonitorObject) error

func (*Client) CreateSavedEventTypes added in v1.5.0

func (client *Client) CreateSavedEventTypes(name, owner, app string, savedEventTypeObject *models.SavedEventTypeObject) error

func (*Client) CreateSavedSearches

func (client *Client) CreateSavedSearches(name, owner, app string, savedSearchObject *models.SavedSearchObject) (*http.Response, error)

func (*Client) CreateScriptedInput

func (client *Client) CreateScriptedInput(name string, owner string, app string, inputsScriptObject *models.InputsScriptObject) error

func (*Client) CreateShIndexesManagerObject added in v1.4.2

func (client *Client) CreateShIndexesManagerObject(name string, owner string, app string, indexConfigObj *models.ShIndexesManagerObject) error

func (*Client) CreateSplunkTCPTokenInput

func (client *Client) CreateSplunkTCPTokenInput(owner string, app string, inputsSplunkTCPTokenObject *models.InputsSplunkTCPTokenObject) error

func (*Client) CreateTCPCookedInput

func (client *Client) CreateTCPCookedInput(name string, owner string, app string, inputsTCPCookedObject *models.InputsTCPCookedObject) error

func (*Client) CreateTCPDefaultOutput

func (client *Client) CreateTCPDefaultOutput(name string, owner string, app string, outputsTCPDefaultObject *models.OutputsTCPDefaultObject) error

func (*Client) CreateTCPGroupOutput

func (client *Client) CreateTCPGroupOutput(name string, owner string, app string, outputsTCPGroupObject *models.OutputsTCPGroupObject) error

func (*Client) CreateTCPRawInput

func (client *Client) CreateTCPRawInput(name string, owner string, app string, inputsTCPRawObject *models.InputsTCPRawObject) error

func (*Client) CreateTCPSSLInput

func (client *Client) CreateTCPSSLInput(inputsTCPSSLObject *models.InputsTCPSSLObject) error

func (*Client) CreateTCPServerOutput

func (client *Client) CreateTCPServerOutput(name string, owner string, app string, outputsTCPServerObject *models.OutputsTCPServerObject) error

func (*Client) CreateTCPSyslogOutput

func (client *Client) CreateTCPSyslogOutput(name string, owner string, app string, outputsTCPSyslogObject *models.OutputsTCPSyslogObject) error

func (*Client) CreateUDPInput

func (client *Client) CreateUDPInput(name string, owner string, app string, inputsUDPObject *models.InputsUDPObject) error

func (*Client) Delete

func (c *Client) Delete(deleteURL url.URL) (*http.Response, error)

Delete implements HTTP DELETE call

func (*Client) DeleteAdminProxyssoGroups added in v1.6.0

func (client *Client) DeleteAdminProxyssoGroups(name string) (*http.Response, error)

DeleteAdminProxyssoGroups removes one Proxy SSO group. The name is escaped once.

func (*Client) DeleteAdminSAMLGroups

func (client *Client) DeleteAdminSAMLGroups(name string) (*http.Response, error)

func (*Client) DeleteAppsLocalObject

func (client *Client) DeleteAppsLocalObject(app string) (*http.Response, error)

func (*Client) DeleteAuthenticationUser

func (client *Client) DeleteAuthenticationUser(name string) (*http.Response, error)

func (*Client) DeleteAuthorizationRoles

func (client *Client) DeleteAuthorizationRoles(name string) (*http.Response, error)

func (*Client) DeleteConfigsConfObject

func (client *Client) DeleteConfigsConfObject(name, owner, app string) (*http.Response, error)

func (*Client) DeleteDashboardObject added in v1.3.9

func (client *Client) DeleteDashboardObject(owner string, app string, name string) (*http.Response, error)

func (*Client) DeleteFederatedIndex added in v1.5.6

func (client *Client) DeleteFederatedIndex(name string) (*http.Response, error)

DeleteFederatedIndex removes a federated index definition.

func (*Client) DeleteFederatedProvider added in v1.5.6

func (client *Client) DeleteFederatedProvider(name string) (*http.Response, error)

DeleteFederatedProvider removes a federated provider definition.

func (*Client) DeleteHttpEventCollectorObject

func (client *Client) DeleteHttpEventCollectorObject(name, owner, app string) (*http.Response, error)

func (*Client) DeleteIndexObject

func (client *Client) DeleteIndexObject(name, owner, app string) (*http.Response, error)

func (*Client) DeleteLookupDefinitionObject added in v1.4.28

func (client *Client) DeleteLookupDefinitionObject(owner string, app string, name string) (*http.Response, error)

func (*Client) DeleteLookupTableFile added in v1.4.27

func (client *Client) DeleteLookupTableFile(name string, owner string, app string) (*http.Response, error)

func (*Client) DeleteMonitorInput

func (client *Client) DeleteMonitorInput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteSavedEventTypes added in v1.5.0

func (client *Client) DeleteSavedEventTypes(name, owner, app string) (*http.Response, error)

func (*Client) DeleteSavedSearches

func (client *Client) DeleteSavedSearches(name, owner, app string) (*http.Response, error)

func (*Client) DeleteScriptedInput

func (client *Client) DeleteScriptedInput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteShIndexesManagerObject added in v1.4.2

func (client *Client) DeleteShIndexesManagerObject(name, owner, app string) (*http.Response, error)

func (*Client) DeleteSplunkTCPTokenInput

func (client *Client) DeleteSplunkTCPTokenInput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteTCPCookedInput

func (client *Client) DeleteTCPCookedInput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteTCPDefaultOutput

func (client *Client) DeleteTCPDefaultOutput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteTCPGroupOutput

func (client *Client) DeleteTCPGroupOutput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteTCPRawInput

func (client *Client) DeleteTCPRawInput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteTCPServerOutput

func (client *Client) DeleteTCPServerOutput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteTCPSyslogOutput

func (client *Client) DeleteTCPSyslogOutput(name, owner, app string) (*http.Response, error)

func (*Client) DeleteUDPInput

func (client *Client) DeleteUDPInput(name, owner, app string) (*http.Response, error)

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

Do sends out request and returns HTTP response

func (*Client) DoRequest

func (c *Client) DoRequest(method string, requestURL url.URL, body interface{}) (*http.Response, error)

DoRequest creates and execute a new request

func (*Client) EncodeObject

func (c *Client) EncodeObject(content interface{}) ([]byte, error)

EncodeObject encodes an object into url-encoded string

func (*Client) EncodeRequestBody

func (c *Client) EncodeRequestBody(content interface{}) ([]byte, error)

EncodeRequestBody takes a json string or object and serializes it to be used in request body

func (*Client) Get

func (c *Client) Get(getURL url.URL) (*http.Response, error)

Get implements HTTP Get call

func (*Client) GetAcl

func (client *Client) GetAcl(owner, app, name, sharing string, resources ...string) (*http.Response, error)

https://docs.splunk.com/Documentation/Splunk/8.0.4/RESTUM/RESTusing#Access_Control_List

func (*Client) Login

func (c *Client) Login() (e error)

func (*Client) Move

func (client *Client) Move(owner, app, name string, acl *models.ACLObject, resources ...string) error

func (*Client) NewRequest

func (c *Client) NewRequest(httpMethod, url string, body io.Reader) (*http.Request, error)

NewRequest creates a new HTTP Request and set proper header

func (*Client) Patch

func (c *Client) Patch(patchURL url.URL, body interface{}) (*http.Response, error)

Patch implements HTTP Patch call

func (*Client) Post

func (c *Client) Post(postURL url.URL, body interface{}) (*http.Response, error)

Post implements HTTP POST call

func (*Client) Put

func (c *Client) Put(putURL url.URL, body interface{}) (*http.Response, error)

Put implements HTTP PUT call

func (*Client) ReadAdminProxyssoGroups added in v1.6.0

func (client *Client) ReadAdminProxyssoGroups(name string) (*http.Response, error)

ReadAdminProxyssoGroups fetches one Proxy SSO group. The name is escaped once.

func (*Client) ReadAdminSAMLGroups

func (client *Client) ReadAdminSAMLGroups(name string) (*http.Response, error)

func (*Client) ReadAllAppsLocalObject

func (client *Client) ReadAllAppsLocalObject() (*http.Response, error)

func (*Client) ReadAllAuthorizationRoles

func (client *Client) ReadAllAuthorizationRoles() (*http.Response, error)

services/authorization/roles

func (*Client) ReadAllConfigsConfObject

func (client *Client) ReadAllConfigsConfObject(name string) (*http.Response, error)

func (*Client) ReadAllHttpEventCollectorObject

func (client *Client) ReadAllHttpEventCollectorObject() (*http.Response, error)

ReadAllHttpEventCollectorObject returns the list of HTTP Event Collector tokens. Per Splunk RESTREF (https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#data.2Finputs.2Fhttp), the documented list endpoint is GET /services/data/inputs/http (global, no servicesNS). GET /servicesNS/-/-/data/inputs/http returns empty in some deployments (see issue #56).

func (*Client) ReadAllIndexObject

func (client *Client) ReadAllIndexObject() (*http.Response, error)

func (*Client) ReadAllSavedEventTypes added in v1.5.0

func (client *Client) ReadAllSavedEventTypes() (*http.Response, error)

services/saved/eventtypes

func (*Client) ReadAllShIndexesManagerObject added in v1.4.2

func (client *Client) ReadAllShIndexesManagerObject() (*http.Response, error)

func (*Client) ReadAppsLocalObject

func (client *Client) ReadAppsLocalObject(app string) (*http.Response, error)

func (*Client) ReadAuthenticationUser

func (client *Client) ReadAuthenticationUser(name, owner, app string) (*http.Response, error)

func (*Client) ReadAuthenticationUsers

func (client *Client) ReadAuthenticationUsers() (*http.Response, error)

services/authentication/users

func (*Client) ReadAuthorizationRoles

func (client *Client) ReadAuthorizationRoles(name, owner, app string) (*http.Response, error)

func (*Client) ReadConfigsConfObject

func (client *Client) ReadConfigsConfObject(name, owner, app string) (*http.Response, error)

func (*Client) ReadDashboardObject added in v1.3.9

func (client *Client) ReadDashboardObject(name, owner, app string) (*http.Response, error)

func (*Client) ReadFederatedIndex added in v1.5.6

func (client *Client) ReadFederatedIndex(name string) (*http.Response, error)

ReadFederatedIndex gets a federated index by name.

func (*Client) ReadFederatedProvider added in v1.5.6

func (client *Client) ReadFederatedProvider(name string) (*http.Response, error)

ReadFederatedProvider gets a provider by name. The response is returned on HTTP errors so callers can distinguish a missing object from other failures.

func (*Client) ReadGlobalHttpEventCollectorObject

func (client *Client) ReadGlobalHttpEventCollectorObject() (*http.Response, error)

func (*Client) ReadHttpEventCollectorObject

func (client *Client) ReadHttpEventCollectorObject(name, owner, app string) (*http.Response, error)

func (*Client) ReadIndexObject

func (client *Client) ReadIndexObject(name, owner, app string) (*http.Response, error)

ReadIndexObject fetches one index. The response is returned together with any status error so the caller can tell a 404 from other failures.

func (*Client) ReadLookupDefinitionObject added in v1.4.28

func (client *Client) ReadLookupDefinitionObject(name, owner, app string) (*http.Response, error)

func (*Client) ReadLookupTableFile added in v1.4.27

func (client *Client) ReadLookupTableFile(name, owner, app string) (*http.Response, error)

func (*Client) ReadMonitorInput

func (client *Client) ReadMonitorInput(name, owner, app string) (*http.Response, error)

func (*Client) ReadMonitorInputs

func (client *Client) ReadMonitorInputs() (*http.Response, error)

services/data/inputs/monitor

func (*Client) ReadSavedEventTypes added in v1.5.0

func (client *Client) ReadSavedEventTypes(name, owner, app string) (*http.Response, error)

func (*Client) ReadSavedSearches

func (client *Client) ReadSavedSearches(name, owner, app string) (*http.Response, error)

ReadSavedSearches fetches one saved search. The response is returned together with any status error so the caller can tell a 404 from other failures.

func (*Client) ReadScriptedInput

func (client *Client) ReadScriptedInput(name, owner, app string) (*http.Response, error)

func (*Client) ReadScriptedInputs

func (client *Client) ReadScriptedInputs() (*http.Response, error)

services/data/inputs/script

func (*Client) ReadShIndexesManagerObject added in v1.4.2

func (client *Client) ReadShIndexesManagerObject(name, owner, app string) (*http.Response, error)

func (*Client) ReadSplunkTCPTokenInput

func (client *Client) ReadSplunkTCPTokenInput(name, owner, app string) (*http.Response, error)

func (*Client) ReadSplunkTCPTokenInputs

func (client *Client) ReadSplunkTCPTokenInputs() (*http.Response, error)

services/data/inputs/tcp/splunktcptoken

func (*Client) ReadTCPCookedInput

func (client *Client) ReadTCPCookedInput(name, owner, app string) (*http.Response, error)

func (*Client) ReadTCPCookedInputs

func (client *Client) ReadTCPCookedInputs() (*http.Response, error)

services/data/inputs/tcp/cooked

func (*Client) ReadTCPDefaultOutput

func (client *Client) ReadTCPDefaultOutput(name, owner, app string) (*http.Response, error)

func (*Client) ReadTCPDefaultOutputs

func (client *Client) ReadTCPDefaultOutputs() (*http.Response, error)

services/data/outputs/tcp/default

func (*Client) ReadTCPGroupOutput

func (client *Client) ReadTCPGroupOutput(name, owner, app string) (*http.Response, error)

func (*Client) ReadTCPGroupOutputs

func (client *Client) ReadTCPGroupOutputs() (*http.Response, error)

services/data/outputs/tcp/group

func (*Client) ReadTCPRawInput

func (client *Client) ReadTCPRawInput(name, owner, app string) (*http.Response, error)

func (*Client) ReadTCPRawInputs

func (client *Client) ReadTCPRawInputs() (*http.Response, error)

services/data/inputs/tcp/raw

func (*Client) ReadTCPSSLInput

func (client *Client) ReadTCPSSLInput() (*http.Response, error)

func (*Client) ReadTCPSSLInputs

func (client *Client) ReadTCPSSLInputs() (*http.Response, error)

func (*Client) ReadTCPServerOutput

func (client *Client) ReadTCPServerOutput(name, owner, app string) (*http.Response, error)

func (*Client) ReadTCPServerOutputs

func (client *Client) ReadTCPServerOutputs() (*http.Response, error)

services/data/outputs/tcp/server

func (*Client) ReadTCPSyslogOutput

func (client *Client) ReadTCPSyslogOutput(name, owner, app string) (*http.Response, error)

func (*Client) ReadTCPSyslogOutputs

func (client *Client) ReadTCPSyslogOutputs() (*http.Response, error)

services/data/outputs/tcp/syslog

func (*Client) ReadUDPInput

func (client *Client) ReadUDPInput(name, owner, app string) (*http.Response, error)

func (*Client) ReadUDPInputs

func (client *Client) ReadUDPInputs() (*http.Response, error)

services/data/inputs/udp

func (*Client) ResourcesAndNameForPath added in v1.4.8

func (client *Client) ResourcesAndNameForPath(path string) (resources []string, name string, ok bool)

func (*Client) SplitConfStanza

func (client *Client) SplitConfStanza(name string) (conf string, stanza string)

Takes a '/' separated string and returns the conf file name and the stanza name. Only the first '/' separates them: stanza names such as monitor:///var/log keep their slashes.

func (*Client) UpdateAcl

func (client *Client) UpdateAcl(owner, app, name string, acl *models.ACLObject, resources ...string) error

func (*Client) UpdateAdminProxyssoGroups added in v1.6.0

func (client *Client) UpdateAdminProxyssoGroups(name string, adminProxyssoGroupsObject *models.AdminProxyssoGroupsObject) error

UpdateAdminProxyssoGroups posts role changes to the named Proxy SSO group.

func (*Client) UpdateAdminSAMLGroups

func (client *Client) UpdateAdminSAMLGroups(name string, adminSAMLGroupsObject *models.AdminSAMLGroupsObject) error

func (*Client) UpdateAppsLocalObject

func (client *Client) UpdateAppsLocalObject(app string, localAppObject *models.AppsLocalObject) error

func (*Client) UpdateAuthenticationUser

func (client *Client) UpdateAuthenticationUser(name string, authenticationUserObject *models.AuthenticationUserObject) error

func (*Client) UpdateAuthorizationRoles

func (client *Client) UpdateAuthorizationRoles(name string, authorizationRolesObject *models.AuthorizationRolesObject) error

func (*Client) UpdateConfigsConfObject

func (client *Client) UpdateConfigsConfObject(name string, owner string, app string, configsConfConfigObj *models.ConfigsConfObject) error

func (*Client) UpdateDashboardObject added in v1.3.9

func (client *Client) UpdateDashboardObject(owner string, app string, name string, splunkDashboardsObj *models.SplunkDashboardsObject) error

func (*Client) UpdateFederatedIndex added in v1.5.6

func (client *Client) UpdateFederatedIndex(name string, index *models.FederatedIndexObject) error

UpdateFederatedIndex updates a federated index definition.

func (*Client) UpdateFederatedProvider added in v1.5.6

func (client *Client) UpdateFederatedProvider(name string, provider *models.FederatedProviderObject) error

UpdateFederatedProvider updates a federated provider definition.

func (*Client) UpdateGlobalHttpEventCollectorObject

func (client *Client) UpdateGlobalHttpEventCollectorObject(httpInputConfigObj models.GlobalHttpEventCollectorObject) error

func (*Client) UpdateHttpEventCollectorObject

func (client *Client) UpdateHttpEventCollectorObject(name string, owner string, app string, httpInputConfigObj *models.HttpEventCollectorObject) error

func (*Client) UpdateIndexObject

func (client *Client) UpdateIndexObject(name string, owner string, app string, indexConfigObj *models.IndexObject) error

func (*Client) UpdateLookupDefinitionObject added in v1.4.28

func (client *Client) UpdateLookupDefinitionObject(owner string, app string, name string, splunkLookupDefObj *models.SplunkLookupDefinitionObject) error

func (*Client) UpdateLookupTableFile added in v1.4.27

func (client *Client) UpdateLookupTableFile(name string, owner string, app string, contents string) error

func (*Client) UpdateMonitorInput

func (client *Client) UpdateMonitorInput(name string, owner string, app string, inputsMonitorObject *models.InputsMonitorObject) error

func (*Client) UpdateSavedEventTypes added in v1.5.0

func (client *Client) UpdateSavedEventTypes(name string, owner string, app string, savedEventTypeObject *models.SavedEventTypeObject) error

func (*Client) UpdateSavedSearches

func (client *Client) UpdateSavedSearches(name string, owner string, app string, savedSearchObject *models.SavedSearchObject, clearKeys []string) error

UpdateSavedSearches posts the saved search. Splunk keeps any key an update leaves out, so each key in clearKeys is posted with an empty value to clear it.

func (*Client) UpdateScriptedInput

func (client *Client) UpdateScriptedInput(name string, owner string, app string, inputsScriptObject *models.InputsScriptObject) error

func (*Client) UpdateShIndexesManagerObject added in v1.4.2

func (client *Client) UpdateShIndexesManagerObject(name string, owner string, app string, indexConfigObj *models.ShIndexesManagerObject) error

func (*Client) UpdateSplunkTCPTokenInput

func (client *Client) UpdateSplunkTCPTokenInput(name string, owner string, app string, inputsSplunkTCPTokenObject *models.InputsSplunkTCPTokenObject) error

func (*Client) UpdateTCPCookedInput

func (client *Client) UpdateTCPCookedInput(name string, owner string, app string, inputsTCPCookedObject *models.InputsTCPCookedObject) error

func (*Client) UpdateTCPDefaultOutput

func (client *Client) UpdateTCPDefaultOutput(name string, owner string, app string, outputsTCPDefaultObject *models.OutputsTCPDefaultObject) error

func (*Client) UpdateTCPGroupOutput

func (client *Client) UpdateTCPGroupOutput(name string, owner string, app string, outputsTCPGroupObject *models.OutputsTCPGroupObject) error

func (*Client) UpdateTCPRawInput

func (client *Client) UpdateTCPRawInput(name string, owner string, app string, inputsTCPRawObject *models.InputsTCPRawObject) error

func (*Client) UpdateTCPSSLInput

func (client *Client) UpdateTCPSSLInput(name string, inputsTCPSSLObject *models.InputsTCPSSLObject) error

func (*Client) UpdateTCPServerOutput

func (client *Client) UpdateTCPServerOutput(name string, owner string, app string, outputsTCPServerObject *models.OutputsTCPServerObject) error

func (*Client) UpdateTCPSyslogOutput

func (client *Client) UpdateTCPSyslogOutput(name string, owner string, app string, outputsTCPSyslogObject *models.OutputsTCPSyslogObject) error

func (*Client) UpdateUDPInput

func (client *Client) UpdateUDPInput(name string, owner string, app string, inputsUDPObject *models.InputsUDPObject) error

type HTTPStatusError added in v1.6.1

type HTTPStatusError struct {
	StatusCode int
	Message    string
}

HTTPStatusError is an UpdateAcl failure that carries the response status. Error text stays the same, so callers that only print the error are unchanged.

func (*HTTPStatusError) Error added in v1.6.1

func (e *HTTPStatusError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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