v2

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 16 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConfiguration        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfiguration          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConfiguration = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthFailure        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFailure          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFailure = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthObject        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowObject          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupObject = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTransaction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTransaction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTransaction = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValue        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValue          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValue = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ConfigurationEvent_EventType_name = map[int32]string{
	0: "UNKNOWN",
	1: "CREATED",
	2: "UPDATED",
	3: "DELETED",
	4: "REPLAYED",
}
View Source
var ConfigurationEvent_EventType_value = map[string]int32{
	"UNKNOWN":  0,
	"CREATED":  1,
	"UPDATED":  2,
	"DELETED":  3,
	"REPLAYED": 4,
}
View Source
var ConfigurationStatus_State_name = map[int32]string{
	0: "UNKNOWN",
	1: "SYNCHRONIZING",
	2: "SYNCHRONIZED",
	3: "PERSISTED",
}
View Source
var ConfigurationStatus_State_value = map[string]int32{
	"UNKNOWN":       0,
	"SYNCHRONIZING": 1,
	"SYNCHRONIZED":  2,
	"PERSISTED":     3,
}
View Source
var Failure_Type_name = map[int32]string{
	0:  "UNKNOWN",
	1:  "CANCELED",
	2:  "NOT_FOUND",
	3:  "ALREADY_EXISTS",
	4:  "UNAUTHORIZED",
	5:  "FORBIDDEN",
	6:  "CONFLICT",
	7:  "INVALID",
	8:  "UNAVAILABLE",
	9:  "NOT_SUPPORTED",
	10: "TIMEOUT",
	11: "INTERNAL",
}
View Source
var Failure_Type_value = map[string]int32{
	"UNKNOWN":        0,
	"CANCELED":       1,
	"NOT_FOUND":      2,
	"ALREADY_EXISTS": 3,
	"UNAUTHORIZED":   4,
	"FORBIDDEN":      5,
	"CONFLICT":       6,
	"INVALID":        7,
	"UNAVAILABLE":    8,
	"NOT_SUPPORTED":  9,
	"TIMEOUT":        10,
	"INTERNAL":       11,
}
View Source
var ProposalAbortPhase_State_name = map[int32]string{
	0: "ABORTING",
	1: "ABORTED",
}
View Source
var ProposalAbortPhase_State_value = map[string]int32{
	"ABORTING": 0,
	"ABORTED":  1,
}
View Source
var ProposalApplyPhase_State_name = map[int32]string{
	0: "APPLYING",
	1: "APPLIED",
	2: "FAILED",
}
View Source
var ProposalApplyPhase_State_value = map[string]int32{
	"APPLYING": 0,
	"APPLIED":  1,
	"FAILED":   2,
}
View Source
var ProposalCommitPhase_State_name = map[int32]string{
	0: "COMMITTING",
	1: "COMMITTED",
}
View Source
var ProposalCommitPhase_State_value = map[string]int32{
	"COMMITTING": 0,
	"COMMITTED":  1,
}
View Source
var ProposalEvent_EventType_name = map[int32]string{
	0: "UNKNOWN",
	1: "CREATED",
	2: "UPDATED",
	3: "DELETED",
	4: "REPLAYED",
}
View Source
var ProposalEvent_EventType_value = map[string]int32{
	"UNKNOWN":  0,
	"CREATED":  1,
	"UPDATED":  2,
	"DELETED":  3,
	"REPLAYED": 4,
}
View Source
var ProposalInitializePhase_State_name = map[int32]string{
	0: "INITIALIZING",
	1: "INITIALIZED",
}
View Source
var ProposalInitializePhase_State_value = map[string]int32{
	"INITIALIZING": 0,
	"INITIALIZED":  1,
}
View Source
var ProposalValidatePhase_State_name = map[int32]string{
	0: "VALIDATING",
	1: "VALIDATED",
	2: "FAILED",
}
View Source
var ProposalValidatePhase_State_value = map[string]int32{
	"VALIDATING": 0,
	"VALIDATED":  1,
	"FAILED":     2,
}
View Source
var TransactionAbortPhase_State_name = map[int32]string{
	0: "ABORTING",
	1: "ABORTED",
}
View Source
var TransactionAbortPhase_State_value = map[string]int32{
	"ABORTING": 0,
	"ABORTED":  1,
}
View Source
var TransactionApplyPhase_State_name = map[int32]string{
	0: "APPLYING",
	1: "APPLIED",
	2: "FAILED",
}
View Source
var TransactionApplyPhase_State_value = map[string]int32{
	"APPLYING": 0,
	"APPLIED":  1,
	"FAILED":   2,
}
View Source
var TransactionCommitPhase_State_name = map[int32]string{
	0: "COMMITTING",
	1: "COMMITTED",
}
View Source
var TransactionCommitPhase_State_value = map[string]int32{
	"COMMITTING": 0,
	"COMMITTED":  1,
}
View Source
var TransactionEvent_EventType_name = map[int32]string{
	0: "UNKNOWN",
	1: "CREATED",
	2: "UPDATED",
	3: "DELETED",
	4: "REPLAYED",
}
View Source
var TransactionEvent_EventType_value = map[string]int32{
	"UNKNOWN":  0,
	"CREATED":  1,
	"UPDATED":  2,
	"DELETED":  3,
	"REPLAYED": 4,
}
View Source
var TransactionInitializePhase_State_name = map[int32]string{
	0: "INITIALIZING",
	1: "INITIALIZED",
	2: "FAILED",
}
View Source
var TransactionInitializePhase_State_value = map[string]int32{
	"INITIALIZING": 0,
	"INITIALIZED":  1,
	"FAILED":       2,
}
View Source
var TransactionStatus_State_name = map[int32]string{
	0: "PENDING",
	1: "VALIDATED",
	2: "COMMITTED",
	3: "APPLIED",
	4: "FAILED",
}
View Source
var TransactionStatus_State_value = map[string]int32{
	"PENDING":   0,
	"VALIDATED": 1,
	"COMMITTED": 2,
	"APPLIED":   3,
	"FAILED":    4,
}
View Source
var TransactionStrategy_Isolation_name = map[int32]string{
	0: "DEFAULT",
	1: "SERIALIZABLE",
}
View Source
var TransactionStrategy_Isolation_value = map[string]int32{
	"DEFAULT":      0,
	"SERIALIZABLE": 1,
}
View Source
var TransactionStrategy_Synchronicity_name = map[int32]string{
	0: "ASYNCHRONOUS",
	1: "SYNCHRONOUS",
}
View Source
var TransactionStrategy_Synchronicity_value = map[string]int32{
	"ASYNCHRONOUS": 0,
	"SYNCHRONOUS":  1,
}
View Source
var TransactionValidatePhase_State_name = map[int32]string{
	0: "VALIDATING",
	1: "VALIDATED",
	2: "FAILED",
}
View Source
var TransactionValidatePhase_State_value = map[string]int32{
	"VALIDATING": 0,
	"VALIDATED":  1,
	"FAILED":     2,
}
View Source
var ValueType_name = map[int32]string{
	0:  "EMPTY",
	1:  "STRING",
	2:  "INT",
	3:  "UINT",
	4:  "BOOL",
	5:  "DECIMAL",
	6:  "FLOAT",
	7:  "BYTES",
	8:  "LEAFLIST_STRING",
	9:  "LEAFLIST_INT",
	10: "LEAFLIST_UINT",
	11: "LEAFLIST_BOOL",
	12: "LEAFLIST_DECIMAL",
	13: "LEAFLIST_FLOAT",
	14: "LEAFLIST_BYTES",
}
View Source
var ValueType_value = map[string]int32{
	"EMPTY":            0,
	"STRING":           1,
	"INT":              2,
	"UINT":             3,
	"BOOL":             4,
	"DECIMAL":          5,
	"FLOAT":            6,
	"BYTES":            7,
	"LEAFLIST_STRING":  8,
	"LEAFLIST_INT":     9,
	"LEAFLIST_UINT":    10,
	"LEAFLIST_BOOL":    11,
	"LEAFLIST_DECIMAL": 12,
	"LEAFLIST_FLOAT":   13,
	"LEAFLIST_BYTES":   14,
}

Functions

func NewUUID

func NewUUID() uuid.UUID

NewUUID generates a new uuid

Types

type AppliedConfigurationStatus added in v0.8.52

type AppliedConfigurationStatus struct {
	Index  Index                 `protobuf:"varint,1,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
	Term   MastershipTerm        `protobuf:"varint,2,opt,name=term,proto3,casttype=MastershipTerm" json:"term,omitempty"`
	Values map[string]*PathValue `` /* 153-byte string literal not displayed */
}

func (*AppliedConfigurationStatus) Descriptor added in v0.8.52

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

func (*AppliedConfigurationStatus) GetIndex added in v0.8.52

func (m *AppliedConfigurationStatus) GetIndex() Index

func (*AppliedConfigurationStatus) GetTerm added in v0.8.52

func (*AppliedConfigurationStatus) GetValues added in v0.8.52

func (m *AppliedConfigurationStatus) GetValues() map[string]*PathValue

func (*AppliedConfigurationStatus) Marshal added in v0.8.52

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

func (*AppliedConfigurationStatus) MarshalTo added in v0.8.52

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

func (*AppliedConfigurationStatus) MarshalToSizedBuffer added in v0.8.52

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

func (*AppliedConfigurationStatus) ProtoMessage added in v0.8.52

func (*AppliedConfigurationStatus) ProtoMessage()

func (*AppliedConfigurationStatus) Reset added in v0.8.52

func (m *AppliedConfigurationStatus) Reset()

func (*AppliedConfigurationStatus) Size added in v0.8.52

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

func (*AppliedConfigurationStatus) String added in v0.8.52

func (m *AppliedConfigurationStatus) String() string

func (*AppliedConfigurationStatus) Unmarshal added in v0.8.52

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

func (*AppliedConfigurationStatus) XXX_DiscardUnknown added in v0.8.52

func (m *AppliedConfigurationStatus) XXX_DiscardUnknown()

func (*AppliedConfigurationStatus) XXX_Marshal added in v0.8.52

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

func (*AppliedConfigurationStatus) XXX_Merge added in v0.8.52

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

func (*AppliedConfigurationStatus) XXX_Size added in v0.8.52

func (m *AppliedConfigurationStatus) XXX_Size() int

func (*AppliedConfigurationStatus) XXX_Unmarshal added in v0.8.52

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

type ChangeProposal added in v0.8.52

type ChangeProposal struct {
	// 'changes' is the proposed change values
	Values map[string]*PathValue `` /* 153-byte string literal not displayed */
}

func (*ChangeProposal) Descriptor added in v0.8.52

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

func (*ChangeProposal) GetValues added in v0.8.52

func (m *ChangeProposal) GetValues() map[string]*PathValue

func (*ChangeProposal) Marshal added in v0.8.52

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

func (*ChangeProposal) MarshalTo added in v0.8.52

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

func (*ChangeProposal) MarshalToSizedBuffer added in v0.8.52

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

func (*ChangeProposal) ProtoMessage added in v0.8.52

func (*ChangeProposal) ProtoMessage()

func (*ChangeProposal) Reset added in v0.8.52

func (m *ChangeProposal) Reset()

func (*ChangeProposal) Size added in v0.8.52

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

func (*ChangeProposal) String added in v0.8.52

func (m *ChangeProposal) String() string

func (*ChangeProposal) Unmarshal added in v0.8.52

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

func (*ChangeProposal) XXX_DiscardUnknown added in v0.8.52

func (m *ChangeProposal) XXX_DiscardUnknown()

func (*ChangeProposal) XXX_Marshal added in v0.8.52

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

func (*ChangeProposal) XXX_Merge added in v0.8.52

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

func (*ChangeProposal) XXX_Size added in v0.8.52

func (m *ChangeProposal) XXX_Size() int

func (*ChangeProposal) XXX_Unmarshal added in v0.8.52

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

type ChangeTransaction added in v0.8.52

type ChangeTransaction struct {
	// 'values' is a set of changes to apply to targets
	Values map[TargetID]*PathValues `` /* 170-byte string literal not displayed */
}

func (*ChangeTransaction) Descriptor added in v0.8.52

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

func (*ChangeTransaction) GetValues added in v0.8.52

func (m *ChangeTransaction) GetValues() map[TargetID]*PathValues

func (*ChangeTransaction) Marshal added in v0.8.52

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

func (*ChangeTransaction) MarshalTo added in v0.8.52

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

func (*ChangeTransaction) MarshalToSizedBuffer added in v0.8.52

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

func (*ChangeTransaction) ProtoMessage added in v0.8.52

func (*ChangeTransaction) ProtoMessage()

func (*ChangeTransaction) Reset added in v0.8.52

func (m *ChangeTransaction) Reset()

func (*ChangeTransaction) Size added in v0.8.52

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

func (*ChangeTransaction) String added in v0.8.52

func (m *ChangeTransaction) String() string

func (*ChangeTransaction) Unmarshal added in v0.8.52

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

func (*ChangeTransaction) XXX_DiscardUnknown added in v0.8.52

func (m *ChangeTransaction) XXX_DiscardUnknown()

func (*ChangeTransaction) XXX_Marshal added in v0.8.52

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

func (*ChangeTransaction) XXX_Merge added in v0.8.52

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

func (*ChangeTransaction) XXX_Size added in v0.8.52

func (m *ChangeTransaction) XXX_Size() int

func (*ChangeTransaction) XXX_Unmarshal added in v0.8.52

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

type CommittedConfigurationStatus added in v0.8.52

type CommittedConfigurationStatus struct {
	Index Index `protobuf:"varint,1,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
}

