network

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package network is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

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_api_go_onos_config_change_device.ID `` /* 178-byte string literal not displayed */
}

DeviceChangeRef is a reference to a device change

func (*DeviceChangeRef) Descriptor

func (*DeviceChangeRef) Descriptor() ([]byte, []int)

func (*DeviceChangeRef) Marshal

func (m *DeviceChangeRef) Marshal() (dAtA []byte, err error)

func (*DeviceChangeRef) MarshalTo

func (m *DeviceChangeRef) MarshalTo(dAtA []byte) (int, 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 ID

type ID types.ID

ID is a network configuration identifier type

type Index

type Index uint64

Index is the index of a network configuration

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"`
	// 'dependency' is a reference to the network change on which this change is dependent
	Dependency *NetworkChangeRef `protobuf:"bytes,10,opt,name=dependency,proto3" json:"dependency,omitempty"`
	// 'dependents' is a list of references to network changes that depend on this change
	Dependents []NetworkChangeRef `protobuf:"bytes,11,rep,name=dependents,proto3" json:"dependents"`
	// 'username' is the name of the user that made the network change
	Username string `protobuf:"bytes,12,opt,name=username,proto3" json:"username,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) GetDependency added in v0.7.107

func (m *NetworkChange) GetDependency() *NetworkChangeRef

func (*NetworkChange) GetDependents added in v0.7.107

func (m *NetworkChange) GetDependents() []NetworkChangeRef

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) GetUsername added in v0.7.108

func (m *NetworkChange) GetUsername() string

func (*NetworkChange) Marshal

func (m *NetworkChange) Marshal() (dAtA []byte, err error)

func (*NetworkChange) MarshalTo

func (m *NetworkChange) MarshalTo(dAtA []byte) (int, 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) WithUsername added in v0.7.108

func (n *NetworkChange) WithUsername(username string) *NetworkChange

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

type NetworkChangeRef added in v0.7.107

type NetworkChangeRef struct {
	// Types that are valid to be assigned to Id:
	//	*NetworkChangeRef_None
	//	*NetworkChangeRef_NetworkChangeID
	Id isNetworkChangeRef_Id `protobuf_oneof:"id"`
}

NetworkChangeRef is a reference to a network change

func (*NetworkChangeRef) Descriptor added in v0.7.107

func (*NetworkChangeRef) Descriptor() ([]byte, []int)

func (*NetworkChangeRef) GetId added in v0.7.107

func (m *NetworkChangeRef) GetId() isNetworkChangeRef_Id

func (*NetworkChangeRef) GetNetworkChangeID added in v0.7.107

func (m *NetworkChangeRef) GetNetworkChangeID() ID

func (*NetworkChangeRef) GetNone added in v0.7.107

func (m *NetworkChangeRef) GetNone() *types.Empty

func (*NetworkChangeRef) Marshal added in v0.7.107

func (m *NetworkChangeRef) Marshal() (dAtA []byte, err error)

func (*NetworkChangeRef) MarshalTo added in v0.7.107

func (m *NetworkChangeRef) MarshalTo(dAtA []byte) (int, error)

func (*NetworkChangeRef) MarshalToSizedBuffer added in v0.7.107

func (m *NetworkChangeRef) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetworkChangeRef) ProtoMessage added in v0.7.107

func (*NetworkChangeRef) ProtoMessage()

func (*NetworkChangeRef) Reset added in v0.7.107

func (m *NetworkChangeRef) Reset()

func (*NetworkChangeRef) Size added in v0.7.107

func (m *NetworkChangeRef) Size() (n int)

func (*NetworkChangeRef) String added in v0.7.107

func (m *NetworkChangeRef) String() string

func (*NetworkChangeRef) Unmarshal added in v0.7.107

func (m *NetworkChangeRef) Unmarshal(dAtA []byte) error

func (*NetworkChangeRef) XXX_DiscardUnknown added in v0.7.107

func (m *NetworkChangeRef) XXX_DiscardUnknown()

func (*NetworkChangeRef) XXX_Marshal added in v0.7.107

func (m *NetworkChangeRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkChangeRef) XXX_Merge added in v0.7.107

func (m *NetworkChangeRef) XXX_Merge(src proto.Message)

func (*NetworkChangeRef) XXX_OneofWrappers added in v0.7.107

func (*NetworkChangeRef) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*NetworkChangeRef) XXX_Size added in v0.7.107

func (m *NetworkChangeRef) XXX_Size() int

func (*NetworkChangeRef) XXX_Unmarshal added in v0.7.107

func (m *NetworkChangeRef) XXX_Unmarshal(b []byte) error

type NetworkChangeRef_NetworkChangeID added in v0.7.107

type NetworkChangeRef_NetworkChangeID struct {
	NetworkChangeID ID `` /* 126-byte string literal not displayed */
}

func (*NetworkChangeRef_NetworkChangeID) MarshalTo added in v0.7.107

func (m *NetworkChangeRef_NetworkChangeID) MarshalTo(dAtA []byte) (int, error)

func (*NetworkChangeRef_NetworkChangeID) MarshalToSizedBuffer added in v0.7.107

func (m *NetworkChangeRef_NetworkChangeID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetworkChangeRef_NetworkChangeID) Size added in v0.7.107

func (m *NetworkChangeRef_NetworkChangeID) Size() (n int)

type NetworkChangeRef_None added in v0.7.107

type NetworkChangeRef_None struct {
	None *types.Empty `protobuf:"bytes,1,opt,name=none,proto3,oneof" json:"none,omitempty"`
}

func (*NetworkChangeRef_None) MarshalTo added in v0.7.107

func (m *NetworkChangeRef_None) MarshalTo(dAtA []byte) (int, error)

func (*NetworkChangeRef_None) MarshalToSizedBuffer added in v0.7.107

func (m *NetworkChangeRef_None) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetworkChangeRef_None) Size added in v0.7.107

func (m *NetworkChangeRef_None) Size() (n int)

type Revision

type Revision types.Revision

Revision is a network configuration revision number

Jump to

Keyboard shortcuts

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