Documentation
¶
Index ¶
- Variables
- type DeviceChangeRef
- func (*DeviceChangeRef) Descriptor() ([]byte, []int)
- func (m *DeviceChangeRef) GetDeviceChangeID() github_com_onosproject_onos_config_api_types_change_device.ID
- func (m *DeviceChangeRef) Marshal() (dAtA []byte, err error)
- func (m *DeviceChangeRef) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceChangeRef) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceChangeRef) ProtoMessage()
- func (m *DeviceChangeRef) Reset()
- func (m *DeviceChangeRef) Size() (n int)
- func (m *DeviceChangeRef) String() string
- func (m *DeviceChangeRef) Unmarshal(dAtA []byte) error
- func (m *DeviceChangeRef) XXX_DiscardUnknown()
- func (m *DeviceChangeRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceChangeRef) XXX_Merge(src proto.Message)
- func (m *DeviceChangeRef) XXX_Size() int
- func (m *DeviceChangeRef) XXX_Unmarshal(b []byte) error
- type ID
- type Index
- type NetworkChange
- func (*NetworkChange) Descriptor() ([]byte, []int)
- func (m *NetworkChange) GetChanges() []*device.Change
- func (m *NetworkChange) GetCreated() time.Time
- func (m *NetworkChange) GetDeleted() bool
- func (m *NetworkChange) GetID() ID
- func (m *NetworkChange) GetIndex() Index
- func (m *NetworkChange) GetRefs() []*DeviceChangeRef
- func (m *NetworkChange) GetRevision() Revision
- func (m *NetworkChange) GetStatus() change.Status
- func (m *NetworkChange) GetUpdated() time.Time
- func (m *NetworkChange) Marshal() (dAtA []byte, err error)
- func (m *NetworkChange) MarshalTo(dAtA []byte) (int, error)
- func (m *NetworkChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NetworkChange) ProtoMessage()
- func (m *NetworkChange) Reset()
- func (m *NetworkChange) Size() (n int)
- func (m *NetworkChange) String() string
- func (m *NetworkChange) Unmarshal(dAtA []byte) error
- func (m *NetworkChange) XXX_DiscardUnknown()
- func (m *NetworkChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NetworkChange) XXX_Merge(src proto.Message)
- func (m *NetworkChange) XXX_Size() int
- func (m *NetworkChange) XXX_Unmarshal(b []byte) error
- type Revision
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DeviceChangeRef ¶
type DeviceChangeRef struct {
// 'device_change_id' is the unique identifier of the device change
DeviceChangeID github_com_onosproject_onos_config_api_types_change_device.ID `` /* 176-byte string literal not displayed */
}
DeviceChangeRef is a reference to a device change
func (*DeviceChangeRef) Descriptor ¶
func (*DeviceChangeRef) Descriptor() ([]byte, []int)
func (*DeviceChangeRef) GetDeviceChangeID ¶
func (m *DeviceChangeRef) GetDeviceChangeID() github_com_onosproject_onos_config_api_types_change_device.ID
func (*DeviceChangeRef) Marshal ¶
func (m *DeviceChangeRef) Marshal() (dAtA []byte, err error)
func (*DeviceChangeRef) MarshalToSizedBuffer ¶
func (m *DeviceChangeRef) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceChangeRef) ProtoMessage ¶
func (*DeviceChangeRef) ProtoMessage()
func (*DeviceChangeRef) Reset ¶
func (m *DeviceChangeRef) Reset()
func (*DeviceChangeRef) Size ¶
func (m *DeviceChangeRef) Size() (n int)
func (*DeviceChangeRef) String ¶
func (m *DeviceChangeRef) String() string
func (*DeviceChangeRef) Unmarshal ¶
func (m *DeviceChangeRef) Unmarshal(dAtA []byte) error
func (*DeviceChangeRef) XXX_DiscardUnknown ¶
func (m *DeviceChangeRef) XXX_DiscardUnknown()
func (*DeviceChangeRef) XXX_Marshal ¶
func (m *DeviceChangeRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceChangeRef) XXX_Merge ¶
func (m *DeviceChangeRef) XXX_Merge(src proto.Message)
func (*DeviceChangeRef) XXX_Size ¶
func (m *DeviceChangeRef) XXX_Size() int
func (*DeviceChangeRef) XXX_Unmarshal ¶
func (m *DeviceChangeRef) XXX_Unmarshal(b []byte) error
type NetworkChange ¶
type NetworkChange struct {
// 'id' is the unique identifier of the change
// This field should be set prior to persisting the object.
ID ID `protobuf:"bytes,1,opt,name=id,proto3,casttype=ID" json:"id,omitempty"`
// 'index' is a monotonically increasing, globally unique index of the change
// The index is provided by the store, is static and unique for each unique change identifier,
// and should not be modified by client code.
Index Index `protobuf:"varint,2,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
// 'revision' is the change revision number
// The revision number is provided by the store and should not be modified by client code.
// Each unique state of the change will be assigned a unique revision number which can be
// used for optimistic concurrency control when updating or deleting the change state.
Revision Revision `protobuf:"varint,3,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"`
// 'status' is the current lifecycle status of the change
Status change.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status"`
// 'created' is the time at which the change was created
Created time.Time `protobuf:"bytes,5,opt,name=created,proto3,stdtime" json:"created"`
// 'updated' is the time at which the change was last updated
Updated time.Time `protobuf:"bytes,6,opt,name=updated,proto3,stdtime" json:"updated"`
// 'changes' is a set of changes to apply to devices
// The list of changes should contain only a single change per device/version pair.
Changes []*device.Change `protobuf:"bytes,7,rep,name=changes,proto3" json:"changes,omitempty"`
// 'refs' is a set of references to stored device changes
Refs []*DeviceChangeRef `protobuf:"bytes,8,rep,name=refs,proto3" json:"refs,omitempty"`
// 'deleted' is a flag indicating whether this change is being deleted by a snapshot
Deleted bool `protobuf:"varint,9,opt,name=deleted,proto3" json:"deleted,omitempty"`
}
NetworkChange specifies the configuration for a network change A network change is a configuration change that spans multiple devices. The change contains a list of per-device changes to be applied to the network.
func NewNetworkChange ¶
func NewNetworkChange(networkChangeID string, changes []*devicechange.Change) (*NetworkChange, error)
NewNetworkChange creates a new network configuration
func (*NetworkChange) Descriptor ¶
func (*NetworkChange) Descriptor() ([]byte, []int)
func (*NetworkChange) GetChanges ¶
func (m *NetworkChange) GetChanges() []*device.Change
func (*NetworkChange) GetCreated ¶
func (m *NetworkChange) GetCreated() time.Time
func (*NetworkChange) GetDeleted ¶
func (m *NetworkChange) GetDeleted() bool
func (*NetworkChange) GetID ¶
func (m *NetworkChange) GetID() ID
func (*NetworkChange) GetIndex ¶
func (m *NetworkChange) GetIndex() Index
func (*NetworkChange) GetRefs ¶
func (m *NetworkChange) GetRefs() []*DeviceChangeRef
func (*NetworkChange) GetRevision ¶
func (m *NetworkChange) GetRevision() Revision
func (*NetworkChange) GetStatus ¶
func (m *NetworkChange) GetStatus() change.Status
func (*NetworkChange) GetUpdated ¶
func (m *NetworkChange) GetUpdated() time.Time
func (*NetworkChange) Marshal ¶
func (m *NetworkChange) Marshal() (dAtA []byte, err error)
func (*NetworkChange) MarshalToSizedBuffer ¶
func (m *NetworkChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NetworkChange) ProtoMessage ¶
func (*NetworkChange) ProtoMessage()
func (*NetworkChange) Reset ¶
func (m *NetworkChange) Reset()
func (*NetworkChange) Size ¶
func (m *NetworkChange) Size() (n int)
func (*NetworkChange) String ¶
func (m *NetworkChange) String() string
func (*NetworkChange) Unmarshal ¶
func (m *NetworkChange) Unmarshal(dAtA []byte) error
func (*NetworkChange) XXX_DiscardUnknown ¶
func (m *NetworkChange) XXX_DiscardUnknown()
func (*NetworkChange) XXX_Marshal ¶
func (m *NetworkChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkChange) XXX_Merge ¶
func (m *NetworkChange) XXX_Merge(src proto.Message)
func (*NetworkChange) XXX_Size ¶
func (m *NetworkChange) XXX_Size() int
func (*NetworkChange) XXX_Unmarshal ¶
func (m *NetworkChange) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.