v2

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 15 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 (
	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 ConfigurationEventType_name = map[int32]string{
	0: "CONFIGURATION_EVENT_UNKNOWN",
	1: "CONFIGURATION_CREATED",
	2: "CONFIGURATION_UPDATED",
	3: "CONFIGURATION_DELETED",
	4: "CONFIGURATION_REPLAYED",
}
View Source
var ConfigurationEventType_value = map[string]int32{
	"CONFIGURATION_EVENT_UNKNOWN": 0,
	"CONFIGURATION_CREATED":       1,
	"CONFIGURATION_UPDATED":       2,
	"CONFIGURATION_DELETED":       3,
	"CONFIGURATION_REPLAYED":      4,
}
View Source
var ConfigurationState_name = map[int32]string{
	0: "CONFIGURATION_PENDING",
	2: "CONFIGURATION_COMPLETE",
}
View Source
var ConfigurationState_value = map[string]int32{
	"CONFIGURATION_PENDING":  0,
	"CONFIGURATION_COMPLETE": 2,
}
View Source
var TransactionEventType_name = map[int32]string{
	0: "TRANSACTION_EVENT_UNKNOWN",
	1: "TRANSACTION_CREATED",
	2: "TRANSACTION_UPDATED",
	3: "TRANSACTION_DELETED",
	4: "TRANSACTION_REPLAYED",
}
View Source
var TransactionEventType_value = map[string]int32{
	"TRANSACTION_EVENT_UNKNOWN": 0,
	"TRANSACTION_CREATED":       1,
	"TRANSACTION_UPDATED":       2,
	"TRANSACTION_DELETED":       3,
	"TRANSACTION_REPLAYED":      4,
}
View Source
var TransactionPhase_name = map[int32]string{
	0: "TRANSACTION_CHANGE",
	1: "TRANSACTION_ROLLBACK",
}
View Source
var TransactionPhase_value = map[string]int32{
	"TRANSACTION_CHANGE":   0,
	"TRANSACTION_ROLLBACK": 1,
}
View Source
var TransactionState_name = map[int32]string{
	0: "TRANSACTION_PENDING",
	2: "TRANSACTION_COMPLETE",
	3: "TRANSACTION_FAILED",
	4: "TRANSACTION_VALIDATING",
	5: "TRANSACTION_VALIDATED",
	6: "TRANSACTION_VALIDATION_FAILED",
}
View Source
var TransactionState_value = map[string]int32{
	"TRANSACTION_PENDING":           0,
	"TRANSACTION_COMPLETE":          2,
	"TRANSACTION_FAILED":            3,
	"TRANSACTION_VALIDATING":        4,
	"TRANSACTION_VALIDATED":         5,
	"TRANSACTION_VALIDATION_FAILED": 6,
}
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 Change

type Change struct {
	// 'target_id' is the identifier of the target to which this change applies
	TargetID TargetID `protobuf:"bytes,1,opt,name=target_id,json=targetId,proto3,casttype=TargetID" json:"target_id,omitempty"`
	// '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 []ChangeValue `protobuf:"bytes,4,rep,name=values,proto3" json:"values"`
}

Change represents a configuration change to a single target

func (*Change) Descriptor

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

func (*Change) GetTargetID

func (m *Change) GetTargetID() TargetID

func (*Change) GetTargetType

func (m *Change) GetTargetType() TargetType

func (*Change) GetTargetVersion

func (m *Change) GetTargetVersion() TargetVersion

func (*Change) GetValues

func (m *Change) GetValues() []ChangeValue

func (*Change) Marshal

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

func (*Change) MarshalTo

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

func (*Change) MarshalToSizedBuffer

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

func (*Change) ProtoMessage

func (*Change) ProtoMessage()

func (*Change) Reset

func (m *Change) Reset()

func (*Change) Size

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

func (*Change) String

func (m *Change) String() string

func (*Change) Unmarshal

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

func (*Change) XXX_DiscardUnknown

func (m *Change) XXX_DiscardUnknown()

func (*Change) XXX_Marshal

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

func (*Change) XXX_Merge

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

func (*Change) XXX_Size

func (m *Change) XXX_Size() int

func (*Change) XXX_Unmarshal

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

type ChangeValue

type ChangeValue 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"`
	// 'removed' indicates whether this is a delete
	Removed bool `protobuf:"varint,3,opt,name=removed,proto3" json:"Remove,omitempty"`
}

ChangeValue is an individual Path/Value and removed flag combination in a Change

func (*ChangeValue) Descriptor

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

func (*ChangeValue) GetPath

func (m *ChangeValue) GetPath() string

func (*ChangeValue) GetRemoved

func (m *ChangeValue) GetRemoved() bool

func (*ChangeValue) GetValue

func (m *ChangeValue) GetValue() TypedValue

func (*ChangeValue) Marshal

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

func (*ChangeValue) MarshalTo

