semver

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemVer

type SemVer struct {
	// The major version, e.g 10 for 10.2.3.
	Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
	// The minor version, e.g. 2 for 10.2.3.
	Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
	// The patch version, e.g 3 for 10.2.3.
	Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
	// The pre-release version. Either this field or major/minor/patch fields
	// must be filled. They are mutually exclusive. Pre-release versions are
	// assumed to be earlier than any released versions.
	Prerelease           string   `protobuf:"bytes,4,opt,name=prerelease,proto3" json:"prerelease,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The full version of a given tool.

func (*SemVer) Descriptor

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

func (*SemVer) GetMajor

func (m *SemVer) GetMajor() int32

func (*SemVer) GetMinor

func (m *SemVer) GetMinor() int32

func (*SemVer) GetPatch

func (m *SemVer) GetPatch() int32

func (*SemVer) GetPrerelease

func (m *SemVer) GetPrerelease() string

func (*SemVer) ProtoMessage

func (*SemVer) ProtoMessage()

func (*SemVer) Reset

func (m *SemVer) Reset()

func (*SemVer) String

func (m *SemVer) String() string

func (*SemVer) XXX_DiscardUnknown

func (m *SemVer) XXX_DiscardUnknown()

func (*SemVer) XXX_Marshal

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

func (*SemVer) XXX_Merge

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

func (*SemVer) XXX_Size

func (m *SemVer) XXX_Size() int

func (*SemVer) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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