Documentation ¶
Index ¶
- Variables
- func Provider() terraform.ResourceProvider
- type Client
- func (s *Client) CreateCloudsyslogSource(cloudSyslogSource CloudSyslogSource, collectorID int) (int, error)
- func (s *Client) CreateCollector(collector Collector) (int, error)
- func (s *Client) CreateHTTPSource(httpSource HTTPSource, collectorID int) (int, error)
- func (s *Client) CreatePollingSource(source PollingSource, collectorID int) (int, error)
- func (s *Client) Delete(urlPath string) ([]byte, error)
- func (s *Client) DeleteCollector(id int) error
- func (s *Client) DestroySource(sourceID int, collectorID int) error
- func (s *Client) Get(urlPath string) ([]byte, string, error)
- func (s *Client) GetCloudSyslogSource(collectorID, sourceID int) (*CloudSyslogSource, error)
- func (s *Client) GetCollector(id int) (*Collector, error)
- func (s *Client) GetCollectorName(name string) (*Collector, error)
- func (s *Client) GetHTTPSource(collectorID, sourceID int) (*HTTPSource, error)
- func (s *Client) GetPollingSource(collectorID, sourceID int) (*PollingSource, error)
- func (s *Client) GetSourceName(collectorID int, sourceName string) (*Source, error)
- func (s *Client) GetWithCookies(urlPath string, cookies []*http.Cookie) ([]byte, string, error)
- func (s *Client) Post(urlPath string, payload interface{}) ([]byte, error)
- func (s *Client) PostWithCookies(urlPath string, payload interface{}) ([]byte, []*http.Cookie, error)
- func (s *Client) Put(urlPath string, payload interface{}) ([]byte, error)
- func (s *Client) UpdateCloudSyslogSource(source CloudSyslogSource, collectorID int) error
- func (s *Client) UpdateCollector(collector Collector) error
- func (s *Client) UpdateHTTPSource(source HTTPSource, collectorID int) error
- func (s *Client) UpdatePollingSource(source PollingSource, collectorID int) error
- type CloudSyslogSource
- type Collector
- type CollectorLink
- type CollectorList
- type CollectorRequest
- type CollectorResponse
- type DefaultDateFormat
- type ErrorResponse
- type Filter
- type HTTPSource
- type PollingAuthentication
- type PollingPath
- type PollingResource
- type PollingSource
- type PollingThirdPartyRef
- type Source
- type SourceList
Constants ¶
This section is empty.
Variables ¶
View Source
var SumoMutexKV = mutexkv.NewMutexKV()
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
type Client ¶
func (*Client) CreateCloudsyslogSource ¶
func (s *Client) CreateCloudsyslogSource(cloudSyslogSource CloudSyslogSource, collectorID int) (int, error)
func (*Client) CreateHTTPSource ¶
func (s *Client) CreateHTTPSource(httpSource HTTPSource, collectorID int) (int, error)
func (*Client) CreatePollingSource ¶
func (s *Client) CreatePollingSource(source PollingSource, collectorID int) (int, error)
func (*Client) DeleteCollector ¶
func (*Client) GetCloudSyslogSource ¶
func (s *Client) GetCloudSyslogSource(collectorID, sourceID int) (*CloudSyslogSource, error)
func (*Client) GetCollectorName ¶
func (*Client) GetHTTPSource ¶
func (s *Client) GetHTTPSource(collectorID, sourceID int) (*HTTPSource, error)
func (*Client) GetPollingSource ¶
func (s *Client) GetPollingSource(collectorID, sourceID int) (*PollingSource, error)
func (*Client) GetSourceName ¶
func (*Client) GetWithCookies ¶
func (*Client) PostWithCookies ¶
func (*Client) UpdateCloudSyslogSource ¶
func (s *Client) UpdateCloudSyslogSource(source CloudSyslogSource, collectorID int) error
func (*Client) UpdateCollector ¶
func (*Client) UpdateHTTPSource ¶
func (s *Client) UpdateHTTPSource(source HTTPSource, collectorID int) error
func (*Client) UpdatePollingSource ¶
func (s *Client) UpdatePollingSource(source PollingSource, collectorID int) error
type CloudSyslogSource ¶
type Collector ¶
type Collector struct { ID int `json:"id,omitempty"` CollectorType string `json:"collectorType,omitempty"` Name string `json:"name"` Description string `json:"description,omitempty"` Category string `json:"category,omitempty"` TimeZone string `json:"timeZone,omitempty"` Links []CollectorLink `json:"links,omitempty"` CollectorVersion string `json:"collectorVersion,omitempty"` LastSeenAlive int `json:"lastSeenAlive,omitempty"` Alive bool `json:"alive,omitempty"` }
type CollectorLink ¶
type CollectorList ¶
type CollectorList struct {
Collectors []Collector `json:"collectors"`
}
type CollectorRequest ¶
type CollectorRequest struct {
Collector Collector `json:"collector"`
}
type CollectorResponse ¶
type CollectorResponse struct {
Collector Collector `json:"collector"`
}
type DefaultDateFormat ¶
type ErrorResponse ¶
type HTTPSource ¶
type PollingAuthentication ¶
type PollingPath ¶
type PollingResource ¶
type PollingResource struct { ServiceType string `json:"serviceType"` Authentication PollingAuthentication `json:"authentication"` Path PollingPath `json:"path"` }
type PollingSource ¶
type PollingThirdPartyRef ¶
type PollingThirdPartyRef struct {
Resources []PollingResource `json:"resources"`
}
type Source ¶
type Source struct { ID int `json:"id,omitempty"` Type string `json:"sourceType"` Name string `json:"name"` Description string `json:"description,omitempty"` Category string `json:"category,omitempty"` HostName string `json:"hostName,omitempty"` TimeZone string `json:"timeZone,omitempty"` AutomaticDateParsing bool `json:"automaticDateParsing"` MultilineProcessingEnabled bool `json:"multilineProcessingEnabled"` UseAutolineMatching bool `json:"useAutolineMatching"` ManualPrefixRegexp string `json:"manualPrefixRegexp,omitempty"` ForceTimeZone bool `json:"forceTimeZone"` DefaultDateFormats []DefaultDateFormat `json:"defaultDateFormats,omitempty"` Filters []Filter `json:"filters,omitempty"` CutoffTimestamp int `json:"cutoffTimestamp,omitempty"` CutoffRelativeTime string `json:"cutoffRelativeTime,omitempty"` }
type SourceList ¶
type SourceList struct {
Sources []Source `json:"sources"`
}
Source Files ¶
- data_sumologic_source_caller_identity.go
- provider.go
- resource_sumologic_cloudsyslog_source.go
- resource_sumologic_collector.go
- resource_sumologic_http_source.go
- resource_sumologic_polling_source.go
- sumologic_client.go
- sumologic_cloudsyslog_source.go
- sumologic_collectors.go
- sumologic_http_source.go
- sumologic_polling_source.go
- sumologic_sources.go
Click to show internal directories.
Click to hide internal directories.