change

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0, BSD-3-Clause Imports: 6 Imported by: 2

Documentation

Overview

*

  • Copyright 2022 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 (
	Create ChangeOperation = "CREATE"
	Update                 = "UPDATE"
	Delete                 = "DELETE"
)

Variables

This section is empty.

Functions

func NewApprovedChangeInf

func NewApprovedChangeInf() interface{}

NewApprovedChangeInf constructor

func NewApprovedTelemetryTwoChangeInf

func NewApprovedTelemetryTwoChangeInf() interface{}

NewApprovedTelemetryTwoChangeInf constructor

func NewChangeInf

func NewChangeInf() interface{}

NewChangeInf constructor

func NewTelemetryTwoChangeInf

func NewTelemetryTwoChangeInf() interface{}

NewTelemetryTwoChangeInf constructor

Types

type ApprovedChange

type ApprovedChange Change

ApprovedChange XconfApprovedChange table

func (ApprovedChange) GetApplicationType

func (c ApprovedChange) GetApplicationType() string

func (ApprovedChange) GetApprovedUser

func (c ApprovedChange) GetApprovedUser() string

func (ApprovedChange) GetAuthor

func (c ApprovedChange) GetAuthor() string

func (ApprovedChange) GetEntityID

func (c ApprovedChange) GetEntityID() string

func (ApprovedChange) GetEntityType

func (c ApprovedChange) GetEntityType() EntityType

func (ApprovedChange) GetID

func (c ApprovedChange) GetID() string

func (ApprovedChange) GetNewEntity

func (ApprovedChange) GetOldEntity

func (ApprovedChange) GetOperation

func (c ApprovedChange) GetOperation() ChangeOperation

type ApprovedTelemetryTwoChange

type ApprovedTelemetryTwoChange TelemetryTwoChange

TelemetryTwoChange XconfApprovedTelemetryTwoChange table

func (*ApprovedTelemetryTwoChange) Validate

func (obj *ApprovedTelemetryTwoChange) Validate() error

type Change

type Change struct {
	ID              string                               `json:"id"`
	Updated         int64                                `json:"updated"`
	EntityID        string                               `json:"entityId"`
	EntityType      EntityType                           `json:"entityType"`
	ApplicationType string                               `json:"applicationType"`
	NewEntity       *logupload.PermanentTelemetryProfile `json:"newEntity,omitempty"`
	OldEntity       *logupload.PermanentTelemetryProfile `json:"oldEntity,omitempty"`
	Operation       ChangeOperation                      `json:"operation"`
	Author          string                               `json:"author"`
	ApprovedUser    string                               `json:"approvedUser"`
}

Change XconfChange table

func NewEmptyChange

func NewEmptyChange() *Change

func (*Change) EqualChangeData

func (c *Change) EqualChangeData(c2 *Change) bool

func (Change) GetApplicationType

func (c Change) GetApplicationType() string

func (Change) GetApprovedUser

func (c Change) GetApprovedUser() string

func (Change) GetAuthor

func (c Change) GetAuthor() string

func (Change) GetEntityID

func (c Change) GetEntityID() string

func (Change) GetEntityType

func (c Change) GetEntityType() EntityType

func (Change) GetID

func (c Change) GetID() string

func (Change) GetNewEntity

func (c Change) GetNewEntity() *logupload.PermanentTelemetryProfile

func (Change) GetOldEntity

func (c Change) GetOldEntity() *logupload.PermanentTelemetryProfile

func (Change) GetOperation

func (c Change) GetOperation() ChangeOperation

type ChangeOperation

type ChangeOperation string

ChangeOperation enum

type EntityInterface

type EntityInterface interface {
	// contains filtered or unexported methods
}

type EntityType

type EntityType string

EntityType enum

const (
	TelemetryProfile EntityType = "TELEMETRY_PROFILE"
)

type PendingChange

type PendingChange interface {
	GetID() string
	GetEntityID() string
	GetEntityType() EntityType
	GetApplicationType() string
	GetNewEntity() *logupload.PermanentTelemetryProfile
	GetOldEntity() *logupload.PermanentTelemetryProfile
	GetOperation() ChangeOperation
	GetAuthor() string
	GetApprovedUser() string
}

type TelemetryTwoChange

type TelemetryTwoChange struct {
	ID              string                         `json:"id"`
	Updated         int64                          `json:"updated"`
	EntityID        string                         `json:"entityId"`
	EntityType      string                         `json:"entityType"`
	ApplicationType string                         `json:"applicationType"`
	NewEntity       *logupload.TelemetryTwoProfile `json:"newEntity,omitempty"`
	OldEntity       *logupload.TelemetryTwoProfile `json:"oldEntity,omitempty"`
	Operation       ChangeOperation                `json:"operation"`
	Author          string                         `json:"author"`
	ApprovedUser    string                         `json:"approvedUser,omitempty"`
}

TelemetryTwoChange XconfTelemetryTwoChange table

func (*TelemetryTwoChange) Validate

func (obj *TelemetryTwoChange) Validate() error

Jump to

Keyboard shortcuts

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