change

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • 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. *
  • SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	PENDING_CHANGE_SIZE  = "pendingChangesSize"
	APPROVED_CHANGE_SIZE = "approvedChangesSize"
)

Variables

This section is empty.

Functions

func AddPermanentTelemetryProfileElement

func AddPermanentTelemetryProfileElement(entry *logupload.TelemetryElement, telemetryEntries []logupload.TelemetryElement) ([]logupload.TelemetryElement, error)

func AddTelemetryProfileEntryChangeHandler

func AddTelemetryProfileEntryChangeHandler(w http.ResponseWriter, r *http.Request)

func AddTelemetryProfileEntryHandler

func AddTelemetryProfileEntryHandler(w http.ResponseWriter, r *http.Request)

func Approve

func Approve(r *http.Request, id string) (*xwchange.ApprovedChange, error)

func ApproveChangeHandler

func ApproveChangeHandler(w http.ResponseWriter, r *http.Request)

func ApproveChanges

func ApproveChanges(r *http.Request, changeIds *[]string) (map[string]string, error)

func ApproveChangesHandler

func ApproveChangesHandler(w http.ResponseWriter, r *http.Request)

func ApproveTelemetryTwoChange

func ApproveTelemetryTwoChange(r *http.Request, changeId string) (*xwchange.ApprovedTelemetryTwoChange, error)

func ApproveTelemetryTwoChanges

func ApproveTelemetryTwoChanges(r *http.Request, changeIds []string) map[string]string

func ApproveTwoChangeHandler

func ApproveTwoChangeHandler(w http.ResponseWriter, r *http.Request)

func ApproveTwoChangesHandler

func ApproveTwoChangesHandler(w http.ResponseWriter, r *http.Request)

func ApprovedChangesGeneratePage

func ApprovedChangesGeneratePage(list []*xwchange.ApprovedChange, page int, pageSize int) (result []*xwchange.ApprovedChange)

func CancelApprovedChangesByEntityId

func CancelApprovedChangesByEntityId(r *http.Request, entityIdsToByCancelChanges []string, changeIdsToBeExcluded []string) error

func CancelChange

func CancelChange(r *http.Request, changeId string) error

func CancelChangeHandler

func CancelChangeHandler(w http.ResponseWriter, r *http.Request)

func CancelTwoChangeHandler

func CancelTwoChangeHandler(w http.ResponseWriter, r *http.Request)

func ChangesGeneratePage

func ChangesGeneratePage(list []*xwchange.Change, page int, pageSize int) (result []*xwchange.Change)

func CreateApprovedChange

func CreateApprovedChange(r *http.Request, change *xwchange.Change) (*xwchange.ApprovedChange, error)

func CreateTelemetryIds

func CreateTelemetryIds() *xwhttp.ResponseEntity

func CreateTelemetryIdsHandler

func CreateTelemetryIdsHandler(w http.ResponseWriter, r *http.Request)

func CreateTelemetryProfileChangeHandler

func CreateTelemetryProfileChangeHandler(w http.ResponseWriter, r *http.Request)

func CreateTelemetryProfileHandler

func CreateTelemetryProfileHandler(w http.ResponseWriter, r *http.Request)

func CreateTelemetryTwoProfileChangeHandler

func CreateTelemetryTwoProfileChangeHandler(w http.ResponseWriter, r *http.Request)

func CreateTelemetryTwoProfileHandler

func CreateTelemetryTwoProfileHandler(w http.ResponseWriter, r *http.Request)

func Delete

func Delete(changeId string) (*xwchange.Change, error)

func DeleteApprovedTelemetryTwoChange

func DeleteApprovedTelemetryTwoChange(changeId string) error

func DeletePermanentTelemetryProfile

func DeletePermanentTelemetryProfile(r *http.Request, id string) (*logupload.PermanentTelemetryProfile, error)

func DeleteTelemetryProfileChangeHandler

func DeleteTelemetryProfileChangeHandler(w http.ResponseWriter, r *http.Request)

func DeleteTelemetryProfileHandler

