Documentation ¶
Overview ¶
Package changesetpb is a generated protocol buffer package.
It is generated from these files:
github.com/m3db/m3/src/cluster/generated/proto/changesetpb/changeset.proto
It has these top-level messages:
ChangeSet
Index ¶
- Variables
- type ChangeSet
- func (*ChangeSet) Descriptor() ([]byte, []int)
- func (m *ChangeSet) GetChanges() []byte
- func (m *ChangeSet) GetForVersion() int32
- func (m *ChangeSet) GetState() ChangeSetState
- func (m *ChangeSet) Marshal() (dAtA []byte, err error)
- func (m *ChangeSet) MarshalTo(dAtA []byte) (int, error)
- func (*ChangeSet) ProtoMessage()
- func (m *ChangeSet) Reset()
- func (m *ChangeSet) Size() (n int)
- func (m *ChangeSet) String() string
- func (m *ChangeSet) Unmarshal(dAtA []byte) error
- type ChangeSetState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthChangeset = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowChangeset = fmt.Errorf("proto: integer overflow") )
View Source
var ChangeSetState_name = map[int32]string{
0: "UNKNOWN",
1: "OPEN",
2: "CLOSED",
}
View Source
var ChangeSetState_value = map[string]int32{
"UNKNOWN": 0,
"OPEN": 1,
"CLOSED": 2,
}
Functions ¶
This section is empty.
Types ¶
type ChangeSet ¶
type ChangeSet struct { // for_version is the version of configuration on which this ChangeSet is built ForVersion int32 `protobuf:"varint,1,opt,name=for_version,json=forVersion,proto3" json:"for_version,omitempty"` // state is the state of the ChangeSet State ChangeSetState `protobuf:"varint,2,opt,name=state,proto3,enum=changesetpb.ChangeSetState" json:"state,omitempty"` // changes are the marshalled form of the changes Changes []byte `protobuf:"bytes,3,opt,name=changes,proto3" json:"changes,omitempty"` }
A ChangeSet is a set of changes that are applied together. The exact format of the changes is up to the application; the ChangeSet simply tracks the state of application
func (*ChangeSet) Descriptor ¶
func (*ChangeSet) GetChanges ¶
func (*ChangeSet) GetForVersion ¶
func (*ChangeSet) GetState ¶
func (m *ChangeSet) GetState() ChangeSetState
func (*ChangeSet) ProtoMessage ¶
func (*ChangeSet) ProtoMessage()
type ChangeSetState ¶
type ChangeSetState int32
ChangeSetState tracks the stateof a changeset
const ( ChangeSetState_UNKNOWN ChangeSetState = 0 ChangeSetState_OPEN ChangeSetState = 1 ChangeSetState_CLOSED ChangeSetState = 2 )
func (ChangeSetState) EnumDescriptor ¶
func (ChangeSetState) EnumDescriptor() ([]byte, []int)
func (ChangeSetState) String ¶
func (x ChangeSetState) String() string
Click to show internal directories.
Click to hide internal directories.