func (*CommittedConfigurationStatus) Descriptor added in v0.8.52

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

func (*CommittedConfigurationStatus) GetIndex added in v0.8.52

func (m *CommittedConfigurationStatus) GetIndex() Index

func (*CommittedConfigurationStatus) Marshal added in v0.8.52

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

func (*CommittedConfigurationStatus) MarshalTo added in v0.8.52

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

func (*CommittedConfigurationStatus) MarshalToSizedBuffer added in v0.8.52

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

func (*CommittedConfigurationStatus) ProtoMessage added in v0.8.52

func (*CommittedConfigurationStatus) ProtoMessage()

func (*CommittedConfigurationStatus) Reset added in v0.8.52

func (m *CommittedConfigurationStatus) Reset()

func (*CommittedConfigurationStatus) Size added in v0.8.52

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

func (*CommittedConfigurationStatus) String added in v0.8.52

func (*CommittedConfigurationStatus) Unmarshal added in v0.8.52

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

func (*CommittedConfigurationStatus) XXX_DiscardUnknown added in v0.8.52

func (m *CommittedConfigurationStatus) XXX_DiscardUnknown()

func (*CommittedConfigurationStatus) XXX_Marshal added in v0.8.52

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

func (*CommittedConfigurationStatus) XXX_Merge added in v0.8.52

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

func (*CommittedConfigurationStatus) XXX_Size added in v0.8.52

func (m *CommittedConfigurationStatus) XXX_Size() int

func (*CommittedConfigurationStatus) XXX_Unmarshal added in v0.8.52

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

type Configuration

type Configuration struct {
	ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3,embedded=meta" json:"meta"`
	// 'id' is a unique configuration identifier
	ID ConfigurationID `protobuf:"bytes,2,opt,name=id,proto3,casttype=ConfigurationID" json:"id,omitempty"`
	// 'target_id' is the target to which the desired target configuration applies
	TargetID TargetID `protobuf:"bytes,3,opt,name=target_id,json=targetId,proto3,casttype=TargetID" json:"target_id,omitempty"`
	// 'values' is a map of path/values to set
	Values map[string]*PathValue `` /* 153-byte string literal not displayed */
	// 'index' is the index of the configuration values
	Index Index `protobuf:"varint,5,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
	// 'ConfigurationStatus' is the current lifecycle status of the configuration
	Status ConfigurationStatus `protobuf:"bytes,6,opt,name=status,proto3" json:"status"`
}

Configuration represents complete desired target configuration

func (*Configuration) Descriptor

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

func (*Configuration) GetID

func (m *Configuration) GetID() ConfigurationID

func (*Configuration) GetIndex added in v0.8.17

func (m *Configuration) GetIndex() Index

func (*Configuration) GetStatus

func (m *Configuration) GetStatus() ConfigurationStatus

func (*Configuration) GetTargetID

func (m *Configuration) GetTargetID() TargetID

func (*Configuration) GetValues

func (m *Configuration) GetValues() map[string]*PathValue

func (*Configuration) Marshal

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

func (*Configuration) MarshalTo

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

func (*Configuration) MarshalToSizedBuffer

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

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) Reset

func (m *Configuration) Reset()

func (*Configuration) Size

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

func (*Configuration) String

func (m *Configuration) String() string

func (*Configuration) Unmarshal

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

func (*Configuration) XXX_DiscardUnknown

func (m *Configuration) XXX_DiscardUnknown()

func (*Configuration) XXX_Marshal

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

func (*Configuration) XXX_Merge

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

func (*Configuration) XXX_Size

func (m *Configuration) XXX_Size() int

func (*Configuration) XXX_Unmarshal

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

type ConfigurationEvent

type ConfigurationEvent struct {
	// EventType configuration event type
	Type          ConfigurationEvent_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.ConfigurationEvent_EventType" json:"type,omitempty"`
	Configuration Configuration                `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration"`
}

ConfigurationEvent configuration store event

func (*ConfigurationEvent) Descriptor

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

func (*ConfigurationEvent) GetConfiguration

func (m *ConfigurationEvent) GetConfiguration() Configuration

func (*ConfigurationEvent) GetType

func (*ConfigurationEvent) Marshal

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

func (*ConfigurationEvent) MarshalTo

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

func (*ConfigurationEvent) MarshalToSizedBuffer

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

func (*ConfigurationEvent) ProtoMessage

func (*ConfigurationEvent) ProtoMessage()

func (*ConfigurationEvent) Reset

func (m *ConfigurationEvent) Reset()

func (*ConfigurationEvent) Size

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

func (*ConfigurationEvent) String

func (m *ConfigurationEvent) String() string

func (*ConfigurationEvent) Unmarshal

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

func (*ConfigurationEvent) XXX_DiscardUnknown

func (m *ConfigurationEvent) XXX_DiscardUnknown()

func (*ConfigurationEvent) XXX_Marshal

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

func (*ConfigurationEvent) XXX_Merge

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

func (*ConfigurationEvent) XXX_Size

func (m *ConfigurationEvent) XXX_Size() int

func (*ConfigurationEvent) XXX_Unmarshal

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

type ConfigurationEvent_EventType added in v0.8.52

type ConfigurationEvent_EventType int32

EventType configuration event types for configuration store

const (
	// UNKNOWN indicates unknown configuration store event
	ConfigurationEvent_UNKNOWN ConfigurationEvent_EventType = 0
	// CREATED indicates the configuration entry in the store is created
	ConfigurationEvent_CREATED ConfigurationEvent_EventType = 1
	// UPDATED indicates the configuration entry in the store is updated
	ConfigurationEvent_UPDATED ConfigurationEvent_EventType = 2
	// DELETED indicates the configuration entry in the store is deleted
	ConfigurationEvent_DELETED ConfigurationEvent_EventType = 3
	// REPLAYED
	ConfigurationEvent_REPLAYED ConfigurationEvent_EventType = 4
)

func (ConfigurationEvent_EventType) EnumDescriptor added in v0.8.52

func (ConfigurationEvent_EventType) EnumDescriptor() ([]byte, []int)

func (ConfigurationEvent_EventType) String added in v0.8.52

type ConfigurationID

type ConfigurationID string

ConfigurationID is a configuration identifier type

type ConfigurationStatus

type ConfigurationStatus struct {
	// 'state' is the configuration state
	State ConfigurationStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=onos.config.v2.ConfigurationStatus_State" json:"state,omitempty"`
	// 'term' is the current mastership term for the configuration
	Term MastershipTerm `protobuf:"varint,2,opt,name=term,proto3,casttype=MastershipTerm" json:"term,omitempty"`
	// 'proposed' is the proposed configuration status
	Proposed ProposedConfigurationStatus `protobuf:"bytes,3,opt,name=proposed,proto3" json:"proposed"`
	// 'committed' is the committed configuration status
	Committed CommittedConfigurationStatus `protobuf:"bytes,4,opt,name=committed,proto3" json:"committed"`
	// 'applied' is the applied configuration status
	Applied AppliedConfigurationStatus `protobuf:"bytes,5,opt,name=applied,proto3" json:"applied"`
}

ConfigurationStatus is the status of a Configuration

func (*ConfigurationStatus) Descriptor

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

func (*ConfigurationStatus) GetApplied added in v0.8.52

func (*ConfigurationStatus) GetCommitted added in v0.8.52

func (*ConfigurationStatus) GetProposed added in v0.8.52

func (*ConfigurationStatus) GetState

func (*ConfigurationStatus) GetTerm added in v0.8.52

func (m *ConfigurationStatus) GetTerm() MastershipTerm

func (*ConfigurationStatus) Marshal

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

func (*ConfigurationStatus) MarshalTo

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

func (*ConfigurationStatus) MarshalToSizedBuffer

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

func (*ConfigurationStatus) ProtoMessage

func (*ConfigurationStatus) ProtoMessage()

func (*ConfigurationStatus) Reset

func (m *ConfigurationStatus) Reset()

func (*ConfigurationStatus) Size

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

func (*ConfigurationStatus) String

func (m *ConfigurationStatus) String() string

func (*ConfigurationStatus) Unmarshal

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

func (*ConfigurationStatus) XXX_DiscardUnknown

func (m *ConfigurationStatus) XXX_DiscardUnknown()

func (*ConfigurationStatus) XXX_Marshal

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

func (*ConfigurationStatus) XXX_Merge

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

func (*ConfigurationStatus) XXX_Size

func (m *ConfigurationStatus) XXX_Size() int

func (*ConfigurationStatus) XXX_Unmarshal

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

type ConfigurationStatus_State added in v0.8.52

type ConfigurationStatus_State int32

State is the configuration state

const (
	ConfigurationStatus_UNKNOWN       ConfigurationStatus_State = 0
	ConfigurationStatus_SYNCHRONIZING ConfigurationStatus_State = 1
	ConfigurationStatus_SYNCHRONIZED  ConfigurationStatus_State = 2
	ConfigurationStatus_PERSISTED     ConfigurationStatus_State = 3
)

func (ConfigurationStatus_State) EnumDescriptor added in v0.8.52

func (ConfigurationStatus_State) EnumDescriptor() ([]byte, []int)

func (ConfigurationStatus_State) String added in v0.8.52

func (x ConfigurationStatus_State) String() string

type ExtensionID added in v0.8.44

type ExtensionID = gnmi_ext.ExtensionID
const (
	TransactionInfoExtensionID     ExtensionID = 110
	TransactionStrategyExtensionID ExtensionID = 111
)

type Failure added in v0.8.39

type Failure struct {
	Type        Failure_Type `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.Failure_Type" json:"type,omitempty"`
	Description string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
}

Failure transaction failure type and description

func (*Failure) Descriptor added in v0.8.39

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

func (*Failure) GetDescription added in v0.8.39

func (m *Failure) GetDescription() string

func (*Failure) GetType added in v0.8.39

func (m *Failure) GetType() Failure_Type

func (*Failure) Marshal added in v0.8.39

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

func (*Failure) MarshalTo added in v0.8.39

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

func (*Failure) MarshalToSizedBuffer added in v0.8.39

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

func (*Failure) ProtoMessage added in v0.8.39

func (*Failure) ProtoMessage()

func (*Failure) Reset added in v0.8.39

func (m *Failure) Reset()

func (*Failure) Size added in v0.8.39

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

func (*Failure) String added in v0.8.39

func (m *Failure) String() string

func (*Failure) Unmarshal added in v0.8.39

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

func (*Failure) XXX_DiscardUnknown added in v0.8.39

func (m *Failure) XXX_DiscardUnknown()

func (*Failure) XXX_Marshal added in v0.8.39

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

func (*Failure) XXX_Merge added in v0.8.39

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

func (*Failure) XXX_Size added in v0.8.39

func (m *Failure) XXX_Size() int

func (*Failure) XXX_Unmarshal added in v0.8.39

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

type Failure_Type added in v0.8.39

type Failure_Type int32
const (
	// UNKNOWN unknown failure
	Failure_UNKNOWN Failure_Type = 0
	// CANCELED
	Failure_CANCELED Failure_Type = 1
	// NOT_FOUND
	Failure_NOT_FOUND Failure_Type = 2
	// ALREADY_EXISTS
	Failure_ALREADY_EXISTS Failure_Type = 3
	// UNAUTHORIZED
	Failure_UNAUTHORIZED Failure_Type = 4
	// FORBIDDEN
	Failure_FORBIDDEN Failure_Type = 5
	// CONFLICT
	Failure_CONFLICT Failure_Type = 6
	// INVALID
	Failure_INVALID Failure_Type = 7
	// UNAVAILABLE
	Failure_UNAVAILABLE Failure_Type = 8
	// NOT_SUPPORTED
	Failure_NOT_SUPPORTED Failure_Type = 9
	// TIMEOUT
	Failure_TIMEOUT Failure_Type = 10
	// INTERNAL
	Failure_INTERNAL Failure_Type = 11
)

func (Failure_Type) EnumDescriptor added in v0.8.39

func (Failure_Type) EnumDescriptor() ([]byte, []int)

func (Failure_Type) String added in v0.8.39

func (x Failure_Type) String() string

type ID

type ID string

ID is an identifier type

