version

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_util_version_version_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CliBuildInformation

type CliBuildInformation struct {
	CliBuildVersion   *SemVer `protobuf:"bytes,1,opt,name=cli_build_version,json=cliBuildVersion,proto3" json:"cli_build_version,omitempty"`
	CliMinimalVersion *SemVer `protobuf:"bytes,2,opt,name=cli_minimal_version,json=cliMinimalVersion,proto3" json:"cli_minimal_version,omitempty"`
	// contains filtered or unexported fields
}

func (*CliBuildInformation) Descriptor deprecated

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

Deprecated: Use CliBuildInformation.ProtoReflect.Descriptor instead.

func (*CliBuildInformation) GetCliBuildVersion

func (x *CliBuildInformation) GetCliBuildVersion() *SemVer

func (*CliBuildInformation) GetCliMinimalVersion

func (x *CliBuildInformation) GetCliMinimalVersion() *SemVer

func (*CliBuildInformation) ProtoMessage

func (*CliBuildInformation) ProtoMessage()

func (*CliBuildInformation) ProtoReflect

func (x *CliBuildInformation) ProtoReflect() protoreflect.Message

func (*CliBuildInformation) Reset

func (x *CliBuildInformation) Reset()

func (*CliBuildInformation) String

func (x *CliBuildInformation) String() string

type CliVersionHandler

type CliVersionHandler interface {
	CliVersionInformation(ctx context.Context) (*CliBuildInformation, error)
}

type SemVer

type SemVer struct {
	Major      uint64 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
	Minor      uint64 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
	Patch      uint64 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
	Prerelease string `protobuf:"bytes,4,opt,name=prerelease,proto3" json:"prerelease,omitempty"`
	Build      string `protobuf:"bytes,5,opt,name=build,proto3" json:"build,omitempty"`
	// contains filtered or unexported fields
}

func ToSemVer

func ToSemVer(version *semver.Version) *SemVer

func (*SemVer) Descriptor deprecated

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

Deprecated: Use SemVer.ProtoReflect.Descriptor instead.

func (*SemVer) GetBuild

func (x *SemVer) GetBuild() string

func (*SemVer) GetMajor

func (x *SemVer) GetMajor() uint64

func (*SemVer) GetMinor

func (x *SemVer) GetMinor() uint64

func (*SemVer) GetPatch

func (x *SemVer) GetPatch() uint64

func (*SemVer) GetPrerelease

func (x *SemVer) GetPrerelease() string

func (*SemVer) ProtoMessage

func (*SemVer) ProtoMessage()

func (*SemVer) ProtoReflect

func (x *SemVer) ProtoReflect() protoreflect.Message

func (*SemVer) Reset

func (x *SemVer) Reset()

func (*SemVer) String

func (x *SemVer) String() string

func (*SemVer) ToVersion

func (v *SemVer) ToVersion() *semver.Version

Jump to

Keyboard shortcuts

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