func (m *ChangeValue) MarshalTo(dAtA []byte) (int, 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 {
	// 'id' is a unique configuration identifier
	ID ConfigurationID `protobuf:"bytes,1,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,2,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,3,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,4,opt,name=target_type,json=targetType,proto3,casttype=TargetType" json:"target_type,omitempty"`
	// 'values' is a list of path/values to set
	Values []*PathValue `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"`
	// 'ConfigurationStatus' is the current lifecycle status of the configuration
	Status ConfigurationStatus `protobuf:"bytes,6,opt,name=status,proto3" json:"status"`
	// revision is configuration revision
	Revision Revision `protobuf:"varint,7,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"`
}

Configuration represents complete desired target configuration

func (*Configuration) Descriptor

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

func (*Configuration) GetID

func (m *Configuration) GetID() ConfigurationID

func (*Configuration) GetRevision added in v0.8.9

func (m *Configuration) GetRevision() Revision

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() []*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 {
	// ConfigurationEventType configuration event type
	Type          ConfigurationEventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.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 (*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 ConfigurationEventType

type ConfigurationEventType int32

ConfigurationEventType configuration event types for configuration store

const (
	// CONFIGURATION_EVENT_UNKNOWN indicates unknown configuration store event
	ConfigurationEventType_CONFIGURATION_EVENT_UNKNOWN ConfigurationEventType = 0
	// CONFIGURATION_CREATED indicates the configuration entry in the store is created
	ConfigurationEventType_CONFIGURATION_CREATED ConfigurationEventType = 1
	// CONFIGURATION_UPDATED indicates the configuration entry in the store is updated
	ConfigurationEventType_CONFIGURATION_UPDATED ConfigurationEventType = 2
	// CONFIGURATION_DELETED indicates the configuration entry in the store is deleted
	ConfigurationEventType_CONFIGURATION_DELETED ConfigurationEventType = 3
	// CONFIGURATION_REPLAYED
	ConfigurationEventType_CONFIGURATION_REPLAYED ConfigurationEventType = 4
)

func (ConfigurationEventType) EnumDescriptor

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

func (ConfigurationEventType) String

func (x 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
	// COMPLETE indicates the configuration is COMPLETE
	ConfigurationState_CONFIGURATION_COMPLETE ConfigurationState = 2
)

func (ConfigurationState) EnumDescriptor

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

func (ConfigurationState) String

func (x ConfigurationState) String() string

type ConfigurationStatus

type ConfigurationStatus struct {
	// 'state' is the state of the transaction within a Phase
	State ConfigurationState `protobuf:"varint,1,opt,name=state,proto3,enum=onos.config.v2.ConfigurationState" json:"state,omitempty"`
	// mastershipState mastership info
	MastershipState MastershipState `protobuf:"bytes,2,opt,name=mastership_state,json=mastershipState,proto3" json:"mastership_state"`
}

ConfigurationStatus is the status of a Configuration

func (*ConfigurationStatus) Descriptor

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

func (*ConfigurationStatus) GetMastershipState

func (m *ConfigurationStatus) GetMastershipState() MastershipState

func (*ConfigurationStatus) GetState

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 ID

type ID string

ID is an identifier type

type Index

type Index uint64

Index is the index of an object

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) MarshalTo

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

type MastershipTerm uint64

MastershipTerm mastership term

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"`
}

PathValue is an individual Path/Value combination

func (*PathValue) Descriptor

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

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 Revision

type Revision uint64

Revision is a revision number

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 {
	// 'id' is the unique identifier of the transaction
	// This field should be set prior to persisting the object.
	ID TransactionID `protobuf:"bytes,1,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,2,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
	// 'revision' is the change revision number
	// The revision number is provided by the store and should not be modified by client code.
	// Each unique state of the change will be assigned a unique revision number which can be
	// used for optimistic concurrency control when updating or deleting the change state.
	Revision Revision `protobuf:"varint,3,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"`
	// 'status' is the current lifecycle status of the transaction
	Status TransactionStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status"`
	// 'created' is the time at which the transaction was created
	Created time.Time `protobuf:"bytes,5,opt,name=created,proto3,stdtime" json:"created"`
	// 'updated' is the time at which the transaction was last updated
	Updated time.Time `protobuf:"bytes,6,opt,name=updated,proto3,stdtime" json:"updated"`
	// 'changes' is a set of changes to apply to targets
	// The list of changes should contain only a single change per target/version pair.
	Changes []Change `protobuf:"bytes,7,rep,name=changes,proto3" json:"changes"`
	// 'deleted' is a flag indicating whether this transaction is being deleted by a snapshot
	Deleted bool `protobuf:"varint,8,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// 'dependency' is a reference to the transaction on which this transaction is dependent
	Dependency *TransactionRef `protobuf:"bytes,9,opt,name=dependency,proto3" json:"dependency,omitempty"`
	// 'dependents' is a list of references to transactions that depend on this transaction
	Dependents []TransactionRef `protobuf:"bytes,10,rep,name=dependents,proto3" json:"dependents"`
	// 'username' is the name of the user that made the transaction
	Username string `protobuf:"bytes,11,opt,name=username,proto3" json:"username,omitempty"`
}

Transaction refers to a multi-target transactional change

func (*Transaction) Descriptor

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

func (*Transaction) GetChanges

func (m *Transaction) GetChanges() []Change

func (*Transaction) GetCreated

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

func (*Transaction) GetDeleted

func (m *Transaction) GetDeleted() bool

func (*Transaction) GetDependency

func (m *Transaction) GetDependency() *TransactionRef

func (*Transaction) GetDependents

func (m *Transaction) GetDependents() []TransactionRef

func (*Transaction) GetID

func (m *Transaction) GetID() TransactionID

func (*Transaction) GetIndex

func (m *Transaction) GetIndex() Index

func (*Transaction) GetRevision

func (m *Transaction) GetRevision() Revision

func (*Transaction) GetStatus

func (m *Transaction) GetStatus() TransactionStatus

func (*Transaction) GetUpdated

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

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_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

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

type TransactionEvent

type TransactionEvent struct {
	Type        TransactionEventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.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 (*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 TransactionEventType

type TransactionEventType int32

TransactionEventType transaction event types for transaction store

const (
	TransactionEventType_TRANSACTION_EVENT_UNKNOWN TransactionEventType = 0
	TransactionEventType_TRANSACTION_CREATED       TransactionEventType = 1
	TransactionEventType_TRANSACTION_UPDATED       TransactionEventType = 2
	TransactionEventType_TRANSACTION_DELETED       TransactionEventType = 3
	TransactionEventType_TRANSACTION_REPLAYED      TransactionEventType = 4
)

func (TransactionEventType) EnumDescriptor

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

func (TransactionEventType) String

func (x TransactionEventType) String() string

type TransactionID

type TransactionID string

TransactionID is a transaction identifier type

type TransactionPhase

type TransactionPhase int32

TransactionPhase is the phase of a Transaction

const (
	// TRANSACTION_CHANGE indicates the transaction has been requested
	TransactionPhase_TRANSACTION_CHANGE TransactionPhase = 0
	// TRANSACTION_ROLLBACK indicates a rollback has been requested for the transaction
	TransactionPhase_TRANSACTION_ROLLBACK TransactionPhase = 1
)

func (TransactionPhase) EnumDescriptor

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

func (TransactionPhase) String

func (x TransactionPhase) String() string

type TransactionRef

type TransactionRef struct {
	// Types that are valid to be assigned to Id:
	//	*TransactionRef_None
	//	*TransactionRef_TransactionID
	Id isTransactionRef_Id `protobuf_oneof:"id"`
}

TransactionRef is a reference to a transaction

func (*TransactionRef) Descriptor

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

func (*TransactionRef) GetId

func (m *TransactionRef) GetId() isTransactionRef_Id

func (*TransactionRef) GetNone

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

func (*TransactionRef) GetTransactionID

func (m *TransactionRef) GetTransactionID() TransactionID

func (*TransactionRef) Marshal

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

func (*TransactionRef) MarshalTo

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

func (*TransactionRef) MarshalToSizedBuffer

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

func (*TransactionRef) ProtoMessage

func (*TransactionRef) ProtoMessage()

func (*TransactionRef) Reset

func (m *TransactionRef) Reset()

func (*TransactionRef) Size

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

func (*TransactionRef) String

func (m *TransactionRef) String() string

func (*TransactionRef) Unmarshal

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

func (*TransactionRef) XXX_DiscardUnknown

func (m *TransactionRef) XXX_DiscardUnknown()

func (*TransactionRef) XXX_Marshal

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

func (*TransactionRef) XXX_Merge

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

func (*TransactionRef) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*TransactionRef) XXX_Size

func (m *TransactionRef) XXX_Size() int

func (*TransactionRef) XXX_Unmarshal

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

type TransactionRef_None

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

func (*TransactionRef_None) MarshalTo

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

func (*TransactionRef_None) MarshalToSizedBuffer

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

func (*TransactionRef_None) Size

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

type TransactionRef_TransactionID

type TransactionRef_TransactionID struct {
	TransactionID TransactionID `` /* 129-byte string literal not displayed */
}

func (*TransactionRef_TransactionID) MarshalTo

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

func (*TransactionRef_TransactionID) MarshalToSizedBuffer

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

func (*TransactionRef_TransactionID) Size

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

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_VALIDATED indicates the transaction is validated successfully
	TransactionState_TRANSACTION_VALIDATED TransactionState = 5
	// TRANSACTION_VALIDATION_FAILED indicates the transaction validation is failed
	TransactionState_TRANSACTION_VALIDATION_FAILED TransactionState = 6
)

func (TransactionState) EnumDescriptor

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

func (TransactionState) String

func (x TransactionState) String() string

type TransactionStatus

type TransactionStatus struct {
	// 'phase' is the current phase of the
	Phase TransactionPhase `protobuf:"varint,1,opt,name=phase,proto3,enum=onos.config.v2.TransactionPhase" json:"phase,omitempty"`
	// 'state' is the state of the transaction within a Phase
	State TransactionState `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.TransactionState" json:"state,omitempty"`
}

TransactionStatus is the status of a Transaction

func (*TransactionStatus) Descriptor

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

func (*TransactionStatus) GetPhase

func (m *TransactionStatus) GetPhase() TransactionPhase

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 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