type Index

type Index uint64

Index is the index of an object

type MastershipTerm

type MastershipTerm uint64

MastershipTerm mastership term

type ObjectMeta added in v0.8.33

type ObjectMeta struct {
	Key      string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Version  uint64     `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Revision Revision   `protobuf:"varint,3,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"`
	Created  time.Time  `protobuf:"bytes,4,opt,name=created,proto3,stdtime" json:"created"`
	Updated  time.Time  `protobuf:"bytes,5,opt,name=updated,proto3,stdtime" json:"updated"`
	Deleted  *time.Time `protobuf:"bytes,6,opt,name=deleted,proto3,stdtime" json:"deleted,omitempty"`
}

func (*ObjectMeta) Descriptor added in v0.8.33

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

func (*ObjectMeta) GetCreated added in v0.8.33

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

func (*ObjectMeta) GetDeleted added in v0.8.33

func (m *ObjectMeta) GetDeleted() *time.Time

func (*ObjectMeta) GetKey added in v0.8.33

func (m *ObjectMeta) GetKey() string

func (*ObjectMeta) GetRevision added in v0.8.33

func (m *ObjectMeta) GetRevision() Revision

func (*ObjectMeta) GetUpdated added in v0.8.33

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

func (*ObjectMeta) GetVersion added in v0.8.33

func (m *ObjectMeta) GetVersion() uint64

func (*ObjectMeta) Marshal added in v0.8.33

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

func (*ObjectMeta) MarshalTo added in v0.8.33

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

func (*ObjectMeta) MarshalToSizedBuffer added in v0.8.33

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

func (*ObjectMeta) ProtoMessage added in v0.8.33

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) Reset added in v0.8.33

func (m *ObjectMeta) Reset()

func (*ObjectMeta) Size added in v0.8.33

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

func (*ObjectMeta) String added in v0.8.33

func (m *ObjectMeta) String() string

func (*ObjectMeta) Unmarshal added in v0.8.33

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

func (*ObjectMeta) XXX_DiscardUnknown added in v0.8.33

func (m *ObjectMeta) XXX_DiscardUnknown()

func (*ObjectMeta) XXX_Marshal added in v0.8.33

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

func (*ObjectMeta) XXX_Merge added in v0.8.33

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

func (*ObjectMeta) XXX_Size added in v0.8.33

func (m *ObjectMeta) XXX_Size() int

func (*ObjectMeta) XXX_Unmarshal added in v0.8.33

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

type PathValue

type PathValue struct {
	// 'path' is the path to change
	Path string `protobuf:"bytes,1,opt,name=path,json=Path,proto3" json:"Path,omitempty"`
	// 'value' is the change value
	Value TypedValue `protobuf:"bytes,2,opt,name=value,json=Value,proto3" json:"Value,omitempty"`
	// 'deleted' indicates whether this is a delete
	Deleted bool `protobuf:"varint,3,opt,name=deleted,proto3" json:"Deleted,omitempty"`
}

PathValue is the state of a path/value in the configuration tree

func (*PathValue) Descriptor

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

func (*PathValue) GetDeleted added in v0.8.17

func (m *PathValue) GetDeleted() bool

func (*PathValue) GetPath

func (m *PathValue) GetPath() string

func (*PathValue) GetValue

func (m *PathValue) GetValue() TypedValue

func (*PathValue) Marshal

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

func (*PathValue) MarshalTo

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

func (*PathValue) MarshalToSizedBuffer

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

func (*PathValue) ProtoMessage

func (*PathValue) ProtoMessage()

func (*PathValue) Reset

func (m *PathValue) Reset()

func (*PathValue) Size

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

func (*PathValue) String

func (m *PathValue) String() string

func (*PathValue) Unmarshal

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

func (*PathValue) XXX_DiscardUnknown

func (m *PathValue) XXX_DiscardUnknown()

func (*PathValue) XXX_Marshal

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

func (*PathValue) XXX_Merge

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

func (*PathValue) XXX_Size

func (m *PathValue) XXX_Size() int

func (*PathValue) XXX_Unmarshal

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

type PathValues added in v0.8.52

type PathValues struct {
	// 'values' is a set of change values to apply
	Values map[string]*PathValue `` /* 153-byte string literal not displayed */
}

PathValues is a set of path/value pairs

func (*PathValues) Descriptor added in v0.8.52

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

func (*PathValues) GetValues added in v0.8.52

func (m *PathValues) GetValues() map[string]*PathValue

func (*PathValues) Marshal added in v0.8.52

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

func (*PathValues) MarshalTo added in v0.8.52

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

func (*PathValues) MarshalToSizedBuffer added in v0.8.52

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

func (*PathValues) ProtoMessage added in v0.8.52

func (*PathValues) ProtoMessage()

func (*PathValues) Reset added in v0.8.52

func (m *PathValues) Reset()

func (*PathValues) Size added in v0.8.52

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

func (*PathValues) String added in v0.8.52

func (m *PathValues) String() string

func (*PathValues) Unmarshal added in v0.8.52

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

func (*PathValues) XXX_DiscardUnknown added in v0.8.52

func (m *PathValues) XXX_DiscardUnknown()

func (*PathValues) XXX_Marshal added in v0.8.52

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

func (*PathValues) XXX_Merge added in v0.8.52

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

func (*PathValues) XXX_Size added in v0.8.52

func (m *PathValues) XXX_Size() int

func (*PathValues) XXX_Unmarshal added in v0.8.52

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

type Proposal added in v0.8.52

type Proposal struct {
	ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3,embedded=meta" json:"meta"`
	// 'id' is the unique identifier of the proposal
	ID ProposalID `protobuf:"bytes,2,opt,name=id,proto3,casttype=ProposalID" json:"id,omitempty"`
	// 'target_id' is the proposal's target identifier
	TargetID TargetID `protobuf:"bytes,3,opt,name=target_id,json=targetId,proto3,casttype=TargetID" json:"target_id,omitempty"`
	// 'transaction_index' is the unique index of the transaction
	TransactionIndex Index `protobuf:"varint,4,opt,name=transaction_index,json=transactionIndex,proto3,casttype=Index" json:"transaction_index,omitempty"`
	// 'details' is the proposal details
	//
	// Types that are valid to be assigned to Details:
	//	*Proposal_Change
	//	*Proposal_Rollback
	Details isProposal_Details `protobuf_oneof:"details"`
	// 'status' is the current lifecycle status of the proposal
	Status ProposalStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status"`
}

func (*Proposal) Descriptor added in v0.8.52

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

func (*Proposal) GetChange added in v0.8.52

func (m *Proposal) GetChange() *ChangeProposal

func (*Proposal) GetDetails added in v0.8.52

func (m *Proposal) GetDetails() isProposal_Details

func (*Proposal) GetID added in v0.8.52

func (m *Proposal) GetID() ProposalID

func (*Proposal) GetRollback added in v0.8.52

func (m *Proposal) GetRollback() *RollbackProposal

func (*Proposal) GetStatus added in v0.8.52

func (m *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetTargetID added in v0.8.52

func (m *Proposal) GetTargetID() TargetID

func (*Proposal) GetTransactionIndex added in v0.8.52

func (m *Proposal) GetTransactionIndex() Index

func (*Proposal) Marshal added in v0.8.52

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

func (*Proposal) MarshalTo added in v0.8.52

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

func (*Proposal) MarshalToSizedBuffer added in v0.8.52

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

func (*Proposal) ProtoMessage added in v0.8.52

func (*Proposal) ProtoMessage()

func (*Proposal) Reset added in v0.8.52

func (m *Proposal) Reset()

func (*Proposal) Size added in v0.8.52

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

func (*Proposal) String added in v0.8.52

func (m *Proposal) String() string

func (*Proposal) Unmarshal added in v0.8.52

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

func (*Proposal) XXX_DiscardUnknown added in v0.8.52

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal added in v0.8.52

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

func (*Proposal) XXX_Merge added in v0.8.52

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

func (*Proposal) XXX_OneofWrappers added in v0.8.52

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*Proposal) XXX_Size added in v0.8.52

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal added in v0.8.52

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

type ProposalAbortPhase added in v0.8.53

type ProposalAbortPhase struct {
	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State               ProposalAbortPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalAbortPhase_State" json:"state,omitempty"`
}

func (*ProposalAbortPhase) Descriptor added in v0.8.53

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

func (*ProposalAbortPhase) GetState added in v0.8.53

func (*ProposalAbortPhase) Marshal added in v0.8.53

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

func (*ProposalAbortPhase) MarshalTo added in v0.8.53

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

func (*ProposalAbortPhase) MarshalToSizedBuffer added in v0.8.53

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

func (*ProposalAbortPhase) ProtoMessage added in v0.8.53

func (*ProposalAbortPhase) ProtoMessage()

func (*ProposalAbortPhase) Reset added in v0.8.53

func (m *ProposalAbortPhase) Reset()

func (*ProposalAbortPhase) Size added in v0.8.53

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

func (*ProposalAbortPhase) String added in v0.8.53

func (m *ProposalAbortPhase) String() string

func (*ProposalAbortPhase) Unmarshal added in v0.8.53

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

func (*ProposalAbortPhase) XXX_DiscardUnknown added in v0.8.53

func (m *ProposalAbortPhase) XXX_DiscardUnknown()

func (*ProposalAbortPhase) XXX_Marshal added in v0.8.53

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

func (*ProposalAbortPhase) XXX_Merge added in v0.8.53

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

func (*ProposalAbortPhase) XXX_Size added in v0.8.53

func (m *ProposalAbortPhase) XXX_Size() int

func (*ProposalAbortPhase) XXX_Unmarshal added in v0.8.53

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

type ProposalAbortPhase_State added in v0.8.53

type ProposalAbortPhase_State int32
const (
	ProposalAbortPhase_ABORTING ProposalAbortPhase_State = 0
	ProposalAbortPhase_ABORTED  ProposalAbortPhase_State = 1
)

func (ProposalAbortPhase_State) EnumDescriptor added in v0.8.53

func (ProposalAbortPhase_State) EnumDescriptor() ([]byte, []int)

func (ProposalAbortPhase_State) String added in v0.8.53

func (x ProposalAbortPhase_State) String() string

type ProposalApplyPhase added in v0.8.52

type ProposalApplyPhase struct {
	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State               ProposalApplyPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalApplyPhase_State" json:"state,omitempty"`
	Term                MastershipTerm           `protobuf:"varint,3,opt,name=term,proto3,casttype=MastershipTerm" json:"term,omitempty"`
	Failure             *Failure                 `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"`
}

func (*ProposalApplyPhase) Descriptor added in v0.8.52

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

func (*ProposalApplyPhase) GetFailure added in v0.8.52

func (m *ProposalApplyPhase) GetFailure() *Failure

func (*ProposalApplyPhase) GetState added in v0.8.52

func (*ProposalApplyPhase) GetTerm added in v0.8.52

func (m *ProposalApplyPhase) GetTerm() MastershipTerm

func (*ProposalApplyPhase) Marshal added in v0.8.52

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

func (*ProposalApplyPhase) MarshalTo added in v0.8.52

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

func (*ProposalApplyPhase) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalApplyPhase) ProtoMessage added in v0.8.52

func (*ProposalApplyPhase) ProtoMessage()

func (*ProposalApplyPhase) Reset added in v0.8.52

func (m *ProposalApplyPhase) Reset()

func (*ProposalApplyPhase) Size added in v0.8.52

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

func (*ProposalApplyPhase) String added in v0.8.52

func (m *ProposalApplyPhase) String() string

func (*ProposalApplyPhase) Unmarshal added in v0.8.52

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

func (*ProposalApplyPhase) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalApplyPhase) XXX_DiscardUnknown()

func (*ProposalApplyPhase) XXX_Marshal added in v0.8.52

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

func (*ProposalApplyPhase) XXX_Merge added in v0.8.52

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

func (*ProposalApplyPhase) XXX_Size added in v0.8.52

func (m *ProposalApplyPhase) XXX_Size() int

func (*ProposalApplyPhase) XXX_Unmarshal added in v0.8.52

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

type ProposalApplyPhase_State added in v0.8.52

type ProposalApplyPhase_State int32
const (
	ProposalApplyPhase_APPLYING ProposalApplyPhase_State = 0
	ProposalApplyPhase_APPLIED  ProposalApplyPhase_State = 1
	ProposalApplyPhase_FAILED   ProposalApplyPhase_State = 2
)

func (ProposalApplyPhase_State) EnumDescriptor added in v0.8.52

func (ProposalApplyPhase_State) EnumDescriptor() ([]byte, []int)

func (ProposalApplyPhase_State) String added in v0.8.52

func (x ProposalApplyPhase_State) String() string

type ProposalCommitPhase added in v0.8.52

type ProposalCommitPhase struct {
	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State               ProposalCommitPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalCommitPhase_State" json:"state,omitempty"`
}