func DeleteTelemetryProfileHandler(w http.ResponseWriter, r *http.Request)

func DeleteTelemetryTwoChange

func DeleteTelemetryTwoChange(changeId string) error

func DeleteTelemetryTwoProfile

func DeleteTelemetryTwoProfile(r *http.Request, id string) error

func DeleteTelemetryTwoProfileChangeHandler

func DeleteTelemetryTwoProfileChangeHandler(w http.ResponseWriter, r *http.Request)

func DeleteTelemetryTwoProfileHandler

func DeleteTelemetryTwoProfileHandler(w http.ResponseWriter, r *http.Request)

func FindByContextForApprovedChanges

func FindByContextForApprovedChanges(r *http.Request, searchContext map[string]string) []*xwchange.ApprovedChange

func FindByContextForChanges

func FindByContextForChanges(searchContext map[string]string) []*xwchange.Change

func FindTelemetryElementById

func FindTelemetryElementById(id string, telemetryElements *[]logupload.TelemetryElement) *logupload.TelemetryElement

func GeneratePageApprovedTelemetryTwoChanges

func GeneratePageApprovedTelemetryTwoChanges(list []*xwchange.ApprovedTelemetryTwoChange, page int, pageSize int) (result []*xwchange.ApprovedTelemetryTwoChange)

func GeneratePageTelemetryProfiles

func GeneratePageTelemetryProfiles(list []*xwlogupload.PermanentTelemetryProfile, page int, pageSize int) (result []*xwlogupload.PermanentTelemetryProfile)

func GeneratePageTelemetryTwoChanges

func GeneratePageTelemetryTwoChanges(list []*xwchange.TelemetryTwoChange, page int, pageSize int) (result []*xwchange.TelemetryTwoChange)

func GeneratePageTelemetryTwoProfiles

func GeneratePageTelemetryTwoProfiles(list []*xwlogupload.TelemetryTwoProfile, page int, pageSize int) (result []*xwlogupload.TelemetryTwoProfile)

func GetApprovedAll

func GetApprovedAll(r *http.Request) ([]*xwchange.ApprovedChange, error)

func GetApprovedFilteredHandler

func GetApprovedFilteredHandler(w http.ResponseWriter, r *http.Request)

func GetApprovedHandler

func GetApprovedHandler(w http.ResponseWriter, r *http.Request)

func GetApprovedTelemetryTwoChangesByContext

func GetApprovedTelemetryTwoChangesByContext(searchContext map[string]string) []*xwchange.ApprovedTelemetryTwoChange

func GetApprovedTwoChangesFilteredHandler

func GetApprovedTwoChangesFilteredHandler(w http.ResponseWriter, r *http.Request)

func GetApprovedTwoChangesHandler

func GetApprovedTwoChangesHandler(w http.ResponseWriter, r *http.Request)

func GetChangedEntityIds

func GetChangedEntityIds() *[]string

func GetChangedEntityIdsHandler

func GetChangedEntityIdsHandler(w http.ResponseWriter, r *http.Request)

func GetChangesByEntityId

func GetChangesByEntityId(entityId string) []*xwchange.Change

func GetChangesByEntityIds

func GetChangesByEntityIds(changeIds *[]string) ([]*xwchange.Change, error)

func GetChangesFilteredHandler

func GetChangesFilteredHandler(w http.ResponseWriter, r *http.Request)

func GetGroupedApprovedChangesHandler

func GetGroupedApprovedChangesHandler(w http.ResponseWriter, r *http.Request)

func GetGroupedApprovedTwoChangesHandler

func GetGroupedApprovedTwoChangesHandler(w http.ResponseWriter, r *http.Request)

func GetGroupedChangesHandler

func GetGroupedChangesHandler(w http.ResponseWriter, r *http.Request)

func GetGroupedTwoChangesHandler

func GetGroupedTwoChangesHandler(w http.ResponseWriter, r *http.Request)

func GetProfileChangesHandler

func GetProfileChangesHandler(w http.ResponseWriter, r *http.Request)

