changesetpb

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 5 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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) Descriptor() ([]byte, []int)

func (*ChangeSet) GetChanges

func (m *ChangeSet) GetChanges() []byte

func (*ChangeSet) GetForVersion

func (m *ChangeSet) GetForVersion() int32

func (*ChangeSet) GetState

func (m *ChangeSet) GetState() ChangeSetState

func (*ChangeSet) Marshal

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

func (*ChangeSet) MarshalTo

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

func (*ChangeSet) ProtoMessage

func (*ChangeSet) ProtoMessage()

func (*ChangeSet) Reset

func (m *ChangeSet) Reset()

func (*ChangeSet) Size

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

func (*ChangeSet) String

func (m *ChangeSet) String() string

func (*ChangeSet) Unmarshal

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

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

Jump to

Keyboard shortcuts

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