func (*ProposalCommitPhase) Descriptor added in v0.8.52

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

func (*ProposalCommitPhase) GetState added in v0.8.52

func (*ProposalCommitPhase) Marshal added in v0.8.52

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

func (*ProposalCommitPhase) MarshalTo added in v0.8.52

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

func (*ProposalCommitPhase) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalCommitPhase) ProtoMessage added in v0.8.52

func (*ProposalCommitPhase) ProtoMessage()

func (*ProposalCommitPhase) Reset added in v0.8.52

func (m *ProposalCommitPhase) Reset()

func (*ProposalCommitPhase) Size added in v0.8.52

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

func (*ProposalCommitPhase) String added in v0.8.52

func (m *ProposalCommitPhase) String() string

func (*ProposalCommitPhase) Unmarshal added in v0.8.52

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

func (*ProposalCommitPhase) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalCommitPhase) XXX_DiscardUnknown()

func (*ProposalCommitPhase) XXX_Marshal added in v0.8.52

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

func (*ProposalCommitPhase) XXX_Merge added in v0.8.52

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

func (*ProposalCommitPhase) XXX_Size added in v0.8.52

func (m *ProposalCommitPhase) XXX_Size() int

func (*ProposalCommitPhase) XXX_Unmarshal added in v0.8.52

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

type ProposalCommitPhase_State added in v0.8.52

type ProposalCommitPhase_State int32
const (
	ProposalCommitPhase_COMMITTING ProposalCommitPhase_State = 0
	ProposalCommitPhase_COMMITTED  ProposalCommitPhase_State = 1
)

func (ProposalCommitPhase_State) EnumDescriptor added in v0.8.52

func (ProposalCommitPhase_State) EnumDescriptor() ([]byte, []int)

func (ProposalCommitPhase_State) String added in v0.8.52

func (x ProposalCommitPhase_State) String() string

type ProposalEvent added in v0.8.52

type ProposalEvent struct {
	Type     ProposalEvent_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.ProposalEvent_EventType" json:"type,omitempty"`
	Proposal Proposal                `protobuf:"bytes,2,opt,name=proposal,proto3" json:"proposal"`
}

ProposalEvent proposal store event

func (*ProposalEvent) Descriptor added in v0.8.52

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

func (*ProposalEvent) GetProposal added in v0.8.52

func (m *ProposalEvent) GetProposal() Proposal

func (*ProposalEvent) GetType added in v0.8.52

func (*ProposalEvent) Marshal added in v0.8.52

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

func (*ProposalEvent) MarshalTo added in v0.8.52

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

func (*ProposalEvent) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalEvent) ProtoMessage added in v0.8.52

func (*ProposalEvent) ProtoMessage()

func (*ProposalEvent) Reset added in v0.8.52

func (m *ProposalEvent) Reset()

func (*ProposalEvent) Size added in v0.8.52

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

func (*ProposalEvent) String added in v0.8.52

func (m *ProposalEvent) String() string

func (*ProposalEvent) Unmarshal added in v0.8.52

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

func (*ProposalEvent) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalEvent) XXX_DiscardUnknown()

func (*ProposalEvent) XXX_Marshal added in v0.8.52

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

func (*ProposalEvent) XXX_Merge added in v0.8.52

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

func (*ProposalEvent) XXX_Size added in v0.8.52

func (m *ProposalEvent) XXX_Size() int

func (*ProposalEvent) XXX_Unmarshal added in v0.8.52

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

type ProposalEvent_EventType added in v0.8.52

type ProposalEvent_EventType int32

EventType proposal event types for proposal store

const (
	ProposalEvent_UNKNOWN  ProposalEvent_EventType = 0
	ProposalEvent_CREATED  ProposalEvent_EventType = 1
	ProposalEvent_UPDATED  ProposalEvent_EventType = 2
	ProposalEvent_DELETED  ProposalEvent_EventType = 3
	ProposalEvent_REPLAYED ProposalEvent_EventType = 4
)

func (ProposalEvent_EventType) EnumDescriptor added in v0.8.52

func (ProposalEvent_EventType) EnumDescriptor() ([]byte, []int)

func (ProposalEvent_EventType) String added in v0.8.52

func (x ProposalEvent_EventType) String() string

type ProposalID added in v0.8.52

type ProposalID string

ProposalID is a proposal identifier type

type ProposalInitializePhase added in v0.8.52

type ProposalInitializePhase struct {
	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State               ProposalInitializePhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalInitializePhase_State" json:"state,omitempty"`
}

func (*ProposalInitializePhase) Descriptor added in v0.8.52

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

func (*ProposalInitializePhase) GetState added in v0.8.52

func (*ProposalInitializePhase) Marshal added in v0.8.52

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

func (*ProposalInitializePhase) MarshalTo added in v0.8.52

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

func (*ProposalInitializePhase) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalInitializePhase) ProtoMessage added in v0.8.52

func (*ProposalInitializePhase) ProtoMessage()

func (*ProposalInitializePhase) Reset added in v0.8.52

func (m *ProposalInitializePhase) Reset()

func (*ProposalInitializePhase) Size added in v0.8.52

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

func (*ProposalInitializePhase) String added in v0.8.52

func (m *ProposalInitializePhase) String() string

func (*ProposalInitializePhase) Unmarshal added in v0.8.52

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

func (*ProposalInitializePhase) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalInitializePhase) XXX_DiscardUnknown()

func (*ProposalInitializePhase) XXX_Marshal added in v0.8.52

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

func (*ProposalInitializePhase) XXX_Merge added in v0.8.52

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

func (*ProposalInitializePhase) XXX_Size added in v0.8.52

func (m *ProposalInitializePhase) XXX_Size() int

func (*ProposalInitializePhase) XXX_Unmarshal added in v0.8.52

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

type ProposalInitializePhase_State added in v0.8.52

type ProposalInitializePhase_State int32
const (
	ProposalInitializePhase_INITIALIZING ProposalInitializePhase_State = 0
	ProposalInitializePhase_INITIALIZED  ProposalInitializePhase_State = 1
)

func (ProposalInitializePhase_State) EnumDescriptor added in v0.8.52

func (ProposalInitializePhase_State) EnumDescriptor() ([]byte, []int)

func (ProposalInitializePhase_State) String added in v0.8.52

type ProposalPhaseStatus added in v0.8.52

type ProposalPhaseStatus struct {
	Start *time.Time `protobuf:"bytes,1,opt,name=start,proto3,stdtime" json:"start,omitempty"`
	End   *time.Time `protobuf:"bytes,2,opt,name=end,proto3,stdtime" json:"end,omitempty"`
}

func (*ProposalPhaseStatus) Descriptor added in v0.8.52

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

func (*ProposalPhaseStatus) GetEnd added in v0.8.52

func (m *ProposalPhaseStatus) GetEnd() *time.Time

func (*ProposalPhaseStatus) GetStart added in v0.8.52

func (m *ProposalPhaseStatus) GetStart() *time.Time

func (*ProposalPhaseStatus) Marshal added in v0.8.52

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

func (*ProposalPhaseStatus) MarshalTo added in v0.8.52

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

func (*ProposalPhaseStatus) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalPhaseStatus) ProtoMessage added in v0.8.52

func (*ProposalPhaseStatus) ProtoMessage()

func (*ProposalPhaseStatus) Reset added in v0.8.52

func (m *ProposalPhaseStatus) Reset()

func (*ProposalPhaseStatus) Size added in v0.8.52

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

func (*ProposalPhaseStatus) String added in v0.8.52

func (m *ProposalPhaseStatus) String() string

func (*ProposalPhaseStatus) Unmarshal added in v0.8.52

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

func (*ProposalPhaseStatus) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalPhaseStatus) XXX_DiscardUnknown()

func (*ProposalPhaseStatus) XXX_Marshal added in v0.8.52

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

func (*ProposalPhaseStatus) XXX_Merge added in v0.8.52

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

func (*ProposalPhaseStatus) XXX_Size added in v0.8.52

func (m *ProposalPhaseStatus) XXX_Size() int

func (*ProposalPhaseStatus) XXX_Unmarshal added in v0.8.52

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

type ProposalPhases added in v0.8.52

type ProposalPhases struct {
	// 'initialize' is the proposal initialization phase status
	Initialize *ProposalInitializePhase `protobuf:"bytes,1,opt,name=initialize,proto3" json:"initialize,omitempty"`
	// 'validate' is the proposal validation phase status
	Validate *ProposalValidatePhase `protobuf:"bytes,2,opt,name=validate,proto3" json:"validate,omitempty"`
	// 'commit' is the proposal commit phase status
	Commit *ProposalCommitPhase `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
	// 'apply' is the proposal apply phase status
	Apply *ProposalApplyPhase `protobuf:"bytes,4,opt,name=apply,proto3" json:"apply,omitempty"`
	// 'abort' is the proposal abort phase status
	Abort *ProposalAbortPhase `protobuf:"bytes,5,opt,name=abort,proto3" json:"abort,omitempty"`
}

func (*ProposalPhases) Descriptor added in v0.8.52

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

func (*ProposalPhases) GetAbort added in v0.8.53

func (m *ProposalPhases) GetAbort() *ProposalAbortPhase

func (*ProposalPhases) GetApply added in v0.8.52

func (m *ProposalPhases) GetApply() *ProposalApplyPhase

func (*ProposalPhases) GetCommit added in v0.8.52

func (m *ProposalPhases) GetCommit() *ProposalCommitPhase

func (*ProposalPhases) GetInitialize added in v0.8.52

func (m *ProposalPhases) GetInitialize() *ProposalInitializePhase

func (*ProposalPhases) GetValidate added in v0.8.52

func (m *ProposalPhases) GetValidate() *ProposalValidatePhase

func (*ProposalPhases) Marshal added in v0.8.52

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

func (*ProposalPhases) MarshalTo added in v0.8.52

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

func (*ProposalPhases) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalPhases) ProtoMessage added in v0.8.52

func (*ProposalPhases) ProtoMessage()

func (*ProposalPhases) Reset added in v0.8.52

func (m *ProposalPhases) Reset()

func (*ProposalPhases) Size added in v0.8.52

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

func (*ProposalPhases) String added in v0.8.52

func (m *ProposalPhases) String() string

func (*ProposalPhases) Unmarshal added in v0.8.52

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

func (*ProposalPhases) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalPhases) XXX_DiscardUnknown()

func (*ProposalPhases) XXX_Marshal added in v0.8.52

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

func (*ProposalPhases) XXX_Merge added in v0.8.52

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

func (*ProposalPhases) XXX_Size added in v0.8.52

func (m *ProposalPhases) XXX_Size() int

func (*ProposalPhases) XXX_Unmarshal added in v0.8.52

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

type ProposalStatus added in v0.8.52

type ProposalStatus struct {
	// 'phases' is the proposal phases
	Phases ProposalPhases `protobuf:"bytes,1,opt,name=phases,proto3" json:"phases"`
	// 'prev_index' is the index of the previous proposal associated with this target
	PrevIndex Index `protobuf:"varint,2,opt,name=prev_index,json=prevIndex,proto3,casttype=Index" json:"prev_index,omitempty"`
	// 'next_index' is the index of the next proposal associated with this target
	NextIndex Index `protobuf:"varint,3,opt,name=next_index,json=nextIndex,proto3,casttype=Index" json:"next_index,omitempty"`
	// 'rollback_index' is a reference to the index to which to roll back
	RollbackIndex Index `protobuf:"varint,4,opt,name=rollback_index,json=rollbackIndex,proto3,casttype=Index" json:"rollback_index,omitempty"`
	// 'rollback_values' is the set of values to use to roll back the proposal
	RollbackValues map[string]*PathValue `` /* 191-byte string literal not displayed */
}

ProposalStatus is the status of a Proposal

func (*ProposalStatus) Descriptor added in v0.8.52

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

func (*ProposalStatus) GetNextIndex added in v0.8.52

func (m *ProposalStatus) GetNextIndex() Index

func (*ProposalStatus) GetPhases added in v0.8.52

func (m *ProposalStatus) GetPhases() ProposalPhases

func (*ProposalStatus) GetPrevIndex added in v0.8.52

func (m *ProposalStatus) GetPrevIndex() Index

func (*ProposalStatus) GetRollbackIndex added in v0.8.52

func (m *ProposalStatus) GetRollbackIndex() Index

func (*ProposalStatus) GetRollbackValues added in v0.8.52

func (m *ProposalStatus) GetRollbackValues() map[string]*PathValue

func (*ProposalStatus) Marshal added in v0.8.52

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

func (*ProposalStatus) MarshalTo added in v0.8.52

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

func (*ProposalStatus) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalStatus) ProtoMessage added in v0.8.52

func (*ProposalStatus) ProtoMessage()

func (*ProposalStatus) Reset added in v0.8.52

func (m *ProposalStatus) Reset()

func (*ProposalStatus) Size added in v0.8.52

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

func (*ProposalStatus) String added in v0.8.52

func (m *ProposalStatus) String() string

func (*ProposalStatus) Unmarshal added in v0.8.52

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

func (*ProposalStatus) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalStatus) XXX_DiscardUnknown()

func (*ProposalStatus) XXX_Marshal added in v0.8.52

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

func (*ProposalStatus) XXX_Merge added in v0.8.52

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

func (*ProposalStatus) XXX_Size added in v0.8.52

func (m *ProposalStatus) XXX_Size() int

func (*ProposalStatus) XXX_Unmarshal added in v0.8.52

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

type ProposalValidatePhase added in v0.8.52

type ProposalValidatePhase struct {
	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State               ProposalValidatePhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalValidatePhase_State" json:"state,omitempty"`
	Failure             *Failure                    `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
}

func (*ProposalValidatePhase) Descriptor added in v0.8.52

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

func (*ProposalValidatePhase) GetFailure added in v0.8.52

func (m *ProposalValidatePhase) GetFailure() *Failure

func (*ProposalValidatePhase) GetState added in v0.8.52

func (*ProposalValidatePhase) Marshal added in v0.8.52

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

func (*ProposalValidatePhase) MarshalTo added in v0.8.52

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

func (*ProposalValidatePhase) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposalValidatePhase) ProtoMessage added in v0.8.52

func (*ProposalValidatePhase) ProtoMessage()

func (*ProposalValidatePhase) Reset added in v0.8.52

func (m *ProposalValidatePhase) Reset()

func (*ProposalValidatePhase) Size added in v0.8.52

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

func (*ProposalValidatePhase) String added in v0.8.52

func (m *ProposalValidatePhase) String() string

func (*ProposalValidatePhase) Unmarshal added in v0.8.52

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

func (*ProposalValidatePhase) XXX_DiscardUnknown added in v0.8.52

func (m *ProposalValidatePhase) XXX_DiscardUnknown()

func (*ProposalValidatePhase) XXX_Marshal added in v0.8.52

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

func (*ProposalValidatePhase) XXX_Merge added in v0.8.52

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

func (*ProposalValidatePhase) XXX_Size added in v0.8.52

func (m *ProposalValidatePhase) XXX_Size() int

func (*ProposalValidatePhase) XXX_Unmarshal added in v0.8.52

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

type ProposalValidatePhase_State added in v0.8.52

type ProposalValidatePhase_State int32
const (
	ProposalValidatePhase_VALIDATING ProposalValidatePhase_State = 0
	ProposalValidatePhase_VALIDATED  ProposalValidatePhase_State = 1
	ProposalValidatePhase_FAILED     ProposalValidatePhase_State = 2
)

func (ProposalValidatePhase_State) EnumDescriptor added in v0.8.52

func (ProposalValidatePhase_State) EnumDescriptor() ([]byte, []int)

func (ProposalValidatePhase_State) String added in v0.8.52

type Proposal_Change added in v0.8.52

type Proposal_Change struct {
	Change *ChangeProposal `protobuf:"bytes,5,opt,name=change,proto3,oneof" json:"change,omitempty"`
}

func (*Proposal_Change) MarshalTo added in v0.8.52

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

func (*Proposal_Change) MarshalToSizedBuffer added in v0.8.52

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

func (*Proposal_Change) Size added in v0.8.52

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

type Proposal_Rollback added in v0.8.52

type Proposal_Rollback struct {
	Rollback *RollbackProposal `protobuf:"bytes,6,opt,name=rollback,proto3,oneof" json:"rollback,omitempty"`
}

func (*Proposal_Rollback) MarshalTo added in v0.8.52

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

func (*Proposal_Rollback) MarshalToSizedBuffer added in v0.8.52

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

func (*Proposal_Rollback) Size added in v0.8.52

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

type ProposedConfigurationStatus added in v0.8.52

type ProposedConfigurationStatus struct {
	Index Index `protobuf:"varint,1,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
}

