Documentation ¶
Index ¶
- Variables
- type BaseValueStatus
- func (*BaseValueStatus) Descriptor() ([]byte, []int)deprecated
- func (x *BaseValueStatus) GetDerivedValues() []*ValueStatus
- func (x *BaseValueStatus) GetValue() *ValueStatus
- func (*BaseValueStatus) ProtoMessage()
- func (x *BaseValueStatus) ProtoReflect() protoreflect.Message
- func (x *BaseValueStatus) Reset()
- func (x *BaseValueStatus) String() string
- type TxnOperation
- func (TxnOperation) Descriptor() protoreflect.EnumDescriptor
- func (x TxnOperation) Enum() *TxnOperation
- func (TxnOperation) EnumDescriptor() ([]byte, []int)deprecated
- func (x TxnOperation) MarshalJSON() ([]byte, error)
- func (x TxnOperation) Number() protoreflect.EnumNumber
- func (x TxnOperation) String() string
- func (TxnOperation) Type() protoreflect.EnumType
- func (x *TxnOperation) UnmarshalJSON(b []byte) error
- type ValueState
- func (ValueState) Descriptor() protoreflect.EnumDescriptor
- func (x ValueState) Enum() *ValueState
- func (ValueState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValueState) MarshalJSON() ([]byte, error)
- func (x ValueState) Number() protoreflect.EnumNumber
- func (x ValueState) String() string
- func (ValueState) Type() protoreflect.EnumType
- func (x *ValueState) UnmarshalJSON(b []byte) error
- type ValueStatus
- func (*ValueStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ValueStatus) GetDetails() []string
- func (x *ValueStatus) GetError() string
- func (x *ValueStatus) GetKey() string
- func (x *ValueStatus) GetLastOperation() TxnOperation
- func (x *ValueStatus) GetState() ValueState
- func (m ValueStatus) MarshalJSON() ([]byte, error)
- func (*ValueStatus) ProtoMessage()
- func (x *ValueStatus) ProtoReflect() protoreflect.Message
- func (x *ValueStatus) Reset()
- func (x *ValueStatus) String() string
- func (m *ValueStatus) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValueState_name = map[int32]string{ 0: "NONEXISTENT", 1: "MISSING", 2: "UNIMPLEMENTED", 3: "REMOVED", 4: "CONFIGURED", 5: "OBTAINED", 6: "DISCOVERED", 7: "PENDING", 8: "INVALID", 9: "FAILED", 10: "RETRYING", } ValueState_value = map[string]int32{ "NONEXISTENT": 0, "MISSING": 1, "UNIMPLEMENTED": 2, "REMOVED": 3, "CONFIGURED": 4, "OBTAINED": 5, "DISCOVERED": 6, "PENDING": 7, "INVALID": 8, "FAILED": 9, "RETRYING": 10, } )
Enum value maps for ValueState.
View Source
var ( TxnOperation_name = map[int32]string{ 0: "UNDEFINED", 1: "VALIDATE", 2: "CREATE", 3: "UPDATE", 4: "DELETE", } TxnOperation_value = map[string]int32{ "UNDEFINED": 0, "VALIDATE": 1, "CREATE": 2, "UPDATE": 3, "DELETE": 4, } )
Enum value maps for TxnOperation.
View Source
var File_ligato_kvscheduler_value_status_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BaseValueStatus ¶
type BaseValueStatus struct { Value *ValueStatus `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` DerivedValues []*ValueStatus `protobuf:"bytes,2,rep,name=derived_values,json=derivedValues,proto3" json:"derived_values,omitempty"` // contains filtered or unexported fields }
func (*BaseValueStatus) Descriptor
deprecated
func (*BaseValueStatus) Descriptor() ([]byte, []int)
Deprecated: Use BaseValueStatus.ProtoReflect.Descriptor instead.
func (*BaseValueStatus) GetDerivedValues ¶
func (x *BaseValueStatus) GetDerivedValues() []*ValueStatus
func (*BaseValueStatus) GetValue ¶
func (x *BaseValueStatus) GetValue() *ValueStatus
func (*BaseValueStatus) ProtoMessage ¶
func (*BaseValueStatus) ProtoMessage()
func (*BaseValueStatus) ProtoReflect ¶ added in v3.2.0
func (x *BaseValueStatus) ProtoReflect() protoreflect.Message
func (*BaseValueStatus) Reset ¶
func (x *BaseValueStatus) Reset()
func (*BaseValueStatus) String ¶
func (x *BaseValueStatus) String() string
type TxnOperation ¶
type TxnOperation int32
const ( TxnOperation_UNDEFINED TxnOperation = 0 TxnOperation_VALIDATE TxnOperation = 1 TxnOperation_CREATE TxnOperation = 2 TxnOperation_UPDATE TxnOperation = 3 TxnOperation_DELETE TxnOperation = 4 )
func (TxnOperation) Descriptor ¶ added in v3.2.0
func (TxnOperation) Descriptor() protoreflect.EnumDescriptor
func (TxnOperation) Enum ¶ added in v3.2.0
func (x TxnOperation) Enum() *TxnOperation
func (TxnOperation) EnumDescriptor
deprecated
func (TxnOperation) EnumDescriptor() ([]byte, []int)
Deprecated: Use TxnOperation.Descriptor instead.
func (TxnOperation) MarshalJSON ¶ added in v3.2.0
func (x TxnOperation) MarshalJSON() ([]byte, error)
MarshalJSON ensures data is correctly marshaled
func (TxnOperation) Number ¶ added in v3.2.0
func (x TxnOperation) Number() protoreflect.EnumNumber
func (TxnOperation) String ¶
func (x TxnOperation) String() string
func (TxnOperation) Type ¶ added in v3.2.0
func (TxnOperation) Type() protoreflect.EnumType
func (*TxnOperation) UnmarshalJSON ¶ added in v3.2.0
func (x *TxnOperation) UnmarshalJSON(b []byte) error
UnmarshalJSON ensures that data is correctly unmarshaled
type ValueState ¶
type ValueState int32
const ( // ValueState_NONEXISTENT is assigned to value that was deleted or has never // existed. ValueState_NONEXISTENT ValueState = 0 // ValueState_MISSING is assigned to NB value that was configured but refresh // found it to be missing. ValueState_MISSING ValueState = 1 // ValueState_UNIMPLEMENTED marks value received from NB that cannot // be configured because there is no registered descriptor associated // with it. ValueState_UNIMPLEMENTED ValueState = 2 // ValueState_REMOVED is assigned to NB value after it was removed or when // it is being re-created. The state is only temporary: for re-create, the // value transits to whatever state the following Create operation produces, // and delete values are removed from the graph (go to the NONEXISTENT state) // immediately after the notification about the state change is sent. ValueState_REMOVED ValueState = 3 // ValueState_CONFIGURED marks value defined by NB and successfully configured. ValueState_CONFIGURED ValueState = 4 // ValueState_OBTAINED marks value not managed by NB, instead created // automatically or externally in SB. The KVScheduler learns about the value // either using Retrieve() or through a SB notification. ValueState_OBTAINED ValueState = 5 // ValueState_DISCOVERED marks NB value that was found (=retrieved) by refresh // but not actually configured by the agent in this run. ValueState_DISCOVERED ValueState = 6 // ValueState_PENDING represents (NB) value that cannot be configured yet // due to missing dependencies. ValueState_PENDING ValueState = 7 // ValueState_INVALID represents (NB) value that will not be configured // because it has a logically invalid content as declared by the Validate // method of the associated descriptor. // The corresponding error and the list of affected fields are stored // in the <InvalidValueDetails> structure available via <details> for invalid // value. ValueState_INVALID ValueState = 8 // ValueState_FAILED marks (NB) value for which the last executed operation // returned an error. // The error and the type of the operation which caused the error are stored // in the <FailedValueDetails> structure available via <details> for failed // value. ValueState_FAILED ValueState = 9 // ValueState_RETRYING marks unsucessfully applied (NB) value, for which, // however, one or more attempts to fix the error by repeating the last // operation are planned, and only if all the retries fail, the value will // then transit to the FAILED state. ValueState_RETRYING ValueState = 10 )
func (ValueState) Descriptor ¶ added in v3.2.0
func (ValueState) Descriptor() protoreflect.EnumDescriptor
func (ValueState) Enum ¶ added in v3.2.0
func (x ValueState) Enum() *ValueState
func (ValueState) EnumDescriptor
deprecated
func (ValueState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValueState.Descriptor instead.
func (ValueState) MarshalJSON ¶ added in v3.2.0
func (x ValueState) MarshalJSON() ([]byte, error)
MarshalJSON ensures data is correctly marshaled
func (ValueState) Number ¶ added in v3.2.0
func (x ValueState) Number() protoreflect.EnumNumber
func (ValueState) String ¶
func (x ValueState) String() string
func (ValueState) Type ¶ added in v3.2.0
func (ValueState) Type() protoreflect.EnumType
func (*ValueState) UnmarshalJSON ¶ added in v3.2.0
func (x *ValueState) UnmarshalJSON(b []byte) error
UnmarshalJSON ensures that data is correctly unmarshaled
type ValueStatus ¶
type ValueStatus struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` State ValueState `protobuf:"varint,2,opt,name=state,proto3,enum=ligato.kvscheduler.ValueState" json:"state,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // error returned by the last operation (none if empty string) LastOperation TxnOperation `` /* 138-byte string literal not displayed */ // - for invalid value, details is a list of invalid fields // - for pending value, details is a list of missing dependencies (labels) Details []string `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*ValueStatus) Descriptor
deprecated
func (*ValueStatus) Descriptor() ([]byte, []int)
Deprecated: Use ValueStatus.ProtoReflect.Descriptor instead.
func (*ValueStatus) GetDetails ¶
func (x *ValueStatus) GetDetails() []string
func (*ValueStatus) GetError ¶
func (x *ValueStatus) GetError() string
func (*ValueStatus) GetKey ¶
func (x *ValueStatus) GetKey() string
func (*ValueStatus) GetLastOperation ¶
func (x *ValueStatus) GetLastOperation() TxnOperation
func (*ValueStatus) GetState ¶
func (x *ValueStatus) GetState() ValueState
func (ValueStatus) MarshalJSON ¶
func (m ValueStatus) MarshalJSON() ([]byte, error)
MarshalJSON ensures data is correctly marshaled
func (*ValueStatus) ProtoMessage ¶
func (*ValueStatus) ProtoMessage()
func (*ValueStatus) ProtoReflect ¶ added in v3.2.0
func (x *ValueStatus) ProtoReflect() protoreflect.Message
func (*ValueStatus) Reset ¶
func (x *ValueStatus) Reset()
func (*ValueStatus) String ¶
func (x *ValueStatus) String() string
func (*ValueStatus) UnmarshalJSON ¶
func (m *ValueStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON ensures that data is correctly unmarshaled
Click to show internal directories.
Click to hide internal directories.