Documentation ¶
Overview ¶
Copyright 2018 StreamSets Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2018 StreamSets Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2018 StreamSets Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2018 StreamSets Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func EnableControlHub(controlHubUrl string, controlHubUser string, controlHubPassword string, ...) (string, error)
- func RegisterWithControlHub(schConfig Config, buildInfo *common.BuildInfo, runtimeInfo *common.RuntimeInfo)
- type AckEvent
- type Attributes
- type ClientEvent
- type Config
- type MessageEventHandler
- type PipelineBaseEvent
- type PipelineConfigurationAndRules
- type PipelineSaveEvent
- type PipelineStatusEvent
- type PipelineStatusEvents
- type RegistrationData
- type SDCInfoEvent
- type SDCProcessMetricsEvent
- type ServerEvent
Constants ¶
const ( DefaultBaseUrl = "http://localhost:18631" AllLabel = "all" JobRunnerApp = "jobrunner-app" TimeSeriesApp = "timeseries-app" DefaultPingFrequency = 5000 DefaultStatusEventsInterval = 60000 )
const ( VALIDATE_PIPELINE = 1000 SAVE_PIPELINE = 1001 SAVE_RULES_PIPELINE = 1002 START_PIPELINE = 1003 STOP_PIPELINE = 1004 RESET_OFFSET_PIPELINE = 1005 DELETE_PIPELINE = 1006 DELETE_HISTORY_PIPELINE = 1007 PING_FREQUENCY_ADJUSTMENT = 1008 STOP_DELETE_PIPELINE = 1009 SSO_DISCONNECTED_MODE_CREDENTIALS = 1010 SYNC_ACL = 1011 STATUS_PIPELINE = 2000 SDC_INFO_EVENT = 2001 STATUS_MULTIPLE_PIPELINES = 2002 SDC_PROCESS_METRICS_EVENT = 2003 ACK_EVENT = 5000 ACK_EVENT_SUCCESS = "SUCCESS" ACK_EVENT_ERROR = "ERROR" ACK_EVENT_IGNORE = "IGNORE" )
const ( RegistrationUrlPath = "/security/public-rest/v1/components/registration" LoginUrlPath = "/security/public-rest/v1/authentication/login" CreateComponentUrlPath = "/security/rest/v1/organization/%s/components" EdgeComponentType = "dc-edge" FullAuthTokenProp = "fullAuthToken" PostRequest = "POST" PutRequest = "PUT" )
const (
MessagingUrlPath = "/messaging/rest/v1/events"
)
Variables ¶
This section is empty.
Functions ¶
func EnableControlHub ¶
func RegisterWithControlHub ¶
func RegisterWithControlHub( schConfig Config, buildInfo *common.BuildInfo, runtimeInfo *common.RuntimeInfo, )
Types ¶
type Attributes ¶
type Attributes struct { BaseHttpUrl string `json:"baseHttpUrl"` Sdc2GoGoVersion string `json:"sdc2goGoVersion"` Sdc2GoGoOS string `json:"sdc2goGoOS"` Sdc2GoGoArch string `json:"sdc2goGoArch"` Sdc2GoBuildDate string `json:"sdc2goBuildDate"` Sdc2GoRepoSha string `json:"sdc2goRepoSha"` Sdc2GoVersion string `json:"sdc2goVersion"` }
type ClientEvent ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` BaseUrl string `toml:"base-url"` AppAuthToken string `toml:"app-auth-token"` JobLabels []string `toml:"job-labels"` EventsRecipient string `toml:"events-recipient"` ProcessEventsRecipient []string `toml:"process-events-recipients"` PingFrequency int `toml:"ping-frequency"` StatusEventsInterval int `toml:"status-events-interval"` }
type MessageEventHandler ¶
type MessageEventHandler struct {
// contains filtered or unexported fields
}
func NewMessageEventHandler ¶
func NewMessageEventHandler( schConfig Config, buildInfo *common.BuildInfo, runtimeInfo *common.RuntimeInfo, pipelineStoreTask store.PipelineStoreTask, manager manager.Manager, ) *MessageEventHandler
func (*MessageEventHandler) Init ¶
func (m *MessageEventHandler) Init()
func (*MessageEventHandler) SendEvent ¶
func (m *MessageEventHandler) SendEvent(sendInfoEvent bool) error
func (*MessageEventHandler) Shutdown ¶
func (m *MessageEventHandler) Shutdown()
type PipelineBaseEvent ¶
type PipelineSaveEvent ¶
type PipelineSaveEvent struct { Name string `json:"name"` Rev string `json:"rev"` User string `json:"user"` PipelineConfigurationAndRules PipelineConfigurationAndRules `json:"pipelineConfigurationAndRules"` Description string `json:"description"` Offset string `json:"offset"` OffsetProtocolVersion float64 `json:"offsetProtocolVersion"` Acl interface{} `json:"acl"` }
type PipelineStatusEvent ¶
type PipelineStatusEvent struct { Name string `json:"name"` Title string `json:"title"` Rev string `json:"rev"` TimeStamp int64 `json:"timeStamp"` IsRemote bool `json:"remote"` PipelineStatus string `json:"pipelineStatus"` Message string `json:"message"` WorkerInfos interface{} `json:"workerInfos"` ValidationStatus interface{} `json:"validationStatus"` Issues string `json:"issues"` IsClusterMode bool `json:"clusterMode"` Offset string `json:"offset"` OffsetProtocolVersion float64 `json:"offsetProtocolVersion"` Acl interface{} `json:"acl"` RunnerCount float64 `json:"runnerCount"` }
type PipelineStatusEvents ¶
type PipelineStatusEvents struct {
PipelineStatusEventList []*PipelineStatusEvent `json:"pipelineStatusEventList"`
}
type RegistrationData ¶
type RegistrationData struct { AuthToken string `json:"authToken"` ComponentId string `json:"componentId"` Attributes Attributes `json:"attributes"` }