func (*ProposedConfigurationStatus) Descriptor added in v0.8.52

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

func (*ProposedConfigurationStatus) GetIndex added in v0.8.52

func (m *ProposedConfigurationStatus) GetIndex() Index

func (*ProposedConfigurationStatus) Marshal added in v0.8.52

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

func (*ProposedConfigurationStatus) MarshalTo added in v0.8.52

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

func (*ProposedConfigurationStatus) MarshalToSizedBuffer added in v0.8.52

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

func (*ProposedConfigurationStatus) ProtoMessage added in v0.8.52

func (*ProposedConfigurationStatus) ProtoMessage()

func (*ProposedConfigurationStatus) Reset added in v0.8.52

func (m *ProposedConfigurationStatus) Reset()

func (*ProposedConfigurationStatus) Size added in v0.8.52

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

func (*ProposedConfigurationStatus) String added in v0.8.52

func (m *ProposedConfigurationStatus) String() string

func (*ProposedConfigurationStatus) Unmarshal added in v0.8.52

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

func (*ProposedConfigurationStatus) XXX_DiscardUnknown added in v0.8.52

func (m *ProposedConfigurationStatus) XXX_DiscardUnknown()

func (*ProposedConfigurationStatus) XXX_Marshal added in v0.8.52

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

func (*ProposedConfigurationStatus) XXX_Merge added in v0.8.52

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

func (*ProposedConfigurationStatus) XXX_Size added in v0.8.52

func (m *ProposedConfigurationStatus) XXX_Size() int

func (*ProposedConfigurationStatus) XXX_Unmarshal added in v0.8.52

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

type Revision

type Revision uint64

Revision is a revision number

type RollbackProposal added in v0.8.52

type RollbackProposal struct {
	// 'rollback_index' is the index of the transaction to roll back
	RollbackIndex Index `protobuf:"varint,1,opt,name=rollback_index,json=rollbackIndex,proto3,casttype=Index" json:"rollback_index,omitempty"`
}

func (*RollbackProposal) Descriptor added in v0.8.52

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

func (*RollbackProposal) GetRollbackIndex added in v0.8.52

func (m *RollbackProposal) GetRollbackIndex() Index

func (*RollbackProposal) Marshal added in v0.8.52

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

func (*RollbackProposal) MarshalTo added in v0.8.52

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

func (*RollbackProposal) MarshalToSizedBuffer added in v0.8.52

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

func (*RollbackProposal) ProtoMessage added in v0.8.52

func (*RollbackProposal) ProtoMessage()

func (*RollbackProposal) Reset added in v0.8.52

func (m *RollbackProposal) Reset()

func (*RollbackProposal) Size added in v0.8.52

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

func (*RollbackProposal) String added in v0.8.52

func (m *RollbackProposal) String() string

func (*RollbackProposal) Unmarshal added in v0.8.52

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

func (*RollbackProposal) XXX_DiscardUnknown added in v0.8.52

func (m *RollbackProposal) XXX_DiscardUnknown()

func (*RollbackProposal) XXX_Marshal added in v0.8.52

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

func (*RollbackProposal) XXX_Merge added in v0.8.52

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

func (*RollbackProposal) XXX_Size added in v0.8.52

func (m *RollbackProposal) XXX_Size() int

func (*RollbackProposal) XXX_Unmarshal added in v0.8.52

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

type RollbackTransaction added in v0.8.52

type RollbackTransaction struct {
	// 'rollback_index' is the index of the transaction to roll back
	RollbackIndex Index `protobuf:"varint,1,opt,name=rollback_index,json=rollbackIndex,proto3,casttype=Index" json:"rollback_index,omitempty"`
}

func (*RollbackTransaction) Descriptor added in v0.8.52

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

func (*RollbackTransaction) GetRollbackIndex added in v0.8.52

func (m *RollbackTransaction) GetRollbackIndex() Index

func (*RollbackTransaction) Marshal added in v0.8.52

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

func (*RollbackTransaction) MarshalTo added in v0.8.52

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

func (*RollbackTransaction) MarshalToSizedBuffer added in v0.8.52

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

func (*RollbackTransaction) ProtoMessage added in v0.8.52

func (*RollbackTransaction) ProtoMessage()

func (*RollbackTransaction) Reset added in v0.8.52

func (m *RollbackTransaction) Reset()

func (*RollbackTransaction) Size added in v0.8.52

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

func (*RollbackTransaction) String added in v0.8.52

func (m *RollbackTransaction) String() string

func (*RollbackTransaction) Unmarshal added in v0.8.52

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

func (*RollbackTransaction) XXX_DiscardUnknown added in v0.8.52

func (m *RollbackTransaction) XXX_DiscardUnknown()

func (*RollbackTransaction) XXX_Marshal added in v0.8.52

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

func (*RollbackTransaction) XXX_Merge added in v0.8.52

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

func (*RollbackTransaction) XXX_Size added in v0.8.52

func (m *RollbackTransaction) XXX_Size() int

func (*RollbackTransaction) XXX_Unmarshal added in v0.8.52

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

type TargetID

type TargetID string

TargetID is a target ID

type TargetRole

type TargetRole string

TargetRole is a target role

type TargetType

type TargetType string

TargetType is a target type

type TargetVersion

type TargetVersion string

TargetVersion is a target version

type TargetVersionedID

type TargetVersionedID types.ID

TargetVersionedID is a versioned target ID

func NewTargetVersionedID

func NewTargetVersionedID(id ID, version TargetVersion) TargetVersionedID

NewTargetVersionedID returns a new versioned target identifier

func (TargetVersionedID) GetID

func (i TargetVersionedID) GetID() ID

GetID returns the target ID

func (TargetVersionedID) GetVersion

func (i TargetVersionedID) GetVersion() TargetVersion

GetVersion returns the target version

type Transaction

type Transaction struct {
	ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3,embedded=meta" json:"meta"`
	// 'id' is the unique identifier of the transaction
	// This field should be set prior to persisting the object.
	ID TransactionID `protobuf:"bytes,2,opt,name=id,proto3,casttype=TransactionID" 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,3,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
	// 'username' is the name of the user that made the transaction
	Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	// 'strategy' is the transaction strategy
	TransactionStrategy `protobuf:"bytes,5,opt,name=strategy,proto3,embedded=strategy" json:"strategy"`
	// 'details' is the transaction details
	//
	// Types that are valid to be assigned to Details:
	//	*Transaction_Change
	//	*Transaction_Rollback
	Details isTransaction_Details `protobuf_oneof:"details"`
	// 'status' is the current lifecycle status of the transaction
	Status TransactionStatus `protobuf:"bytes,8,opt,name=status,proto3" json:"status"`
}

Transaction refers to a transaction change or transaction rollback

func (*Transaction) Descriptor

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

func (*Transaction) GetChange added in v0.8.24

func (m *Transaction) GetChange() *ChangeTransaction

func (*Transaction) GetDetails added in v0.8.52

func (m *Transaction) GetDetails() isTransaction_Details

func (*Transaction) GetID

func (m *Transaction) GetID() TransactionID

func (*Transaction) GetIndex

func (m *Transaction) GetIndex() Index

func (*Transaction) GetRollback added in v0.8.24

func (m *Transaction) GetRollback() *RollbackTransaction

func (*Transaction) GetStatus

func (m *Transaction) GetStatus() TransactionStatus

func (*Transaction) GetUsername

func (m *Transaction) GetUsername() string

func (*Transaction) Marshal

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

func (*Transaction) MarshalTo

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

func (*Transaction) MarshalToSizedBuffer

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

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) Size

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

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Unmarshal

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

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

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

func (*Transaction) XXX_Merge

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

func (*Transaction) XXX_OneofWrappers added in v0.8.24

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

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

type TransactionAbortPhase added in v0.8.53

type TransactionAbortPhase struct {
	TransactionPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State                  TransactionAbortPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.TransactionAbortPhase_State" json:"state,omitempty"`
}

func (*TransactionAbortPhase) Descriptor added in v0.8.53

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

func (*TransactionAbortPhase) GetState added in v0.8.53

func (*TransactionAbortPhase) Marshal added in v0.8.53

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

func (*TransactionAbortPhase) MarshalTo added in v0.8.53

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

func (*TransactionAbortPhase) MarshalToSizedBuffer added in v0.8.53

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

func (*TransactionAbortPhase) ProtoMessage added in v0.8.53

func (*TransactionAbortPhase) ProtoMessage()

func (*TransactionAbortPhase) Reset added in v0.8.53

func (m *TransactionAbortPhase) Reset()

func (*TransactionAbortPhase) Size added in v0.8.53

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

func (*TransactionAbortPhase) String added in v0.8.53

func (m *TransactionAbortPhase) String() string

func (*TransactionAbortPhase) Unmarshal added in v0.8.53

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

func (*TransactionAbortPhase) XXX_DiscardUnknown added in v0.8.53

func (m *TransactionAbortPhase) XXX_DiscardUnknown()

func (*TransactionAbortPhase) XXX_Marshal added in v0.8.53

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

