Documentation ¶
Index ¶
- Variables
- func NewUUID() uuid.UUID
- type Change
- func (*Change) Descriptor() ([]byte, []int)
- func (m *Change) GetTargetType() TargetType
- func (m *Change) GetTargetVersion() TargetVersion
- func (m *Change) GetValues() map[string]ChangeValue
- func (m *Change) Marshal() (dAtA []byte, err error)
- func (m *Change) MarshalTo(dAtA []byte) (int, error)
- func (m *Change) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Change) ProtoMessage()
- func (m *Change) Reset()
- func (m *Change) Size() (n int)
- func (m *Change) String() string
- func (m *Change) Unmarshal(dAtA []byte) error
- func (m *Change) XXX_DiscardUnknown()
- func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Change) XXX_Merge(src proto.Message)
- func (m *Change) XXX_Size() int
- func (m *Change) XXX_Unmarshal(b []byte) error
- type ChangeValue
- func (*ChangeValue) Descriptor() ([]byte, []int)
- func (m *ChangeValue) GetDelete() bool
- func (m *ChangeValue) GetValue() TypedValue
- func (m *ChangeValue) Marshal() (dAtA []byte, err error)
- func (m *ChangeValue) MarshalTo(dAtA []byte) (int, error)
- func (m *ChangeValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChangeValue) ProtoMessage()
- func (m *ChangeValue) Reset()
- func (m *ChangeValue) Size() (n int)
- func (m *ChangeValue) String() string
- func (m *ChangeValue) Unmarshal(dAtA []byte) error
- func (m *ChangeValue) XXX_DiscardUnknown()
- func (m *ChangeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangeValue) XXX_Merge(src proto.Message)
- func (m *ChangeValue) XXX_Size() int
- func (m *ChangeValue) XXX_Unmarshal(b []byte) error
- type Configuration
- func (*Configuration) Descriptor() ([]byte, []int)
- func (m *Configuration) GetID() ConfigurationID
- func (m *Configuration) GetStatus() ConfigurationStatus
- func (m *Configuration) GetTargetID() TargetID
- func (m *Configuration) GetTargetType() TargetType
- func (m *Configuration) GetTargetVersion() TargetVersion
- func (m *Configuration) GetValues() map[string]*PathValue
- func (m *Configuration) Marshal() (dAtA []byte, err error)
- func (m *Configuration) MarshalTo(dAtA []byte) (int, error)
- func (m *Configuration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Configuration) ProtoMessage()
- func (m *Configuration) Reset()
- func (m *Configuration) Size() (n int)
- func (m *Configuration) String() string
- func (m *Configuration) Unmarshal(dAtA []byte) error
- func (m *Configuration) XXX_DiscardUnknown()
- func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Configuration) XXX_Merge(src proto.Message)
- func (m *Configuration) XXX_Size() int
- func (m *Configuration) XXX_Unmarshal(b []byte) error
- type ConfigurationEvent
- func (*ConfigurationEvent) Descriptor() ([]byte, []int)
- func (m *ConfigurationEvent) GetConfiguration() Configuration
- func (m *ConfigurationEvent) GetType() ConfigurationEvent_ConfigurationEventType
- func (m *ConfigurationEvent) Marshal() (dAtA []byte, err error)
- func (m *ConfigurationEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *ConfigurationEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConfigurationEvent) ProtoMessage()
- func (m *ConfigurationEvent) Reset()
- func (m *ConfigurationEvent) Size() (n int)
- func (m *ConfigurationEvent) String() string
- func (m *ConfigurationEvent) Unmarshal(dAtA []byte) error
- func (m *ConfigurationEvent) XXX_DiscardUnknown()
- func (m *ConfigurationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigurationEvent) XXX_Merge(src proto.Message)
- func (m *ConfigurationEvent) XXX_Size() int
- func (m *ConfigurationEvent) XXX_Unmarshal(b []byte) error
- type ConfigurationEvent_ConfigurationEventType
- type ConfigurationID
- type ConfigurationState
- type ConfigurationStatus
- func (*ConfigurationStatus) Descriptor() ([]byte, []int)
- func (m *ConfigurationStatus) GetFailure() *Failure
- func (m *ConfigurationStatus) GetMastershipState() MastershipState
- func (m *ConfigurationStatus) GetPaths() map[string]*PathStatus
- func (m *ConfigurationStatus) GetRevision() Revision
- func (m *ConfigurationStatus) GetState() ConfigurationState
- func (m *ConfigurationStatus) Marshal() (dAtA []byte, err error)
- func (m *ConfigurationStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *ConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConfigurationStatus) ProtoMessage()
- func (m *ConfigurationStatus) Reset()
- func (m *ConfigurationStatus) Size() (n int)
- func (m *ConfigurationStatus) String() string
- func (m *ConfigurationStatus) Unmarshal(dAtA []byte) error
- func (m *ConfigurationStatus) XXX_DiscardUnknown()
- func (m *ConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigurationStatus) XXX_Merge(src proto.Message)
- func (m *ConfigurationStatus) XXX_Size() int
- func (m *ConfigurationStatus) XXX_Unmarshal(b []byte) error
- type Failure
- func (*Failure) Descriptor() ([]byte, []int)
- func (m *Failure) GetDescription() string
- func (m *Failure) GetType() Failure_Type
- func (m *Failure) Marshal() (dAtA []byte, err error)
- func (m *Failure) MarshalTo(dAtA []byte) (int, error)
- func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Failure) ProtoMessage()
- func (m *Failure) Reset()
- func (m *Failure) Size() (n int)
- func (m *Failure) String() string
- func (m *Failure) Unmarshal(dAtA []byte) error
- func (m *Failure) XXX_DiscardUnknown()
- func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Failure) XXX_Merge(src proto.Message)
- func (m *Failure) XXX_Size() int
- func (m *Failure) XXX_Unmarshal(b []byte) error
- type Failure_Type
- type ID
- type Index
- type MastershipState
- func (*MastershipState) Descriptor() ([]byte, []int)
- func (m *MastershipState) GetTerm() MastershipTerm
- func (m *MastershipState) Marshal() (dAtA []byte, err error)
- func (m *MastershipState) MarshalTo(dAtA []byte) (int, error)
- func (m *MastershipState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MastershipState) ProtoMessage()
- func (m *MastershipState) Reset()
- func (m *MastershipState) Size() (n int)
- func (m *MastershipState) String() string
- func (m *MastershipState) Unmarshal(dAtA []byte) error
- func (m *MastershipState) XXX_DiscardUnknown()
- func (m *MastershipState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MastershipState) XXX_Merge(src proto.Message)
- func (m *MastershipState) XXX_Size() int
- func (m *MastershipState) XXX_Unmarshal(b []byte) error
- type MastershipTerm
- type ObjectMeta
- func (*ObjectMeta) Descriptor() ([]byte, []int)
- func (m *ObjectMeta) GetCreated() time.Time
- func (m *ObjectMeta) GetDeleted() *time.Time
- func (m *ObjectMeta) GetKey() string
- func (m *ObjectMeta) GetRevision() Revision
- func (m *ObjectMeta) GetUpdated() time.Time
- func (m *ObjectMeta) GetVersion() uint64
- func (m *ObjectMeta) Marshal() (dAtA []byte, err error)
- func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ObjectMeta) ProtoMessage()
- func (m *ObjectMeta) Reset()
- func (m *ObjectMeta) Size() (n int)
- func (m *ObjectMeta) String() string
- func (m *ObjectMeta) Unmarshal(dAtA []byte) error
- func (m *ObjectMeta) XXX_DiscardUnknown()
- func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ObjectMeta) XXX_Merge(src proto.Message)
- func (m *ObjectMeta) XXX_Size() int
- func (m *ObjectMeta) XXX_Unmarshal(b []byte) error
- type PathState
- type PathStatus
- func (*PathStatus) Descriptor() ([]byte, []int)
- func (m *PathStatus) GetState() PathState
- func (m *PathStatus) GetUpdateIndex() Index
- func (m *PathStatus) Marshal() (dAtA []byte, err error)
- func (m *PathStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *PathStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PathStatus) ProtoMessage()
- func (m *PathStatus) Reset()
- func (m *PathStatus) Size() (n int)
- func (m *PathStatus) String() string
- func (m *PathStatus) Unmarshal(dAtA []byte) error
- func (m *PathStatus) XXX_DiscardUnknown()
- func (m *PathStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PathStatus) XXX_Merge(src proto.Message)
- func (m *PathStatus) XXX_Size() int
- func (m *PathStatus) XXX_Unmarshal(b []byte) error
- type PathValue
- func (*PathValue) Descriptor() ([]byte, []int)
- func (m *PathValue) GetDeleted() bool
- func (m *PathValue) GetIndex() Index
- func (m *PathValue) GetPath() string
- func (m *PathValue) GetValue() TypedValue
- func (m *PathValue) Marshal() (dAtA []byte, err error)
- func (m *PathValue) MarshalTo(dAtA []byte) (int, error)
- func (m *PathValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PathValue) ProtoMessage()
- func (m *PathValue) Reset()
- func (m *PathValue) Size() (n int)
- func (m *PathValue) String() string
- func (m *PathValue) Unmarshal(dAtA []byte) error
- func (m *PathValue) XXX_DiscardUnknown()
- func (m *PathValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PathValue) XXX_Merge(src proto.Message)
- func (m *PathValue) XXX_Size() int
- func (m *PathValue) XXX_Unmarshal(b []byte) error
- type Revision
- type Source
- func (*Source) Descriptor() ([]byte, []int)
- func (m *Source) GetTargetType() TargetType
- func (m *Source) GetTargetVersion() TargetVersion
- func (m *Source) GetValues() map[string]PathValue
- func (m *Source) Marshal() (dAtA []byte, err error)
- func (m *Source) MarshalTo(dAtA []byte) (int, error)
- func (m *Source) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Source) ProtoMessage()
- func (m *Source) Reset()
- func (m *Source) Size() (n int)
- func (m *Source) String() string
- func (m *Source) Unmarshal(dAtA []byte) error
- func (m *Source) XXX_DiscardUnknown()
- func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Source) XXX_Merge(src proto.Message)
- func (m *Source) XXX_Size() int
- func (m *Source) XXX_Unmarshal(b []byte) error
- type TargetID
- type TargetRole
- type TargetType
- type TargetVersion
- type TargetVersionedID
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetAtomic() bool
- func (m *Transaction) GetChange() *TransactionChange
- func (m *Transaction) GetID() TransactionID
- func (m *Transaction) GetIndex() Index
- func (m *Transaction) GetRollback() *TransactionRollback
- func (m *Transaction) GetStatus() TransactionStatus
- func (m *Transaction) GetTransaction() isTransaction_Transaction
- func (m *Transaction) GetUsername() string
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (m *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (*Transaction) XXX_OneofWrappers() []interface{}
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type TransactionChange
- func (*TransactionChange) Descriptor() ([]byte, []int)
- func (m *TransactionChange) GetChanges() map[TargetID]Change
- func (m *TransactionChange) Marshal() (dAtA []byte, err error)
- func (m *TransactionChange) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionChange) ProtoMessage()
- func (m *TransactionChange) Reset()
- func (m *TransactionChange) Size() (n int)
- func (m *TransactionChange) String() string
- func (m *TransactionChange) Unmarshal(dAtA []byte) error
- func (m *TransactionChange) XXX_DiscardUnknown()
- func (m *TransactionChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionChange) XXX_Merge(src proto.Message)
- func (m *TransactionChange) XXX_Size() int
- func (m *TransactionChange) XXX_Unmarshal(b []byte) error
- type TransactionEvent
- func (*TransactionEvent) Descriptor() ([]byte, []int)
- func (m *TransactionEvent) GetTransaction() Transaction
- func (m *TransactionEvent) GetType() TransactionEvent_TransactionEventType
- func (m *TransactionEvent) Marshal() (dAtA []byte, err error)
- func (m *TransactionEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionEvent) ProtoMessage()
- func (m *TransactionEvent) Reset()
- func (m *TransactionEvent) Size() (n int)
- func (m *TransactionEvent) String() string
- func (m *TransactionEvent) Unmarshal(dAtA []byte) error
- func (m *TransactionEvent) XXX_DiscardUnknown()
- func (m *TransactionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionEvent) XXX_Merge(src proto.Message)
- func (m *TransactionEvent) XXX_Size() int
- func (m *TransactionEvent) XXX_Unmarshal(b []byte) error
- type TransactionEvent_TransactionEventType
- type TransactionID
- type TransactionRollback
- func (*TransactionRollback) Descriptor() ([]byte, []int)
- func (m *TransactionRollback) GetIndex() Index
- func (m *TransactionRollback) Marshal() (dAtA []byte, err error)
- func (m *TransactionRollback) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionRollback) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionRollback) ProtoMessage()
- func (m *TransactionRollback) Reset()
- func (m *TransactionRollback) Size() (n int)
- func (m *TransactionRollback) String() string
- func (m *TransactionRollback) Unmarshal(dAtA []byte) error
- func (m *TransactionRollback) XXX_DiscardUnknown()
- func (m *TransactionRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionRollback) XXX_Merge(src proto.Message)
- func (m *TransactionRollback) XXX_Size() int
- func (m *TransactionRollback) XXX_Unmarshal(b []byte) error
- type TransactionState
- type TransactionStatus
- func (*TransactionStatus) Descriptor() ([]byte, []int)
- func (m *TransactionStatus) GetFailure() *Failure
- func (m *TransactionStatus) GetRevision() Revision
- func (m *TransactionStatus) GetSources() map[TargetID]Source
- func (m *TransactionStatus) GetState() TransactionState
- func (m *TransactionStatus) Marshal() (dAtA []byte, err error)
- func (m *TransactionStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionStatus) ProtoMessage()
- func (m *TransactionStatus) Reset()
- func (m *TransactionStatus) Size() (n int)
- func (m *TransactionStatus) String() string
- func (m *TransactionStatus) Unmarshal(dAtA []byte) error
- func (m *TransactionStatus) XXX_DiscardUnknown()
- func (m *TransactionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionStatus) XXX_Merge(src proto.Message)
- func (m *TransactionStatus) XXX_Size() int
- func (m *TransactionStatus) XXX_Unmarshal(b []byte) error
- type Transaction_Change
- type Transaction_Rollback
- type TypedBool
- type TypedBytes
- type TypedDecimal
- type TypedEmpty
- type TypedFloat
- type TypedInt
- type TypedLeafListBool
- type TypedLeafListBytes
- type TypedLeafListDecimal
- type TypedLeafListFloat
- type TypedLeafListInt
- type TypedLeafListString
- type TypedLeafListUint
- type TypedString
- type TypedUint
- type TypedValue
- func NewLeafListBoolTv(values []bool) *TypedValue
- func NewLeafListBytesTv(values [][]byte) *TypedValue
- func NewLeafListDecimalTv(digits []int64, precision uint8) *TypedValue
- func NewLeafListFloatTv(values []float32) *TypedValue
- func NewLeafListIntTv(values []int64, width Width) *TypedValue
- func NewLeafListStringTv(values []string) *TypedValue
- func NewLeafListUintTv(values []uint64, width Width) *TypedValue
- func NewTypedValue(bytes []byte, valueType ValueType, typeOpts []uint8) (*TypedValue, error)
- func NewTypedValueBool(value bool) *TypedValue
- func NewTypedValueBytes(value []byte) *TypedValue
- func NewTypedValueDecimal(digits int64, precision uint8) *TypedValue
- func NewTypedValueEmpty() *TypedValue
- func NewTypedValueFloat(value float64) *TypedValue
- func NewTypedValueInt(value int, width Width) *TypedValue
- func NewTypedValueString(value string) *TypedValue
- func NewTypedValueUint(value uint, width Width) *TypedValue
- func (*TypedValue) Descriptor() ([]byte, []int)
- func (m *TypedValue) GetBytes() []byte
- func (m *TypedValue) GetType() ValueType
- func (m *TypedValue) GetTypeOpts() []int32
- func (m *TypedValue) Marshal() (dAtA []byte, err error)
- func (m *TypedValue) MarshalTo(dAtA []byte) (int, error)
- func (m *TypedValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TypedValue) ProtoMessage()
- func (m *TypedValue) Reset()
- func (m *TypedValue) Size() (n int)
- func (m *TypedValue) String() string
- func (m *TypedValue) Unmarshal(dAtA []byte) error
- func (tv *TypedValue) ValueToString() string
- func (m *TypedValue) XXX_DiscardUnknown()
- func (m *TypedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TypedValue) XXX_Merge(src proto.Message)
- func (m *TypedValue) XXX_Size() int
- func (m *TypedValue) XXX_Unmarshal(b []byte) error
- type TypedValueMap
- type ValueType
- type Width
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthConfiguration = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConfiguration = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConfiguration = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthFailure = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFailure = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFailure = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthObject = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowObject = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupObject = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTransaction = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTransaction = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTransaction = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthValue = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowValue = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupValue = fmt.Errorf("proto: unexpected end of group") )
var ConfigurationEvent_ConfigurationEventType_name = map[int32]string{
0: "CONFIGURATION_EVENT_UNKNOWN",
1: "CONFIGURATION_CREATED",
2: "CONFIGURATION_UPDATED",
3: "CONFIGURATION_DELETED",
4: "CONFIGURATION_REPLAYED",
}
var ConfigurationEvent_ConfigurationEventType_value = map[string]int32{
"CONFIGURATION_EVENT_UNKNOWN": 0,
"CONFIGURATION_CREATED": 1,
"CONFIGURATION_UPDATED": 2,
"CONFIGURATION_DELETED": 3,
"CONFIGURATION_REPLAYED": 4,
}
var ConfigurationState_name = map[int32]string{
0: "CONFIGURATION_PENDING",
1: "CONFIGURATION_INITIALIZING",
2: "CONFIGURATION_UPDATING",
3: "CONFIGURATION_COMPLETE",
4: "CONFIGURATION_FAILED",
5: "CONFIGURATION_STALE",
}
var ConfigurationState_value = map[string]int32{
"CONFIGURATION_PENDING": 0,
"CONFIGURATION_INITIALIZING": 1,
"CONFIGURATION_UPDATING": 2,
"CONFIGURATION_COMPLETE": 3,
"CONFIGURATION_FAILED": 4,
"CONFIGURATION_STALE": 5,
}
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",
}
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,
}
var PathState_name = map[int32]string{
0: "PATH_UPDATE_PENDING",
1: "PATH_UPDATE_COMPLETE",
}
var PathState_value = map[string]int32{
"PATH_UPDATE_PENDING": 0,
"PATH_UPDATE_COMPLETE": 1,
}
var TransactionEvent_TransactionEventType_name = map[int32]string{
0: "TRANSACTION_EVENT_UNKNOWN",
1: "TRANSACTION_CREATED",
2: "TRANSACTION_UPDATED",
3: "TRANSACTION_DELETED",
4: "TRANSACTION_REPLAYED",
}
var TransactionEvent_TransactionEventType_value = map[string]int32{
"TRANSACTION_EVENT_UNKNOWN": 0,
"TRANSACTION_CREATED": 1,
"TRANSACTION_UPDATED": 2,
"TRANSACTION_DELETED": 3,
"TRANSACTION_REPLAYED": 4,
}
var TransactionState_name = map[int32]string{
0: "TRANSACTION_PENDING",
2: "TRANSACTION_COMPLETE",
3: "TRANSACTION_FAILED",
4: "TRANSACTION_VALIDATING",
5: "TRANSACTION_APPLYING",
}
var TransactionState_value = map[string]int32{
"TRANSACTION_PENDING": 0,
"TRANSACTION_COMPLETE": 2,
"TRANSACTION_FAILED": 3,
"TRANSACTION_VALIDATING": 4,
"TRANSACTION_APPLYING": 5,
}
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",
}
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 ¶
Types ¶
type Change ¶
type Change struct { // 'target_version' is an optional target version to which to apply this change TargetVersion TargetVersion `protobuf:"bytes,2,opt,name=target_version,json=targetVersion,proto3,casttype=TargetVersion" json:"target_version,omitempty"` // 'target_type' is an optional target type to which to apply this change TargetType TargetType `protobuf:"bytes,3,opt,name=target_type,json=targetType,proto3,casttype=TargetType" json:"target_type,omitempty"` // 'values' is a set of change values to apply Values map[string]ChangeValue `` /* 143-byte string literal not displayed */ }
Change represents a configuration change to a single target
func (*Change) Descriptor ¶
func (*Change) GetTargetType ¶
func (m *Change) GetTargetType() TargetType
func (*Change) GetTargetVersion ¶
func (m *Change) GetTargetVersion() TargetVersion
func (*Change) GetValues ¶
func (m *Change) GetValues() map[string]ChangeValue
func (*Change) MarshalToSizedBuffer ¶
func (*Change) ProtoMessage ¶
func (*Change) ProtoMessage()
func (*Change) XXX_DiscardUnknown ¶
func (m *Change) XXX_DiscardUnknown()
func (*Change) XXX_Marshal ¶
func (*Change) XXX_Unmarshal ¶
type ChangeValue ¶
type ChangeValue struct { // 'value' is the change value Value TypedValue `protobuf:"bytes,2,opt,name=value,json=Value,proto3" json:"Value,omitempty"` // 'delete' indicates whether this is a delete Delete bool `protobuf:"varint,3,opt,name=delete,proto3" json:"Delete,omitempty"` }
ChangeValue represents a change requested for an individual path/value
func (*ChangeValue) Descriptor ¶
func (*ChangeValue) Descriptor() ([]byte, []int)
func (*ChangeValue) GetDelete ¶ added in v0.8.17
func (m *ChangeValue) GetDelete() bool
func (*ChangeValue) GetValue ¶
func (m *ChangeValue) GetValue() TypedValue
func (*ChangeValue) Marshal ¶
func (m *ChangeValue) Marshal() (dAtA []byte, err error)
func (*ChangeValue) MarshalToSizedBuffer ¶
func (m *ChangeValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChangeValue) ProtoMessage ¶
func (*ChangeValue) ProtoMessage()
func (*ChangeValue) Reset ¶
func (m *ChangeValue) Reset()
func (*ChangeValue) Size ¶
func (m *ChangeValue) Size() (n int)
func (*ChangeValue) String ¶
func (m *ChangeValue) String() string
func (*ChangeValue) Unmarshal ¶
func (m *ChangeValue) Unmarshal(dAtA []byte) error
func (*ChangeValue) XXX_DiscardUnknown ¶
func (m *ChangeValue) XXX_DiscardUnknown()
func (*ChangeValue) XXX_Marshal ¶
func (m *ChangeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChangeValue) XXX_Merge ¶
func (m *ChangeValue) XXX_Merge(src proto.Message)
func (*ChangeValue) XXX_Size ¶
func (m *ChangeValue) XXX_Size() int
func (*ChangeValue) XXX_Unmarshal ¶
func (m *ChangeValue) 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"` // 'target_version' is the version to which desired target configuration applies TargetVersion TargetVersion `protobuf:"bytes,4,opt,name=target_version,json=targetVersion,proto3,casttype=TargetVersion" json:"target_version,omitempty"` // 'target_type' is an optional target type to which to apply this desired target configuration TargetType TargetType `protobuf:"bytes,5,opt,name=target_type,json=targetType,proto3,casttype=TargetType" json:"target_type,omitempty"` // 'values' is a map of path/values to set Values map[string]*PathValue `` /* 153-byte string literal not displayed */ // 'ConfigurationStatus' is the current lifecycle status of the configuration Status ConfigurationStatus `protobuf:"bytes,7,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) GetStatus ¶
func (m *Configuration) GetStatus() ConfigurationStatus
func (*Configuration) GetTargetID ¶
func (m *Configuration) GetTargetID() TargetID
func (*Configuration) GetTargetType ¶
func (m *Configuration) GetTargetType() TargetType
func (*Configuration) GetTargetVersion ¶
func (m *Configuration) GetTargetVersion() TargetVersion
func (*Configuration) GetValues ¶
func (m *Configuration) GetValues() map[string]*PathValue
func (*Configuration) Marshal ¶
func (m *Configuration) Marshal() (dAtA []byte, err 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 { // ConfigurationEventType configuration event type Type ConfigurationEvent_ConfigurationEventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.ConfigurationEvent_ConfigurationEventType" 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 (m *ConfigurationEvent) GetType() ConfigurationEvent_ConfigurationEventType
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_ConfigurationEventType ¶ added in v0.8.36
type ConfigurationEvent_ConfigurationEventType int32
ConfigurationEventType configuration event types for configuration store
const ( // CONFIGURATION_EVENT_UNKNOWN indicates unknown configuration store event ConfigurationEvent_CONFIGURATION_EVENT_UNKNOWN ConfigurationEvent_ConfigurationEventType = 0 // CONFIGURATION_CREATED indicates the configuration entry in the store is created ConfigurationEvent_CONFIGURATION_CREATED ConfigurationEvent_ConfigurationEventType = 1 // CONFIGURATION_UPDATED indicates the configuration entry in the store is updated ConfigurationEvent_CONFIGURATION_UPDATED ConfigurationEvent_ConfigurationEventType = 2 // CONFIGURATION_DELETED indicates the configuration entry in the store is deleted ConfigurationEvent_CONFIGURATION_DELETED ConfigurationEvent_ConfigurationEventType = 3 // CONFIGURATION_REPLAYED ConfigurationEvent_CONFIGURATION_REPLAYED ConfigurationEvent_ConfigurationEventType = 4 )
func (ConfigurationEvent_ConfigurationEventType) EnumDescriptor ¶ added in v0.8.36
func (ConfigurationEvent_ConfigurationEventType) EnumDescriptor() ([]byte, []int)
func (ConfigurationEvent_ConfigurationEventType) String ¶ added in v0.8.36
func (x ConfigurationEvent_ConfigurationEventType) String() string
type ConfigurationID ¶
type ConfigurationID string
ConfigurationID is a configuration identifier type
type ConfigurationState ¶
type ConfigurationState int32
ConfigurationState is the configuration state of a configuration phase
const ( // CONFIGURATION_PENDING indicates the configuration is PENDING ConfigurationState_CONFIGURATION_PENDING ConfigurationState = 0 // CONFIGURATION_INITIALIZING indicates the configuration is being initialized from the target ConfigurationState_CONFIGURATION_INITIALIZING ConfigurationState = 1 // CONFIGURATION_UPDATING indicates the configuration is being updated ConfigurationState_CONFIGURATION_UPDATING ConfigurationState = 2 // CONFIGURATION_COMPLETE indicates the configuration is complete ConfigurationState_CONFIGURATION_COMPLETE ConfigurationState = 3 // CONFIGURATION_FAILED indicates the configuration is failed ConfigurationState_CONFIGURATION_FAILED ConfigurationState = 4 // CONFIGURATION_STALE indicated the configuration is in the stale state ConfigurationState_CONFIGURATION_STALE ConfigurationState = 5 )
func (ConfigurationState) EnumDescriptor ¶
func (ConfigurationState) EnumDescriptor() ([]byte, []int)
func (ConfigurationState) String ¶
func (x ConfigurationState) String() string
type ConfigurationStatus ¶
type ConfigurationStatus struct { // revision is the highest revision number that's been reconciled Revision Revision `protobuf:"varint,1,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"` // 'state' is the state of the transaction within a Phase State ConfigurationState `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ConfigurationState" json:"state,omitempty"` // mastershipState mastership info MastershipState MastershipState `protobuf:"bytes,3,opt,name=mastership_state,json=mastershipState,proto3" json:"mastership_state"` // paths a set of path statuses Paths map[string]*PathStatus `` /* 151-byte string literal not displayed */ // failure configuration failure type and description Failure *Failure `protobuf:"bytes,5,opt,name=failure,proto3" json:"failure,omitempty"` }
ConfigurationStatus is the status of a Configuration
func (*ConfigurationStatus) Descriptor ¶
func (*ConfigurationStatus) Descriptor() ([]byte, []int)
func (*ConfigurationStatus) GetFailure ¶ added in v0.8.39
func (m *ConfigurationStatus) GetFailure() *Failure
func (*ConfigurationStatus) GetMastershipState ¶
func (m *ConfigurationStatus) GetMastershipState() MastershipState
func (*ConfigurationStatus) GetPaths ¶ added in v0.8.33
func (m *ConfigurationStatus) GetPaths() map[string]*PathStatus
func (*ConfigurationStatus) GetRevision ¶ added in v0.8.33
func (m *ConfigurationStatus) GetRevision() Revision
func (*ConfigurationStatus) GetState ¶
func (m *ConfigurationStatus) GetState() ConfigurationState
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 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) GetDescription ¶ added in v0.8.39
func (*Failure) GetType ¶ added in v0.8.39
func (m *Failure) GetType() Failure_Type
func (*Failure) MarshalToSizedBuffer ¶ added in v0.8.39
func (*Failure) ProtoMessage ¶ added in v0.8.39
func (*Failure) ProtoMessage()
func (*Failure) XXX_DiscardUnknown ¶ added in v0.8.39
func (m *Failure) XXX_DiscardUnknown()
func (*Failure) XXX_Marshal ¶ added in v0.8.39
func (*Failure) XXX_Unmarshal ¶ added in v0.8.39
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 MastershipState ¶
type MastershipState struct {
Term MastershipTerm `protobuf:"varint,1,opt,name=term,proto3,casttype=MastershipTerm" json:"term,omitempty"`
}
Mastership state
func (*MastershipState) Descriptor ¶
func (*MastershipState) Descriptor() ([]byte, []int)
func (*MastershipState) GetTerm ¶
func (m *MastershipState) GetTerm() MastershipTerm
func (*MastershipState) Marshal ¶
func (m *MastershipState) Marshal() (dAtA []byte, err error)
func (*MastershipState) MarshalToSizedBuffer ¶
func (m *MastershipState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MastershipState) ProtoMessage ¶
func (*MastershipState) ProtoMessage()
func (*MastershipState) Reset ¶
func (m *MastershipState) Reset()
func (*MastershipState) Size ¶
func (m *MastershipState) Size() (n int)
func (*MastershipState) String ¶
func (m *MastershipState) String() string
func (*MastershipState) Unmarshal ¶
func (m *MastershipState) Unmarshal(dAtA []byte) error
func (*MastershipState) XXX_DiscardUnknown ¶
func (m *MastershipState) XXX_DiscardUnknown()
func (*MastershipState) XXX_Marshal ¶
func (m *MastershipState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MastershipState) XXX_Merge ¶
func (m *MastershipState) XXX_Merge(src proto.Message)
func (*MastershipState) XXX_Size ¶
func (m *MastershipState) XXX_Size() int
func (*MastershipState) XXX_Unmarshal ¶
func (m *MastershipState) XXX_Unmarshal(b []byte) error
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 PathState ¶ added in v0.8.33
type PathState int32
PathState is the state of a configuration path
func (PathState) EnumDescriptor ¶ added in v0.8.33
type PathStatus ¶ added in v0.8.33
type PathStatus struct { State PathState `protobuf:"varint,1,opt,name=state,proto3,enum=onos.config.v2.PathState" json:"state,omitempty"` UpdateIndex Index `protobuf:"varint,3,opt,name=update_index,json=updateIndex,proto3,casttype=Index" json:"update_index,omitempty"` }
PathStatus is the status of a Configuration path
func (*PathStatus) Descriptor ¶ added in v0.8.33
func (*PathStatus) Descriptor() ([]byte, []int)
func (*PathStatus) GetState ¶ added in v0.8.33
func (m *PathStatus) GetState() PathState
func (*PathStatus) GetUpdateIndex ¶ added in v0.8.33
func (m *PathStatus) GetUpdateIndex() Index
func (*PathStatus) Marshal ¶ added in v0.8.33
func (m *PathStatus) Marshal() (dAtA []byte, err error)
func (*PathStatus) MarshalTo ¶ added in v0.8.33
func (m *PathStatus) MarshalTo(dAtA []byte) (int, error)
func (*PathStatus) MarshalToSizedBuffer ¶ added in v0.8.33
func (m *PathStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PathStatus) ProtoMessage ¶ added in v0.8.33
func (*PathStatus) ProtoMessage()
func (*PathStatus) Reset ¶ added in v0.8.33
func (m *PathStatus) Reset()
func (*PathStatus) Size ¶ added in v0.8.33
func (m *PathStatus) Size() (n int)
func (*PathStatus) String ¶ added in v0.8.33
func (m *PathStatus) String() string
func (*PathStatus) Unmarshal ¶ added in v0.8.33
func (m *PathStatus) Unmarshal(dAtA []byte) error
func (*PathStatus) XXX_DiscardUnknown ¶ added in v0.8.33
func (m *PathStatus) XXX_DiscardUnknown()
func (*PathStatus) XXX_Marshal ¶ added in v0.8.33
func (m *PathStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PathStatus) XXX_Merge ¶ added in v0.8.33
func (m *PathStatus) XXX_Merge(src proto.Message)
func (*PathStatus) XXX_Size ¶ added in v0.8.33
func (m *PathStatus) XXX_Size() int
func (*PathStatus) XXX_Unmarshal ¶ added in v0.8.33
func (m *PathStatus) 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"` // 'index' Index Index `protobuf:"varint,4,opt,name=index,proto3,casttype=Index" json:"index,omitempty"` }
PathValue is the state of a path/value in the configuration tree
func (*PathValue) Descriptor ¶
func (*PathValue) GetDeleted ¶ added in v0.8.17
func (*PathValue) GetValue ¶
func (m *PathValue) GetValue() TypedValue
func (*PathValue) MarshalToSizedBuffer ¶
func (*PathValue) ProtoMessage ¶
func (*PathValue) ProtoMessage()
func (*PathValue) XXX_DiscardUnknown ¶
func (m *PathValue) XXX_DiscardUnknown()
func (*PathValue) XXX_Marshal ¶
func (*PathValue) XXX_Unmarshal ¶
type Source ¶ added in v0.8.24
type Source struct { // 'target_version' is an optional target version to which to apply this change TargetVersion TargetVersion `protobuf:"bytes,1,opt,name=target_version,json=targetVersion,proto3,casttype=TargetVersion" json:"target_version,omitempty"` // 'target_type' is an optional target type to which to apply this change TargetType TargetType `protobuf:"bytes,2,opt,name=target_type,json=targetType,proto3,casttype=TargetType" json:"target_type,omitempty"` // 'values' is the set of values for the source Values map[string]PathValue `` /* 143-byte string literal not displayed */ }
Source is a transaction source
func (*Source) Descriptor ¶ added in v0.8.24
func (*Source) GetTargetType ¶ added in v0.8.32
func (m *Source) GetTargetType() TargetType
func (*Source) GetTargetVersion ¶ added in v0.8.32
func (m *Source) GetTargetVersion() TargetVersion
func (*Source) MarshalToSizedBuffer ¶ added in v0.8.24
func (*Source) ProtoMessage ¶ added in v0.8.24
func (*Source) ProtoMessage()
func (*Source) XXX_DiscardUnknown ¶ added in v0.8.24
func (m *Source) XXX_DiscardUnknown()
func (*Source) XXX_Marshal ¶ added in v0.8.24
func (*Source) XXX_Unmarshal ¶ added in v0.8.24
type TargetVersionedID ¶
TargetVersionedID is a versioned target ID
func NewTargetVersionedID ¶
func NewTargetVersionedID(id ID, version TargetVersion) TargetVersionedID
NewTargetVersionedID returns a new versioned target identifier
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"` // 'status' is the current lifecycle status of the transaction Status TransactionStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status"` // 'username' is the name of the user that made the transaction Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` // atomic determines if a transaction is atomic or not Atomic bool `protobuf:"varint,6,opt,name=atomic,proto3" json:"atomic,omitempty"` // Types that are valid to be assigned to Transaction: // *Transaction_Change // *Transaction_Rollback Transaction isTransaction_Transaction `protobuf_oneof:"transaction"` }
Transaction refers to a transaction change or transaction rollback
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetAtomic ¶ added in v0.8.17
func (m *Transaction) GetAtomic() bool
func (*Transaction) GetChange ¶ added in v0.8.24
func (m *Transaction) GetChange() *TransactionChange
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() *TransactionRollback
func (*Transaction) GetStatus ¶
func (m *Transaction) GetStatus() TransactionStatus
func (*Transaction) GetTransaction ¶ added in v0.8.24
func (m *Transaction) GetTransaction() isTransaction_Transaction
func (*Transaction) GetUsername ¶
func (m *Transaction) GetUsername() string
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err 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 TransactionChange ¶ added in v0.8.24
type TransactionChange struct { // 'changes' is a set of changes to apply to targets // The list of changes should contain only a single change per target/version pair. Changes map[TargetID]Change `` /* 162-byte string literal not displayed */ }
TransactionChange refers to a multi-target transactional change
func (*TransactionChange) Descriptor ¶ added in v0.8.24
func (*TransactionChange) Descriptor() ([]byte, []int)
func (*TransactionChange) GetChanges ¶ added in v0.8.24
func (m *TransactionChange) GetChanges() map[TargetID]Change
func (*TransactionChange) Marshal ¶ added in v0.8.24
func (m *TransactionChange) Marshal() (dAtA []byte, err error)
func (*TransactionChange) MarshalTo ¶ added in v0.8.24
func (m *TransactionChange) MarshalTo(dAtA []byte) (int, error)
func (*TransactionChange) MarshalToSizedBuffer ¶ added in v0.8.24
func (m *TransactionChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionChange) ProtoMessage ¶ added in v0.8.24
func (*TransactionChange) ProtoMessage()
func (*TransactionChange) Reset ¶ added in v0.8.24
func (m *TransactionChange) Reset()
func (*TransactionChange) Size ¶ added in v0.8.24
func (m *TransactionChange) Size() (n int)
func (*TransactionChange) String ¶ added in v0.8.24
func (m *TransactionChange) String() string
func (*TransactionChange) Unmarshal ¶ added in v0.8.24
func (m *TransactionChange) Unmarshal(dAtA []byte) error
func (*TransactionChange) XXX_DiscardUnknown ¶ added in v0.8.24
func (m *TransactionChange) XXX_DiscardUnknown()
func (*TransactionChange) XXX_Marshal ¶ added in v0.8.24
func (m *TransactionChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionChange) XXX_Merge ¶ added in v0.8.24
func (m *TransactionChange) XXX_Merge(src proto.Message)
func (*TransactionChange) XXX_Size ¶ added in v0.8.24
func (m *TransactionChange) XXX_Size() int
func (*TransactionChange) XXX_Unmarshal ¶ added in v0.8.24
func (m *TransactionChange) XXX_Unmarshal(b []byte) error
type TransactionEvent ¶
type TransactionEvent struct { Type TransactionEvent_TransactionEventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.TransactionEvent_TransactionEventType" 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 (m *TransactionEvent) GetType() TransactionEvent_TransactionEventType
func (*TransactionEvent) Marshal ¶
func (m *TransactionEvent) Marshal() (dAtA []byte, err 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_TransactionEventType ¶ added in v0.8.36
type TransactionEvent_TransactionEventType int32
TransactionEventType transaction event types for transaction store
const ( TransactionEvent_TRANSACTION_EVENT_UNKNOWN TransactionEvent_TransactionEventType = 0 TransactionEvent_TRANSACTION_CREATED TransactionEvent_TransactionEventType = 1 TransactionEvent_TRANSACTION_UPDATED TransactionEvent_TransactionEventType = 2 TransactionEvent_TRANSACTION_DELETED TransactionEvent_TransactionEventType = 3 TransactionEvent_TRANSACTION_REPLAYED TransactionEvent_TransactionEventType = 4 )
func (TransactionEvent_TransactionEventType) EnumDescriptor ¶ added in v0.8.36
func (TransactionEvent_TransactionEventType) EnumDescriptor() ([]byte, []int)
func (TransactionEvent_TransactionEventType) String ¶ added in v0.8.36
func (x TransactionEvent_TransactionEventType) String() string
type TransactionRollback ¶ added in v0.8.24
type TransactionRollback struct { // 'index' is a monotonically increasing, globally unique index of the change Index Index `protobuf:"varint,1,opt,name=index,proto3,casttype=Index" json:"index,omitempty"` }
TransactionRollback
func (*TransactionRollback) Descriptor ¶ added in v0.8.24
func (*TransactionRollback) Descriptor() ([]byte, []int)
func (*TransactionRollback) GetIndex ¶ added in v0.8.24
func (m *TransactionRollback) GetIndex() Index
func (*TransactionRollback) Marshal ¶ added in v0.8.24
func (m *TransactionRollback) Marshal() (dAtA []byte, err error)
func (*TransactionRollback) MarshalTo ¶ added in v0.8.24
func (m *TransactionRollback) MarshalTo(dAtA []byte) (int, error)
func (*TransactionRollback) MarshalToSizedBuffer ¶ added in v0.8.24
func (m *TransactionRollback) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionRollback) ProtoMessage ¶ added in v0.8.24
func (*TransactionRollback) ProtoMessage()
func (*TransactionRollback) Reset ¶ added in v0.8.24
func (m *TransactionRollback) Reset()
func (*TransactionRollback) Size ¶ added in v0.8.24
func (m *TransactionRollback) Size() (n int)
func (*TransactionRollback) String ¶ added in v0.8.24
func (m *TransactionRollback) String() string
func (*TransactionRollback) Unmarshal ¶ added in v0.8.24
func (m *TransactionRollback) Unmarshal(dAtA []byte) error
func (*TransactionRollback) XXX_DiscardUnknown ¶ added in v0.8.24
func (m *TransactionRollback) XXX_DiscardUnknown()
func (*TransactionRollback) XXX_Marshal ¶ added in v0.8.24
func (m *TransactionRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionRollback) XXX_Merge ¶ added in v0.8.24
func (m *TransactionRollback) XXX_Merge(src proto.Message)
func (*TransactionRollback) XXX_Size ¶ added in v0.8.24
func (m *TransactionRollback) XXX_Size() int
func (*TransactionRollback) XXX_Unmarshal ¶ added in v0.8.24
func (m *TransactionRollback) XXX_Unmarshal(b []byte) error
type TransactionState ¶
type TransactionState int32
TransactionState is the transaction state of a transaction phase
const ( // TRANSACTION_PENDING indicates the transaction is pending TransactionState_TRANSACTION_PENDING TransactionState = 0 // TRANSACTION_COMPLETE indicates the transaction is complete TransactionState_TRANSACTION_COMPLETE TransactionState = 2 // TRANSACTION_FAILED indicates the transaction failed TransactionState_TRANSACTION_FAILED TransactionState = 3 // TRANSACTION_VALIDATING indicates the transaction is in the validating state TransactionState_TRANSACTION_VALIDATING TransactionState = 4 // TRANSACTION_APPLYING indicates the transaction is in the applying state TransactionState_TRANSACTION_APPLYING TransactionState = 5 )
func (TransactionState) EnumDescriptor ¶
func (TransactionState) EnumDescriptor() ([]byte, []int)
func (TransactionState) String ¶
func (x TransactionState) String() string
type TransactionStatus ¶
type TransactionStatus struct { // revision is the highest revision number that's been reconciled Revision Revision `protobuf:"varint,1,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"` // 'state' is the state of the transaction // This field should only be updated from within onos-config. State TransactionState `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.TransactionState" json:"state,omitempty"` // 'sources' is a set of changes needed to revert back to the source of the transaction // This field should only be updated from within onos-config Sources map[TargetID]Source `` /* 162-byte string literal not displayed */ // failure transaction failure type and description Failure *Failure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"` }
TransactionStatus is the status of a Transaction
func (*TransactionStatus) Descriptor ¶
func (*TransactionStatus) Descriptor() ([]byte, []int)
func (*TransactionStatus) GetFailure ¶ added in v0.8.39
func (m *TransactionStatus) GetFailure() *Failure
func (*TransactionStatus) GetRevision ¶ added in v0.8.33
func (m *TransactionStatus) GetRevision() Revision
func (*TransactionStatus) GetSources ¶ added in v0.8.24
func (m *TransactionStatus) GetSources() map[TargetID]Source
func (*TransactionStatus) GetState ¶
func (m *TransactionStatus) GetState() TransactionState
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 Transaction_Change ¶ added in v0.8.24
type Transaction_Change struct {
Change *TransactionChange `protobuf:"bytes,7,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 *TransactionRollback `protobuf:"bytes,8,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
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
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
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) 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 )