network

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 13 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 DeviceSnapshotRef

type DeviceSnapshotRef struct {
	// 'device_snapshot_id' is the unique identifier of the device snapshot
	DeviceSnapshotID github_com_onosproject_onos_api_go_onos_config_snapshot_device.ID `` /* 186-byte string literal not displayed */
}

DeviceSnapshotRef is a reference to a device snapshot

func (*DeviceSnapshotRef) Descriptor

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

func (*DeviceSnapshotRef) Marshal

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

func (*DeviceSnapshotRef) MarshalTo

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

func (*DeviceSnapshotRef) MarshalToSizedBuffer

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

func (*DeviceSnapshotRef) ProtoMessage

func (*DeviceSnapshotRef) ProtoMessage()

func (*DeviceSnapshotRef) Reset

func (m *DeviceSnapshotRef) Reset()

func (*DeviceSnapshotRef) Size

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

func (*DeviceSnapshotRef) String

func (m *DeviceSnapshotRef) String() string

func (*DeviceSnapshotRef) Unmarshal

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

func (*DeviceSnapshotRef) XXX_DiscardUnknown

func (m *DeviceSnapshotRef) XXX_DiscardUnknown()

func (*DeviceSnapshotRef) XXX_Marshal

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

func (*DeviceSnapshotRef) XXX_Merge

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

func (*DeviceSnapshotRef) XXX_Size

func (m *DeviceSnapshotRef) XXX_Size() int

func (*DeviceSnapshotRef) XXX_Unmarshal

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

type ID

type ID types.ID

ID is a network snapshot identifier type

func (ID) GetIndex

func (i ID) GetIndex() Index

GetIndex returns the Index

type Index

type Index uint64

Index is the index of a network snapshot

func (Index) GetSnapshotID

func (i Index) GetSnapshotID() ID

GetSnapshotID returns the network snapshot ID for the index

type NetworkSnapshot

type NetworkSnapshot struct {
	// 'id' is the unique snapshot identifier
	ID ID `protobuf:"bytes,1,opt,name=id,proto3,casttype=ID" json:"id,omitempty"`
	// 'index' is a monotonically increasing, globally unique snapshot index
	Index Index `protobuf:"varint,2,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
	// 'revision' is the request revision number
	Revision Revision `protobuf:"varint,3,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"`
	// 'status' is the snapshot status
	Status snapshot.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status"`
	// 'retention' specifies the duration for which to retain changes
	Retention snapshot.RetentionOptions `protobuf:"bytes,6,opt,name=retention,proto3" json:"retention"`
	// 'created' is the time at which the configuration was created
	Created time.Time `protobuf:"bytes,8,opt,name=created,proto3,stdtime" json:"created"`
	// 'updated' is the time at which the configuration was last updated
	Updated time.Time `protobuf:"bytes,9,opt,name=updated,proto3,stdtime" json:"updated"`
	// 'refs' is a set of references to stored device snapshots
	Refs []*DeviceSnapshotRef `protobuf:"bytes,10,rep,name=refs,proto3" json:"refs,omitempty"`
}

NetworkSnapshot is a snapshot of all network changes

func (*NetworkSnapshot) Descriptor

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

func (*NetworkSnapshot) GetCreated

func (m *NetworkSnapshot) GetCreated() time.Time

func (*NetworkSnapshot) GetID

func (m *NetworkSnapshot) GetID() ID

func (*NetworkSnapshot) GetIndex

func (m *NetworkSnapshot) GetIndex() Index

func (*NetworkSnapshot) GetRefs

func (m *NetworkSnapshot) GetRefs() []*DeviceSnapshotRef

func (*NetworkSnapshot) GetRetention

func (m *NetworkSnapshot) GetRetention() snapshot.RetentionOptions

func (*NetworkSnapshot) GetRevision

func (m *NetworkSnapshot) GetRevision() Revision

func (*NetworkSnapshot) GetStatus

func (m *NetworkSnapshot) GetStatus() snapshot.Status

func (*NetworkSnapshot) GetUpdated

func (m *NetworkSnapshot) GetUpdated() time.Time

func (*NetworkSnapshot) Marshal

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

func (*NetworkSnapshot) MarshalTo

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

func (*NetworkSnapshot) MarshalToSizedBuffer

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

func (*NetworkSnapshot) ProtoMessage

func (*NetworkSnapshot) ProtoMessage()

func (*NetworkSnapshot) Reset

func (m *NetworkSnapshot) Reset()

func (*NetworkSnapshot) Size

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

func (*NetworkSnapshot) String

func (m *NetworkSnapshot) String() string

func (*NetworkSnapshot) Unmarshal

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

func (*NetworkSnapshot) XXX_DiscardUnknown

func (m *NetworkSnapshot) XXX_DiscardUnknown()

func (*NetworkSnapshot) XXX_Marshal

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

func (*NetworkSnapshot) XXX_Merge

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

func (*NetworkSnapshot) XXX_Size

func (m *NetworkSnapshot) XXX_Size() int

func (*NetworkSnapshot) XXX_Unmarshal

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

type Revision

type Revision types.Revision

Revision is a network snapshot revision number

Jump to

Keyboard shortcuts

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