func GetTelemetryProfileByIdHandler

func GetTelemetryProfileByIdHandler(w http.ResponseWriter, r *http.Request)

func GetTelemetryProfilesByContext

func GetTelemetryProfilesByContext(searchContext map[string]string) []*logupload.PermanentTelemetryProfile

func GetTelemetryProfilesHandler

func GetTelemetryProfilesHandler(w http.ResponseWriter, r *http.Request)

func GetTelemetryTwoChangeEntityIds

func GetTelemetryTwoChangeEntityIds() []string

func GetTelemetryTwoChangesByContext

func GetTelemetryTwoChangesByContext(searchContext map[string]string) []*xwchange.TelemetryTwoChange

func GetTelemetryTwoChangesByEntityId

func GetTelemetryTwoChangesByEntityId(entityId string) []*xwchange.TelemetryTwoChange

func GetTelemetryTwoChangesByIds

func GetTelemetryTwoChangesByIds(changeIds []string) []*xwchange.TelemetryTwoChange

func GetTelemetryTwoProfileByIdHandler

func GetTelemetryTwoProfileByIdHandler(w http.ResponseWriter, r *http.Request)

func GetTelemetryTwoProfilePageHandler

func GetTelemetryTwoProfilePageHandler(w http.ResponseWriter, r *http.Request)

TODO remove this function when we are sure that we don't need it anymore

func GetTelemetryTwoProfilesByContext

func GetTelemetryTwoProfilesByContext(searchContext map[string]string) []*xwlogupload.TelemetryTwoProfile

func GetTelemetryTwoProfilesByIdList

func GetTelemetryTwoProfilesByIdList(appType string, idList []string) []xwlogupload.TelemetryTwoProfile

func GetTelemetryTwoProfilesHandler

func GetTelemetryTwoProfilesHandler(w http.ResponseWriter, r *http.Request)

func GetTwoChangeEntityIdsHandler

func GetTwoChangeEntityIdsHandler(w http.ResponseWriter, r *http.Request)

func GetTwoChangesFilteredHandler

func GetTwoChangesFilteredHandler(w http.ResponseWriter, r *http.Request)

func GetTwoProfileChangesHandler

func GetTwoProfileChangesHandler(w http.ResponseWriter, r *http.Request)

func GroupApprovedChanges

func GroupApprovedChanges(changes []*xwchange.ApprovedChange) map[string][]*xwchange.ApprovedChange

func GroupChanges

func GroupChanges(changes []*xwchange.Change) map[string][]*xwchange.Change

func GroupTelemetryTwoChanges

func GroupTelemetryTwoChanges(changes []*xwchange.TelemetryTwoChange) map[string][]xwchange.TelemetryTwoChange

func PostTelemetryProfileEntitiesHandler

func PostTelemetryProfileEntitiesHandler(w http.ResponseWriter, r *http.Request)

func PostTelemetryProfileFilteredHandler

func PostTelemetryProfileFilteredHandler(w http.ResponseWriter, r *http.Request)

func PostTelemetryTwoProfileEntitiesHandler

func PostTelemetryTwoProfileEntitiesHandler(w http.ResponseWriter, r *http.Request)

func PostTelemetryTwoProfileFilteredHandler

func PostTelemetryTwoProfileFilteredHandler(w http.ResponseWriter, r *http.Request)

func PostTelemetryTwoProfilesByIdListHandler

func PostTelemetryTwoProfilesByIdListHandler(w http.ResponseWriter, r *http.Request)

func PutTelemetryProfileEntitiesHandler

func PutTelemetryProfileEntitiesHandler(w http.ResponseWriter, r *http.Request)

func PutTelemetryTwoProfileEntitiesHandler

func PutTelemetryTwoProfileEntitiesHandler(w http.ResponseWriter, r *http.Request)

func RemovePermanentTelemetryProfileElement

func RemovePermanentTelemetryProfileElement(entryToRemove *logupload.TelemetryElement, telemetryEntries []logupload.TelemetryElement) ([]logupload.TelemetryElement, error)