func (*TransactionAbortPhase) XXX_Merge added in v0.8.53

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

func (*TransactionAbortPhase) XXX_Size added in v0.8.53

func (m *TransactionAbortPhase) XXX_Size() int

func (*TransactionAbortPhase) XXX_Unmarshal added in v0.8.53

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

type TransactionAbortPhase_State added in v0.8.53

type TransactionAbortPhase_State int32
const (
	TransactionAbortPhase_ABORTING TransactionAbortPhase_State = 0
	TransactionAbortPhase_ABORTED  TransactionAbortPhase_State = 1
)

func (TransactionAbortPhase_State) EnumDescriptor added in v0.8.53

func (TransactionAbortPhase_State) EnumDescriptor() ([]byte, []int)

func (TransactionAbortPhase_State) String added in v0.8.53

type TransactionApplyPhase added in v0.8.52

type TransactionApplyPhase struct {
	TransactionPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State                  TransactionApplyPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.TransactionApplyPhase_State" json:"state,omitempty"`
	Failure                *Failure                    `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
}

func (*TransactionApplyPhase) Descriptor added in v0.8.52

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

func (*TransactionApplyPhase) GetFailure added in v0.8.52

func (m *TransactionApplyPhase) GetFailure() *Failure

func (*TransactionApplyPhase) GetState added in v0.8.52

func (*TransactionApplyPhase) Marshal added in v0.8.52

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

func (*TransactionApplyPhase) MarshalTo added in v0.8.52

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

func (*TransactionApplyPhase) MarshalToSizedBuffer added in v0.8.52

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

func (*TransactionApplyPhase) ProtoMessage added in v0.8.52

func (*TransactionApplyPhase) ProtoMessage()

func (*TransactionApplyPhase) Reset added in v0.8.52

func (m *TransactionApplyPhase) Reset()

func (*TransactionApplyPhase) Size added in v0.8.52

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

func (*TransactionApplyPhase) String added in v0.8.52

func (m *TransactionApplyPhase) String() string

func (*TransactionApplyPhase) Unmarshal added in v0.8.52

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

func (*TransactionApplyPhase) XXX_DiscardUnknown added in v0.8.52

func (m *TransactionApplyPhase) XXX_DiscardUnknown()

func (*TransactionApplyPhase) XXX_Marshal added in v0.8.52

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

func (*TransactionApplyPhase) XXX_Merge added in v0.8.52

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

func (*TransactionApplyPhase) XXX_Size added in v0.8.52

func (m *TransactionApplyPhase) XXX_Size() int

func (*TransactionApplyPhase) XXX_Unmarshal added in v0.8.52

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

type TransactionApplyPhase_State added in v0.8.52

type TransactionApplyPhase_State int32
const (
	TransactionApplyPhase_APPLYING TransactionApplyPhase_State = 0
	TransactionApplyPhase_APPLIED  TransactionApplyPhase_State = 1
	TransactionApplyPhase_FAILED   TransactionApplyPhase_State = 2
)

func (TransactionApplyPhase_State) EnumDescriptor added in v0.8.52

func (TransactionApplyPhase_State) EnumDescriptor() ([]byte, []int)

func (TransactionApplyPhase_State) String added in v0.8.52

type TransactionCommitPhase added in v0.8.52

type TransactionCommitPhase struct {
	TransactionPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State                  TransactionCommitPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.TransactionCommitPhase_State" json:"state,omitempty"`
}

func (*TransactionCommitPhase) Descriptor added in v0.8.52

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

func (*TransactionCommitPhase) GetState added in v0.8.52

func (*TransactionCommitPhase) Marshal added in v0.8.52

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

func (*TransactionCommitPhase) MarshalTo added in v0.8.52

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

func (*TransactionCommitPhase) MarshalToSizedBuffer added in v0.8.52

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

func (*TransactionCommitPhase) ProtoMessage added in v0.8.52

func (*TransactionCommitPhase) ProtoMessage()

func (*TransactionCommitPhase) Reset added in v0.8.52

func (m *TransactionCommitPhase) Reset()

func (*TransactionCommitPhase) Size added in v0.8.52

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

func (*TransactionCommitPhase) String added in v0.8.52

func (m *TransactionCommitPhase) String() string

func (*TransactionCommitPhase) Unmarshal added in v0.8.52

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

func (*TransactionCommitPhase) XXX_DiscardUnknown added in v0.8.52

func (m *TransactionCommitPhase) XXX_DiscardUnknown()

func (*TransactionCommitPhase) XXX_Marshal added in v0.8.52

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

func (*TransactionCommitPhase) XXX_Merge added in v0.8.52

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

func (*TransactionCommitPhase) XXX_Size added in v0.8.52

func (m *TransactionCommitPhase) XXX_Size() int

func (*TransactionCommitPhase) XXX_Unmarshal added in v0.8.52

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

type TransactionCommitPhase_State added in v0.8.52

type TransactionCommitPhase_State int32
const (
	TransactionCommitPhase_COMMITTING TransactionCommitPhase_State = 0
	TransactionCommitPhase_COMMITTED  TransactionCommitPhase_State = 1
)

func (TransactionCommitPhase_State) EnumDescriptor added in v0.8.52

func (TransactionCommitPhase_State) EnumDescriptor() ([]byte, []int)

func (TransactionCommitPhase_State) String added in v0.8.52

type TransactionEvent

type TransactionEvent struct {
	Type        TransactionEvent_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.TransactionEvent_EventType" json:"type,omitempty"`
	Transaction Transaction                `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction"`
}

TransactionEvent transaction store event

func (*TransactionEvent) Descriptor

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

func (*TransactionEvent) GetTransaction

func (m *TransactionEvent) GetTransaction() Transaction

func (*TransactionEvent) GetType

func (*TransactionEvent) Marshal

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

func (*TransactionEvent) MarshalTo

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

func (*TransactionEvent) MarshalToSizedBuffer

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

func (*TransactionEvent) ProtoMessage

func (*TransactionEvent) ProtoMessage()

func (*TransactionEvent) Reset

func (m *TransactionEvent) Reset()

func (*TransactionEvent) Size

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

func (*TransactionEvent) String

func (m *TransactionEvent) String() string

func (*TransactionEvent) Unmarshal

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

func (*TransactionEvent) XXX_DiscardUnknown

func (m *TransactionEvent) XXX_DiscardUnknown()

func (*TransactionEvent) XXX_Marshal

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

func (*TransactionEvent) XXX_Merge

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

func (*TransactionEvent) XXX_Size

func (m *TransactionEvent) XXX_Size() int

func (*TransactionEvent) XXX_Unmarshal

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

type TransactionEvent_EventType added in v0.8.52

type TransactionEvent_EventType int32

EventType transaction event types for transaction store

const (
	TransactionEvent_UNKNOWN  TransactionEvent_EventType = 0
	TransactionEvent_CREATED  TransactionEvent_EventType = 1
	TransactionEvent_UPDATED  TransactionEvent_EventType = 2
	TransactionEvent_DELETED  TransactionEvent_EventType = 3
	TransactionEvent_REPLAYED TransactionEvent_EventType = 4
)

func (TransactionEvent_EventType) EnumDescriptor added in v0.8.52

func (TransactionEvent_EventType) EnumDescriptor() ([]byte, []int)

func (TransactionEvent_EventType) String added in v0.8.52

type TransactionID

type TransactionID string

TransactionID is a transaction identifier type

type TransactionInfo added in v0.8.44

type TransactionInfo struct {
	ID    TransactionID `protobuf:"bytes,1,opt,name=id,proto3,casttype=TransactionID" json:"id,omitempty"`
	Index Index         `protobuf:"varint,2,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
}

TransactionInfo is an extension providing information about the transaction to clients in responses.

func (*TransactionInfo) Descriptor added in v0.8.44

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

func (*TransactionInfo) GetID added in v0.8.44

func (m *TransactionInfo) GetID() TransactionID

func (*TransactionInfo) GetIndex added in v0.8.44

func (m *TransactionInfo) GetIndex() Index

func (*TransactionInfo) Marshal added in v0.8.44

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

func (*TransactionInfo) MarshalTo added in v0.8.44

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

func (*TransactionInfo) MarshalToSizedBuffer added in v0.8.44

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

func (*TransactionInfo) ProtoMessage added in v0.8.44

func (*TransactionInfo) ProtoMessage()

func (*TransactionInfo) Reset added in v0.8.44

func (m *TransactionInfo) Reset()

func (*TransactionInfo) Size added in v0.8.44

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

func (*TransactionInfo) String added in v0.8.44

func (m *TransactionInfo) String() string

func (*TransactionInfo) Unmarshal added in v0.8.44

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

func (*TransactionInfo) XXX_DiscardUnknown added in v0.8.44

func (m *TransactionInfo) XXX_DiscardUnknown()

func (*TransactionInfo) XXX_Marshal added in v0.8.44

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

func (*TransactionInfo) XXX_Merge added in v0.8.44

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

func (*TransactionInfo) XXX_Size added in v0.8.44

func (m *TransactionInfo) XXX_Size() int

func (*TransactionInfo) XXX_Unmarshal added in v0.8.44

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

type TransactionInitializePhase added in v0.8.52

type TransactionInitializePhase struct {
	TransactionPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State                  TransactionInitializePhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.TransactionInitializePhase_State" json:"state,omitempty"`
	Failure                *Failure                         `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
}

func (*TransactionInitializePhase) Descriptor added in v0.8.52

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

func (*TransactionInitializePhase) GetFailure added in v0.8.52

func (m *TransactionInitializePhase) GetFailure() *Failure

func (*TransactionInitializePhase) GetState added in v0.8.52

func (*TransactionInitializePhase) Marshal added in v0.8.52

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

func (*TransactionInitializePhase) MarshalTo added in v0.8.52

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

func (*TransactionInitializePhase) MarshalToSizedBuffer added in v0.8.52

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

func (*TransactionInitializePhase) ProtoMessage added in v0.8.52

func (*TransactionInitializePhase) ProtoMessage()

func (*TransactionInitializePhase) Reset added in v0.8.52

func (m *TransactionInitializePhase) Reset()

func (*TransactionInitializePhase) Size added in v0.8.52

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

func (*TransactionInitializePhase) String added in v0.8.52

func (m *TransactionInitializePhase) String() string

func (*TransactionInitializePhase) Unmarshal added in v0.8.52

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

func (*TransactionInitializePhase) XXX_DiscardUnknown added in v0.8.52

func (m *TransactionInitializePhase) XXX_DiscardUnknown()

func (*TransactionInitializePhase) XXX_Marshal added in v0.8.52

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

func (*TransactionInitializePhase) XXX_Merge added in v0.8.52

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

func (*TransactionInitializePhase) XXX_Size added in v0.8.52

func (m *TransactionInitializePhase) XXX_Size() int

func (*TransactionInitializePhase) XXX_Unmarshal added in v0.8.52

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

type TransactionInitializePhase_State added in v0.8.52

type TransactionInitializePhase_State int32
const (
	TransactionInitializePhase_INITIALIZING TransactionInitializePhase_State = 0
	TransactionInitializePhase_INITIALIZED  TransactionInitializePhase_State = 1
	TransactionInitializePhase_FAILED       TransactionInitializePhase_State = 2
)

func (TransactionInitializePhase_State) EnumDescriptor added in v0.8.52

func (TransactionInitializePhase_State) EnumDescriptor() ([]byte, []int)

func (TransactionInitializePhase_State) String added in v0.8.52

type TransactionPhaseStatus added in v0.8.52

type TransactionPhaseStatus struct {
	Start *time.Time `protobuf:"bytes,1,opt,name=start,proto3,stdtime" json:"start,omitempty"`
	End   *time.Time `protobuf:"bytes,2,opt,name=end,proto3,stdtime" json:"end,omitempty"`
}

func (*TransactionPhaseStatus) Descriptor added in v0.8.52

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

func (*TransactionPhaseStatus) GetEnd added in v0.8.52

func (m *TransactionPhaseStatus) GetEnd() *time.Time

func (*TransactionPhaseStatus) GetStart added in v0.8.52

func (m *TransactionPhaseStatus) GetStart() *time.Time

func (*TransactionPhaseStatus) Marshal added in v0.8.52

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

func (*TransactionPhaseStatus) MarshalTo added in v0.8.52

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

func (*TransactionPhaseStatus) MarshalToSizedBuffer added in v0.8.52

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

func (*TransactionPhaseStatus) ProtoMessage added in v0.8.52

func (*TransactionPhaseStatus) ProtoMessage()

func (*TransactionPhaseStatus) Reset added in v0.8.52

func (m *TransactionPhaseStatus) Reset()

func (*TransactionPhaseStatus) Size added in v0.8.52

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

func (*TransactionPhaseStatus) String added in v0.8.52

func (m *TransactionPhaseStatus) String() string

func (*TransactionPhaseStatus) Unmarshal added in v0.8.52

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

func (*TransactionPhaseStatus) XXX_DiscardUnknown added in v0.8.52

func (m *TransactionPhaseStatus) XXX_DiscardUnknown()

func (*TransactionPhaseStatus) XXX_Marshal added in v0.8.52

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

func (*TransactionPhaseStatus) XXX_Merge added in v0.8.52

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

func (*TransactionPhaseStatus) XXX_Size added in v0.8.52

func (m *TransactionPhaseStatus) XXX_Size() int

func (*TransactionPhaseStatus) XXX_Unmarshal added in v0.8.52

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

type TransactionPhases added in v0.8.52

type TransactionPhases struct {
	// 'initialize' is the transaction initialization phase status
	Initialize *TransactionInitializePhase `protobuf:"bytes,1,opt,name=initialize,proto3" json:"initialize,omitempty"`
	// 'validate' is the transaction validation phase status
	Validate *TransactionValidatePhase `protobuf:"bytes,2,opt,name=validate,proto3" json:"validate,omitempty"`
	// 'commit' is the transaction commit phase status
	Commit *TransactionCommitPhase `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
	// 'apply' is the transaction apply phase status
	Apply *TransactionApplyPhase `protobuf:"bytes,4,opt,name=apply,proto3" json:"apply,omitempty"`
	// 'abort' is the transaction abort phase status
	Abort *TransactionAbortPhase `protobuf:"bytes,5,opt,name=abort,proto3" json:"abort,omitempty"`
}

