Documentation ¶
Overview ¶
******************************************************************************
- Copyright 2019 VMware 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 Dell 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 Dell 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 2017 Dell Inc.
- Copyright (c) 2019 Intel Corporation *
- 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 2017 Dell Inc.
- Copyright (c) 2019 Intel Corporation *
- 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 2017 Dell Inc.
- Copyright (c) 2019 Intel Corporation *
- 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 2017 Dell 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 2017 Dell 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 2017 Dell 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 2017 Dell 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
- Variables
- func Main(ctx context.Context, cancel context.CancelFunc, router *mux.Router, ...)
- func NewCborReader(configuration *config.ConfigurationStruct) cborReader
- func NewJsonReader() jsonReader
- type Bootstrap
- type DeviceLastReported
- type DeviceServiceLastReported
- type ErrUnsupportedContentType
- type EventReader
Constants ¶
const ( SCRUB = "scrub" SCRUBALL = "scruball" COUNT = "count" CHECKSUM = "checksum" LABEL = "label" DEVICEID_PARAM = "deviceId" UOMLABEL = "uomlabel" UOMLABEL_PARAM = "uomLabel" LIMIT = "limit" REMOVEOLD = "removeold" AGE = "age" START = "start" END = "end" TYPE = "type" DEVICENAME = "devicename" DEVICEID = "deviceid" ID = "id" NAME = "name" NAMES = "names" DEVICE = "device" USAGE = "usage" )
const ( ChecksumAlgoMD5 = "md5" ChecksumAlgoxxHash = "xxHash" )
Variables ¶
var ValueDescriptorUsageReadLimit = 1
ValueDescriptorUsageReadLimit limit of readings obtained for a given value descriptor to determine if the value descriptor is in use.
Functions ¶
func NewCborReader ¶
func NewCborReader(configuration *config.ConfigurationStruct) cborReader
NewCborReader creates a new instance of cborReader.
func NewJsonReader ¶
func NewJsonReader() jsonReader
NewJsonReader creates a new instance of cborReader.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
Bootstrap contains references to dependencies required by the BootstrapHandler.
func NewBootstrap ¶
NewBootstrap is a factory method that returns an initialized Bootstrap receiver struct.
type DeviceLastReported ¶
type DeviceLastReported struct {
DeviceName string
}
An event indicating that a given device has just reported some data
type DeviceServiceLastReported ¶
type DeviceServiceLastReported struct {
DeviceName string
}
An event indicating that the service associated with the device that just reported data is alive.
type ErrUnsupportedContentType ¶
type ErrUnsupportedContentType struct {
ContentType string
}
ErrUnsupportedContentType an error used when a request is received with an unsupported content type
func (ErrUnsupportedContentType) Error ¶
func (e ErrUnsupportedContentType) Error() string
type EventReader ¶
EventReader unmarshals a request body into an Event type
func NewRequestReader ¶
func NewRequestReader(request *http.Request, configuration *config.ConfigurationStruct) EventReader
NewRequestReader returns a BodyReader capable of processing the request body
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
******************************************************************************* * Copyright 2019 Dell Inc.
|
******************************************************************************* * Copyright 2019 Dell Inc. |
****************************************************************************** * Copyright 2018 Dell Inc.
|
****************************************************************************** * Copyright 2018 Dell Inc. |
****************************************************************************** * Copyright 2017 Dell Inc.
|
****************************************************************************** * Copyright 2017 Dell Inc. |
operators
|
|