func RemoveTelemetryElementsFromMergeResult

func RemoveTelemetryElementsFromMergeResult(idsToRemove *[]string, mergeResult *logupload.PermanentTelemetryProfile)

func RemoveTelemetryProfileEntryChangeHandler

func RemoveTelemetryProfileEntryChangeHandler(w http.ResponseWriter, r *http.Request)

func RemoveTelemetryProfileEntryHandler

func RemoveTelemetryProfileEntryHandler(w http.ResponseWriter, r *http.Request)

func Revert

func Revert(r *http.Request, approvedId string) error

func RevertChangeHandler

func RevertChangeHandler(w http.ResponseWriter, r *http.Request)

func RevertChanges

func RevertChanges(r *http.Request, changeIds *[]string) (map[string]string, error)

func RevertChangesHandler

func RevertChangesHandler(w http.ResponseWriter, r *http.Request)

func RevertTelemetryTwoChange

func RevertTelemetryTwoChange(r *http.Request, approvedId string) *xwhttp.ResponseEntity

func RevertTelemetryTwoChanges

func RevertTelemetryTwoChanges(r *http.Request, approvedIds []string) map[string]string

func RevertTwoChangeHandler

func RevertTwoChangeHandler(w http.ResponseWriter, r *http.Request)

func RevertTwoChangesHandler

func RevertTwoChangesHandler(w http.ResponseWriter, r *http.Request)

func SaveToApprovedAndCleanUpChange

func SaveToApprovedAndCleanUpChange(r *http.Request, change *xwchange.Change) (*xwchange.ApprovedChange, error)

func TelemetryTwoTestPageFilterByContext

func TelemetryTwoTestPageFilterByContext(searchContext map[string]string) []*xwlogupload.TelemetryTwoRule

func TelemetryTwoTestPageHandler

func TelemetryTwoTestPageHandler(w http.ResponseWriter, r *http.Request)

func UpdatePermanentTelemetryProfile

func UpdatePermanentTelemetryProfile(updatedProfile *logupload.PermanentTelemetryProfile) (*logupload.PermanentTelemetryProfile, error)

func UpdateTelemetryProfileChangeHandler

func UpdateTelemetryProfileChangeHandler(w http.ResponseWriter, r *http.Request)

func UpdateTelemetryProfileHandler

func UpdateTelemetryProfileHandler(w http.ResponseWriter, r *http.Request)

func UpdateTelemetryTwoProfileChangeHandler

func UpdateTelemetryTwoProfileChangeHandler(w http.ResponseWriter, r *http.Request)

func UpdateTelemetryTwoProfileHandler

func UpdateTelemetryTwoProfileHandler(w http.ResponseWriter, r *http.Request)

func ValidateTelemetryProfilePendingChanges

func ValidateTelemetryProfilePendingChanges(entity *logupload.PermanentTelemetryProfile) error

func ValidateTelemetryTwoProfilePendingChanges

func ValidateTelemetryTwoProfilePendingChanges(entity *xwlogupload.TelemetryTwoProfile) error

func WriteCreateChangeTelemetryTwoProfile

func WriteCreateChangeTelemetryTwoProfile(r *http.Request, profile *xwlogupload.TelemetryTwoProfile) (*xwchange.TelemetryTwoChange, error)

func WriteDeleteChange

func WriteDeleteChange(r *http.Request, profileId string) (*core_change.Change, error)

func WriteDeleteChangeTelemetryTwoProfile

func WriteDeleteChangeTelemetryTwoProfile(r *http.Request, id string) (*xwchange.TelemetryTwoChange, error)

func WriteUpdateChangeOrSave

func WriteUpdateChangeOrSave(r *http.Request, newProfile *logupload.PermanentTelemetryProfile) (*core_change.Change, error)

func WriteUpdateChangeOrSaveTelemetryTwoProfile

func WriteUpdateChangeOrSaveTelemetryTwoProfile(r *http.Request, newProfile *xwlogupload.TelemetryTwoProfile) (*xwchange.TelemetryTwoChange, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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