func (*TransactionPhases) Descriptor added in v0.8.52

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

func (*TransactionPhases) GetAbort added in v0.8.53

func (*TransactionPhases) GetApply added in v0.8.52

func (*TransactionPhases) GetCommit added in v0.8.52

func (m *TransactionPhases) GetCommit() *TransactionCommitPhase

func (*TransactionPhases) GetInitialize added in v0.8.52

func (m *TransactionPhases) GetInitialize() *TransactionInitializePhase

func (*TransactionPhases) GetValidate added in v0.8.52

func (m *TransactionPhases) GetValidate() *TransactionValidatePhase

func (*TransactionPhases) Marshal added in v0.8.52

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

func (*TransactionPhases) MarshalTo added in v0.8.52

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

func (*TransactionPhases) MarshalToSizedBuffer added in v0.8.52

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

func (*TransactionPhases) ProtoMessage added in v0.8.52

func (*TransactionPhases) ProtoMessage()

func (*TransactionPhases) Reset added in v0.8.52

func (m *TransactionPhases) Reset()

func (*TransactionPhases) Size added in v0.8.52

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

func (*TransactionPhases) String added in v0.8.52

func (m *TransactionPhases) String() string

func (*TransactionPhases) Unmarshal added in v0.8.52

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

func (*TransactionPhases) XXX_DiscardUnknown added in v0.8.52

func (m *TransactionPhases) XXX_DiscardUnknown()

func (*TransactionPhases) XXX_Marshal added in v0.8.52

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

func (*TransactionPhases) XXX_Merge added in v0.8.52

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

func (*TransactionPhases) XXX_Size added in v0.8.52

func (m *TransactionPhases) XXX_Size() int

func (*TransactionPhases) XXX_Unmarshal added in v0.8.52

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

type TransactionStatus

type TransactionStatus struct {
	// 'phases' is the transaction phases
	Phases TransactionPhases `protobuf:"bytes,1,opt,name=phases,proto3" json:"phases"`
	// 'proposals' is the set of proposals managed by the transaction
	Proposals []ProposalID `protobuf:"bytes,2,rep,name=proposals,proto3,casttype=ProposalID" json:"proposals,omitempty"`
	// 'state' is the overall transaction state
	State TransactionStatus_State `protobuf:"varint,3,opt,name=state,proto3,enum=onos.config.v2.TransactionStatus_State" json:"state,omitempty"`
	// 'failure' is the transaction failure (if any)
	Failure *Failure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"`
}

func (*TransactionStatus) Descriptor

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

func (*TransactionStatus) GetFailure added in v0.8.39

func (m *TransactionStatus) GetFailure() *Failure

func (*TransactionStatus) GetPhases added in v0.8.52

func (m *TransactionStatus) GetPhases() TransactionPhases

func (*TransactionStatus) GetProposals added in v0.8.52

func (m *TransactionStatus) GetProposals() []ProposalID

func (*TransactionStatus) GetState

func (*TransactionStatus) Marshal

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

func (*TransactionStatus) MarshalTo

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

func (*TransactionStatus) MarshalToSizedBuffer

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

func (*TransactionStatus) ProtoMessage

func (*TransactionStatus) ProtoMessage()

func (*TransactionStatus) Reset

func (m *TransactionStatus) Reset()

func (*TransactionStatus) Size

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

func (*TransactionStatus) String

func (m *TransactionStatus) String() string

func (*TransactionStatus) Unmarshal

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

func (*TransactionStatus) XXX_DiscardUnknown

func (m *TransactionStatus) XXX_DiscardUnknown()

func (*TransactionStatus) XXX_Marshal

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

func (*TransactionStatus) XXX_Merge

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

func (*TransactionStatus) XXX_Size

func (m *TransactionStatus) XXX_Size() int

func (*TransactionStatus) XXX_Unmarshal

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

type TransactionStatus_State added in v0.8.52

type TransactionStatus_State int32
const (
	TransactionStatus_PENDING   TransactionStatus_State = 0
	TransactionStatus_VALIDATED TransactionStatus_State = 1
	TransactionStatus_COMMITTED TransactionStatus_State = 2
	TransactionStatus_APPLIED   TransactionStatus_State = 3
	TransactionStatus_FAILED    TransactionStatus_State = 4
)

func (TransactionStatus_State) EnumDescriptor added in v0.8.52

func (TransactionStatus_State) EnumDescriptor() ([]byte, []int)

func (TransactionStatus_State) String added in v0.8.52

func (x TransactionStatus_State) String() string

type TransactionStrategy added in v0.8.52

type TransactionStrategy struct {
	// 'synchronicity' indicates the transaction synchronicity level
	Synchronicity TransactionStrategy_Synchronicity `` /* 134-byte string literal not displayed */
	// 'isolation' indicates the transaction isolation level
	Isolation TransactionStrategy_Isolation `protobuf:"varint,2,opt,name=isolation,proto3,enum=onos.config.v2.TransactionStrategy_Isolation" json:"isolation,omitempty"`
}

func (*TransactionStrategy) Descriptor added in v0.8.52

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

func (*TransactionStrategy) GetIsolation added in v0.8.52

func (*TransactionStrategy) GetSynchronicity added in v0.8.52

func (*TransactionStrategy) Marshal added in v0.8.52

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

func (*TransactionStrategy) MarshalTo added in v0.8.52

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

func (*TransactionStrategy) MarshalToSizedBuffer added in v0.8.52

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

func (*TransactionStrategy) ProtoMessage added in v0.8.52

func (*TransactionStrategy) ProtoMessage()

func (*TransactionStrategy) Reset added in v0.8.52

func (m *TransactionStrategy) Reset()

func (*TransactionStrategy) Size added in v0.8.52

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

func (*TransactionStrategy) String added in v0.8.52

func (m *TransactionStrategy) String() string

func (*TransactionStrategy) Unmarshal added in v0.8.52

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

func (*TransactionStrategy) XXX_DiscardUnknown added in v0.8.52

func (m *TransactionStrategy) XXX_DiscardUnknown()

func (*TransactionStrategy) XXX_Marshal added in v0.8.52

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

func (*TransactionStrategy) XXX_Merge added in v0.8.52

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

func (*TransactionStrategy) XXX_Size added in v0.8.52

func (m *TransactionStrategy) XXX_Size() int

func (*TransactionStrategy) XXX_Unmarshal added in v0.8.52

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

type TransactionStrategy_Isolation added in v0.8.52

type TransactionStrategy_Isolation int32
const (
	TransactionStrategy_DEFAULT      TransactionStrategy_Isolation = 0
	TransactionStrategy_SERIALIZABLE TransactionStrategy_Isolation = 1
)

func (TransactionStrategy_Isolation) EnumDescriptor added in v0.8.52

func (TransactionStrategy_Isolation) EnumDescriptor() ([]byte, []int)

func (TransactionStrategy_Isolation) String added in v0.8.52

type TransactionStrategy_Synchronicity added in v0.8.52

type TransactionStrategy_Synchronicity int32
const (
	TransactionStrategy_ASYNCHRONOUS TransactionStrategy_Synchronicity = 0
	TransactionStrategy_SYNCHRONOUS  TransactionStrategy_Synchronicity = 1
)

func (TransactionStrategy_Synchronicity) EnumDescriptor added in v0.8.52

func (TransactionStrategy_Synchronicity) EnumDescriptor() ([]byte, []int)

func (TransactionStrategy_Synchronicity) String added in v0.8.52

type TransactionValidatePhase added in v0.8.52

type TransactionValidatePhase struct {
	TransactionPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
	State                  TransactionValidatePhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.TransactionValidatePhase_State" json:"state,omitempty"`
	Failure                *Failure                       `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
}

func (*TransactionValidatePhase) Descriptor added in v0.8.52

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

func (*TransactionValidatePhase) GetFailure added in v0.8.52

func (m *TransactionValidatePhase) GetFailure() *Failure

func (*TransactionValidatePhase) GetState added in v0.8.52

func (*TransactionValidatePhase) Marshal added in v0.8.52

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

func (*TransactionValidatePhase) MarshalTo added in v0.8.52

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

func (*TransactionValidatePhase) MarshalToSizedBuffer added in v0.8.52

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

func (*TransactionValidatePhase) ProtoMessage added in v0.8.52

func (*TransactionValidatePhase) ProtoMessage()

func (*TransactionValidatePhase) Reset added in v0.8.52

func (m *TransactionValidatePhase) Reset()

func (*TransactionValidatePhase) Size added in v0.8.52

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

func (*TransactionValidatePhase) String added in v0.8.52

func (m *TransactionValidatePhase) String() string

func (*TransactionValidatePhase) Unmarshal added in v0.8.52

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

func (*TransactionValidatePhase) XXX_DiscardUnknown added in v0.8.52

func (m *TransactionValidatePhase) XXX_DiscardUnknown()

func (*TransactionValidatePhase) XXX_Marshal added in v0.8.52

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

func (*TransactionValidatePhase) XXX_Merge added in v0.8.52

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

func (*TransactionValidatePhase) XXX_Size added in v0.8.52

func (m *TransactionValidatePhase) XXX_Size() int

func (*TransactionValidatePhase) XXX_Unmarshal added in v0.8.52

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

type TransactionValidatePhase_State added in v0.8.52

type TransactionValidatePhase_State int32
const (
	TransactionValidatePhase_VALIDATING TransactionValidatePhase_State = 0
	TransactionValidatePhase_VALIDATED  TransactionValidatePhase_State = 1
	TransactionValidatePhase_FAILED     TransactionValidatePhase_State = 2
)

func (TransactionValidatePhase_State) EnumDescriptor added in v0.8.52

func (TransactionValidatePhase_State) EnumDescriptor() ([]byte, []int)

func (TransactionValidatePhase_State) String added in v0.8.52

type Transaction_Change added in v0.8.24

type Transaction_Change struct {
	Change *ChangeTransaction `protobuf:"bytes,6,opt,name=change,proto3,oneof" json:"change,omitempty"`
}

func (*Transaction_Change) MarshalTo added in v0.8.24

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

func (*Transaction_Change) MarshalToSizedBuffer added in v0.8.24

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

func (*Transaction_Change) Size added in v0.8.24

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

type Transaction_Rollback added in v0.8.24

type Transaction_Rollback struct {
	Rollback *RollbackTransaction `protobuf:"bytes,7,opt,name=rollback,proto3,oneof" json:"rollback,omitempty"`
}

func (*Transaction_Rollback) MarshalTo added in v0.8.24

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

func (*Transaction_Rollback) MarshalToSizedBuffer added in v0.8.24

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

func (*Transaction_Rollback) Size added in v0.8.24

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

type TypedBool added in v0.8.12

type TypedBool TypedValue

TypedBool for an int value

func (*TypedBool) Bool added in v0.8.12

func (tv *TypedBool) Bool() bool

Bool extracts the unsigned bool value

func (*TypedBool) String added in v0.8.12

func (tv *TypedBool) String() string

func (*TypedBool) ValueType added in v0.8.12

func (tv *TypedBool) ValueType() ValueType

ValueType gives the value type

type TypedBytes added in v0.8.12

type TypedBytes TypedValue

TypedBytes for a float value

func (*TypedBytes) ByteArray added in v0.8.12

func (tv *TypedBytes) ByteArray() []byte

ByteArray extracts the bytes value

func (*TypedBytes) String added in v0.8.12

func (tv *TypedBytes) String() string

func (*TypedBytes) ValueType added in v0.8.12

func (tv *TypedBytes) ValueType() ValueType

ValueType gives the value type

type TypedDecimal added in v0.8.12

type TypedDecimal TypedValue

TypedDecimal for a decimal64 value

func (*TypedDecimal) Decimal64 added in v0.8.12

func (tv *TypedDecimal) Decimal64() (int64, uint8)

Decimal64 extracts the unsigned decimal value

func (*TypedDecimal) Float added in v0.8.12

func (tv *TypedDecimal) Float() float64

Float extracts the unsigned decimal value as a float

func (*TypedDecimal) String added in v0.8.12

func (tv *TypedDecimal) String() string

func (*TypedDecimal) ValueType added in v0.8.12

func (tv *TypedDecimal) ValueType() ValueType

ValueType gives the value type

type TypedEmpty added in v0.8.12

type TypedEmpty TypedValue

TypedEmpty for an empty value

func (*TypedEmpty) String added in v0.8.12

func (tv *TypedEmpty) String() string

func (*TypedEmpty) ValueType added in v0.8.12

func (tv *TypedEmpty) ValueType() ValueType

ValueType gives the value type

type TypedFloat added in v0.8.12

type TypedFloat TypedValue

TypedFloat for a float value

func (*TypedFloat) Float32 added in v0.8.12

func (tv *TypedFloat) Float32() float32

Float32 extracts the float value

func (*TypedFloat) String added in v0.8.12

func (tv *TypedFloat) String() string

func (*TypedFloat) ValueType added in v0.8.12

func (tv *TypedFloat) ValueType() ValueType

ValueType gives the value type

type TypedInt added in v0.8.12

type TypedInt TypedValue

TypedInt for an int value

func (*TypedInt) Int added in v0.8.12

func (tv *TypedInt) Int() int

Int extracts the integer value

func (*TypedInt) String added in v0.8.12

func (tv *TypedInt) String() string

func (*TypedInt) ValueType added in v0.8.12

func (tv *TypedInt) ValueType() ValueType

ValueType gives the value type

type TypedLeafListBool added in v0.8.12

type TypedLeafListBool TypedValue

TypedLeafListBool for an bool leaf list

func (*TypedLeafListBool) List added in v0.8.12

func (tv *TypedLeafListBool) List() []bool

List extracts the leaf list values

func (*TypedLeafListBool) String added in v0.8.12

func (tv *TypedLeafListBool) String() string

func (*TypedLeafListBool) ValueType added in v0.8.12

func (tv *TypedLeafListBool) ValueType() ValueType

ValueType gives the value type

type TypedLeafListBytes added in v0.8.12

type TypedLeafListBytes TypedValue

TypedLeafListBytes for an bool leaf list

func (*TypedLeafListBytes) List added in v0.8.12

func (tv *TypedLeafListBytes) List() [][]byte

List extracts the leaf list values

func (*TypedLeafListBytes) String added in v0.8.12

func (tv *TypedLeafListBytes) String() string

func (*TypedLeafListBytes) ValueType added in v0.8.12

func (tv *TypedLeafListBytes) ValueType() ValueType

ValueType gives the value type

type TypedLeafListDecimal added in v0.8.12

type TypedLeafListDecimal TypedValue

TypedLeafListDecimal for a decimal leaf list

func (*TypedLeafListDecimal) List added in v0.8.12

func (tv *TypedLeafListDecimal) List() ([]int64, uint8)

List extracts the leaf list values

func (*TypedLeafListDecimal) ListFloat added in v0.8.12

func (tv *TypedLeafListDecimal) ListFloat() []float64

ListFloat extracts the leaf list values as floats

func (*TypedLeafListDecimal) String added in v0.8.12

func (tv *TypedLeafListDecimal) String() string

func (*TypedLeafListDecimal) ValueType added in v0.8.12

func (tv *TypedLeafListDecimal) ValueType() ValueType

ValueType gives the value type

type TypedLeafListFloat added in v0.8.12

type TypedLeafListFloat TypedValue

TypedLeafListFloat for a decimal leaf list

func (*TypedLeafListFloat) List added in v0.8.12

func (tv *TypedLeafListFloat) List() []float32

List extracts the leaf list values

func (*TypedLeafListFloat) String added in v0.8.12

func (tv *TypedLeafListFloat) String() string

func (*TypedLeafListFloat) ValueType added in v0.8.12

func (tv *TypedLeafListFloat) ValueType() ValueType

ValueType gives the value type

type TypedLeafListInt added in v0.8.12

type TypedLeafListInt TypedValue

TypedLeafListInt for an int leaf list

func (*TypedLeafListInt) List added in v0.8.12

func (tv *TypedLeafListInt) List() ([]int64, Width)

List extracts the leaf list values

func (*TypedLeafListInt) String added in v0.8.12

func (tv *TypedLeafListInt) String() string

func (*TypedLeafListInt) ValueType added in v0.8.12

func (tv *TypedLeafListInt) ValueType() ValueType

ValueType gives the value type

type TypedLeafListString added in v0.8.12

type TypedLeafListString TypedValue

TypedLeafListString for a string leaf list

func (*TypedLeafListString) List added in v0.8.12

func (tv *TypedLeafListString) List() []string

List extracts the leaf list values

func (*TypedLeafListString) String added in v0.8.12

func (tv *TypedLeafListString) String() string

func (*TypedLeafListString) ValueType added in v0.8.12

func (tv *TypedLeafListString) ValueType() ValueType

ValueType gives the value type

type TypedLeafListUint added in v0.8.12

type TypedLeafListUint TypedValue

TypedLeafListUint for an uint leaf list

func (*TypedLeafListUint) List added in v0.8.12

func (tv *TypedLeafListUint) List() ([]uint64, Width)

List extracts the leaf list values

func (*TypedLeafListUint) String added in v0.8.12

func (tv *TypedLeafListUint) String() string

func (*TypedLeafListUint) ValueType added in v0.8.12

func (tv *TypedLeafListUint) ValueType() ValueType

ValueType gives the value type

type TypedString added in v0.8.12

type TypedString TypedValue

TypedString for a string value

func (*TypedString) String added in v0.8.12

func (tv *TypedString) String() string

func (*TypedString) ValueType added in v0.8.12

func (tv *TypedString) ValueType() ValueType

ValueType gives the value type

type TypedUint added in v0.8.12

type TypedUint TypedValue

TypedUint for a uint value

func (*TypedUint) String added in v0.8.12

func (tv *TypedUint) String() string

func (*TypedUint) Uint added in v0.8.12

func (tv *TypedUint) Uint() uint

Uint extracts the unsigned integer value

func (*TypedUint) ValueType added in v0.8.12

func (tv *TypedUint) ValueType() ValueType

ValueType gives the value type

type TypedValue

type TypedValue struct {
	// 'bytes' is the bytes array
	Bytes []byte `protobuf:"bytes,1,opt,name=bytes,json=Bytes,proto3" json:"Bytes,omitempty"`
	// 'type' is the value type
	Type ValueType `protobuf:"varint,2,opt,name=type,json=Type,proto3,enum=onos.config.v2.ValueType" json:"Type,omitempty"`
	// 'type_opts' is a set of type options
	TypeOpts []int32 `protobuf:"varint,3,rep,packed,name=type_opts,json=TypeOpts,proto3" json:"TypeOpts,omitempty"`
}

TypedValue is a value represented as a byte array

func NewLeafListBoolTv added in v0.8.12

func NewLeafListBoolTv(values []bool) *TypedValue

NewLeafListBoolTv decodes bool values in to an object

func NewLeafListBytesTv added in v0.8.12

func NewLeafListBytesTv(values [][]byte) *TypedValue

NewLeafListBytesTv decodes byte values in to a Leaf list

func NewLeafListDecimalTv added in v0.8.12

func NewLeafListDecimalTv(digits []int64, precision uint8) *TypedValue

NewLeafListDecimalTv decodes decimal values in to a Leaf list

func NewLeafListFloatTv added in v0.8.12

func NewLeafListFloatTv(values []float32) *TypedValue

NewLeafListFloatTv decodes float values in to a Leaf list

func NewLeafListIntTv added in v0.8.12

func NewLeafListIntTv(values []int64, width Width) *TypedValue

NewLeafListIntTv decodes int values in to an object

func NewLeafListStringTv added in v0.8.12

func NewLeafListStringTv(values []string) *TypedValue

NewLeafListStringTv decodes string values in to an object

func NewLeafListUintTv added in v0.8.12

func NewLeafListUintTv(values []uint64, width Width) *TypedValue

NewLeafListUintTv decodes uint values in to a Leaf list

func NewTypedValue added in v0.8.12

func NewTypedValue(bytes []byte, valueType ValueType, typeOpts []uint8) (*TypedValue, error)

NewTypedValue creates a TypeValue from a byte[] and type - used in changes.go For Int and Uint both the width and sign must be given in type opts e.g. [32, 1]

func NewTypedValueBool added in v0.8.12

func NewTypedValueBool(value bool) *TypedValue

NewTypedValueBool decodes a bool value in to an object

func NewTypedValueBytes added in v0.8.12

func NewTypedValueBytes(value []byte) *TypedValue

NewTypedValueBytes decodes an array of bytes in to an object

func NewTypedValueDecimal added in v0.8.12

func NewTypedValueDecimal(digits int64, precision uint8) *TypedValue

NewTypedValueDecimal decodes a decimal value in to an object

func NewTypedValueEmpty added in v0.8.12

func NewTypedValueEmpty() *TypedValue

NewTypedValueEmpty decodes an empty object

func NewTypedValueFloat added in v0.8.12

func NewTypedValueFloat(value float64) *TypedValue

NewTypedValueFloat decodes a decimal value in to an object

func NewTypedValueInt added in v0.8.12

func NewTypedValueInt(value int, width Width) *TypedValue

NewTypedValueInt decodes an int value in to an object

func NewTypedValueString added in v0.8.12

func NewTypedValueString(value string) *TypedValue

NewTypedValueString decodes string value in to an object

func NewTypedValueUint added in v0.8.12

func NewTypedValueUint(value uint, width Width) *TypedValue

NewTypedValueUint decodes a uint value in to an object

func (*TypedValue) Descriptor

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

func (*TypedValue) GetBytes

func (m *TypedValue) GetBytes() []byte

func (*TypedValue) GetType

func (m *TypedValue) GetType() ValueType

func (*TypedValue) GetTypeOpts

func (m *TypedValue) GetTypeOpts() []int32

func (*TypedValue) Marshal

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

func (*TypedValue) MarshalTo

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

func (*TypedValue) MarshalToSizedBuffer

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

func (*TypedValue) ProtoMessage

func (*TypedValue) ProtoMessage()

func (*TypedValue) Reset

func (m *TypedValue) Reset()

func (*TypedValue) Size

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

func (*TypedValue) String

func (m *TypedValue) String() string

func (*TypedValue) Unmarshal

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

func (*TypedValue) ValueToString added in v0.8.12

func (tv *TypedValue) ValueToString() string

ValueToString is the String calculated as a Native type There is already a String() in the protobuf generated code that can't be overridden

func (*TypedValue) XXX_DiscardUnknown

func (m *TypedValue) XXX_DiscardUnknown()

func (*TypedValue) XXX_Marshal

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

func (*TypedValue) XXX_Merge

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

func (*TypedValue) XXX_Size

func (m *TypedValue) XXX_Size() int

func (*TypedValue) XXX_Unmarshal

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

type TypedValueMap added in v0.8.12

type TypedValueMap map[string]*TypedValue

TypedValueMap is an alias for a map of paths and values

type ValueType

type ValueType int32

ValueType is the type for a value

const (
	ValueType_EMPTY            ValueType = 0
	ValueType_STRING           ValueType = 1
	ValueType_INT              ValueType = 2
	ValueType_UINT             ValueType = 3
	ValueType_BOOL             ValueType = 4
	ValueType_DECIMAL          ValueType = 5
	ValueType_FLOAT            ValueType = 6
	ValueType_BYTES            ValueType = 7
	ValueType_LEAFLIST_STRING  ValueType = 8
	ValueType_LEAFLIST_INT     ValueType = 9
	ValueType_LEAFLIST_UINT    ValueType = 10
	ValueType_LEAFLIST_BOOL    ValueType = 11
	ValueType_LEAFLIST_DECIMAL ValueType = 12
	ValueType_LEAFLIST_FLOAT   ValueType = 13
	ValueType_LEAFLIST_BYTES   ValueType = 14
)

func (ValueType) EnumDescriptor

func (ValueType) EnumDescriptor() ([]byte, []int)

func (ValueType) String

func (x ValueType) String() string

type Width added in v0.8.12

type Width int
const (
	WidthUnknown Width = 1 << (iota + 2)
	WidthEight
	WidthSixteen
	WidthThirtyTwo
	WidthSixtyFour
)

Jump to

Keyboard shortcuts

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