versionv1

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VcsType_name = map[int32]string{
		0: "VCS_TYPE_UNSPECIFIED",
		1: "VCS_TYPE_GIT",
	}
	VcsType_value = map[string]int32{
		"VCS_TYPE_UNSPECIFIED": 0,
		"VCS_TYPE_GIT":         1,
	}
)

Enum value maps for VcsType.

View Source
var File_version_v1_version_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GetVersionRequest

type GetVersionRequest struct {
	// contains filtered or unexported fields
}

func (*GetVersionRequest) Descriptor deprecated

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

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect

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

func (*GetVersionRequest) Reset

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (x *GetVersionRequest) String() string

func (*GetVersionRequest) Validate

func (m *GetVersionRequest) Validate() error

Validate checks the field values on GetVersionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetVersionRequest) ValidateAll

func (m *GetVersionRequest) ValidateAll() error

ValidateAll checks the field values on GetVersionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetVersionRequestMultiError, or nil if none found.

type GetVersionRequestMultiError

type GetVersionRequestMultiError []error

GetVersionRequestMultiError is an error wrapping multiple validation errors returned by GetVersionRequest.ValidateAll() if the designated constraints aren't met.

func (GetVersionRequestMultiError) AllErrors

func (m GetVersionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetVersionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetVersionRequestValidationError

type GetVersionRequestValidationError struct {
	// contains filtered or unexported fields
}

GetVersionRequestValidationError is the validation error returned by GetVersionRequest.Validate if the designated constraints aren't met.

func (GetVersionRequestValidationError) Cause

Cause function returns cause value.

func (GetVersionRequestValidationError) Error

Error satisfies the builtin error interface

func (GetVersionRequestValidationError) ErrorName

ErrorName returns error name.

func (GetVersionRequestValidationError) Field

Field function returns field value.

func (GetVersionRequestValidationError) Key

Key function returns key value.

func (GetVersionRequestValidationError) Reason

Reason function returns reason value.

type GetVersionResponse

type GetVersionResponse struct {
	Error   *v1.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	Version *Version  `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVersionResponse) Descriptor deprecated

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

Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.

func (*GetVersionResponse) GetError

func (x *GetVersionResponse) GetError() *v1.Error

func (*GetVersionResponse) GetVersion

func (x *GetVersionResponse) GetVersion() *Version

func (*GetVersionResponse) ProtoMessage

func (*GetVersionResponse) ProtoMessage()

func (*GetVersionResponse) ProtoReflect

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

func (*GetVersionResponse) Reset

func (x *GetVersionResponse) Reset()

func (*GetVersionResponse) String

func (x *GetVersionResponse) String() string

func (*GetVersionResponse) Validate

func (m *GetVersionResponse) Validate() error

Validate checks the field values on GetVersionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetVersionResponse) ValidateAll

func (m *GetVersionResponse) ValidateAll() error

ValidateAll checks the field values on GetVersionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetVersionResponseMultiError, or nil if none found.

type GetVersionResponseMultiError

type GetVersionResponseMultiError []error

GetVersionResponseMultiError is an error wrapping multiple validation errors returned by GetVersionResponse.ValidateAll() if the designated constraints aren't met.

func (GetVersionResponseMultiError) AllErrors

func (m GetVersionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetVersionResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetVersionResponseValidationError

type GetVersionResponseValidationError struct {
	// contains filtered or unexported fields
}

GetVersionResponseValidationError is the validation error returned by GetVersionResponse.Validate if the designated constraints aren't met.

func (GetVersionResponseValidationError) Cause

Cause function returns cause value.

func (GetVersionResponseValidationError) Error

Error satisfies the builtin error interface

func (GetVersionResponseValidationError) ErrorName

ErrorName returns error name.

func (GetVersionResponseValidationError) Field

Field function returns field value.

func (GetVersionResponseValidationError) Key

Key function returns key value.

func (GetVersionResponseValidationError) Reason

Reason function returns reason value.

type VcsType

type VcsType int32

VcsType is the type of version control system.

const (
	VcsType_VCS_TYPE_UNSPECIFIED VcsType = 0
	VcsType_VCS_TYPE_GIT         VcsType = 1
)

func (VcsType) Descriptor

func (VcsType) Descriptor() protoreflect.EnumDescriptor

func (VcsType) Enum

func (x VcsType) Enum() *VcsType

func (VcsType) EnumDescriptor deprecated

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

Deprecated: Use VcsType.Descriptor instead.

func (VcsType) Number

func (x VcsType) Number() protoreflect.EnumNumber

func (VcsType) String

func (x VcsType) String() string

func (VcsType) Type

func (VcsType) Type() protoreflect.EnumType

type Version

type Version struct {
	Vcs         VcsType `protobuf:"varint,1,opt,name=vcs,proto3,enum=version.v1.VcsType" json:"vcs,omitempty"`
	ServiceName string  `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	RefName     string  `protobuf:"bytes,3,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"`
	Commit      string  `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"`
	BuildTime   string  `protobuf:"bytes,5,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
	FullVersion string  `protobuf:"bytes,6,opt,name=full_version,json=fullVersion,proto3" json:"full_version,omitempty"`
	// contains filtered or unexported fields
}

Version is the version information of the service.

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetBuildTime

func (x *Version) GetBuildTime() string

func (*Version) GetCommit

func (x *Version) GetCommit() string

func (*Version) GetFullVersion

func (x *Version) GetFullVersion() string

func (*Version) GetRefName

func (x *Version) GetRefName() string

func (*Version) GetServiceName

func (x *Version) GetServiceName() string

func (*Version) GetVcs

func (x *Version) GetVcs() VcsType

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

func (*Version) Validate

func (m *Version) Validate() error

Validate checks the field values on Version with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Version) ValidateAll

func (m *Version) ValidateAll() error

ValidateAll checks the field values on Version with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VersionMultiError, or nil if none found.

type VersionMultiError

type VersionMultiError []error

VersionMultiError is an error wrapping multiple validation errors returned by Version.ValidateAll() if the designated constraints aren't met.

func (VersionMultiError) AllErrors

func (m VersionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VersionMultiError) Error

func (m VersionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type VersionValidationError

type VersionValidationError struct {
	// contains filtered or unexported fields
}

VersionValidationError is the validation error returned by Version.Validate if the designated constraints aren't met.

func (VersionValidationError) Cause

func (e VersionValidationError) Cause() error

Cause function returns cause value.

func (VersionValidationError) Error

func (e VersionValidationError) Error() string

Error satisfies the builtin error interface

func (VersionValidationError) ErrorName

func (e VersionValidationError) ErrorName() string

ErrorName returns error name.

func (VersionValidationError) Field

func (e VersionValidationError) Field() string

Field function returns field value.

func (VersionValidationError) Key

func (e VersionValidationError) Key() bool

Key function returns key value.

func (VersionValidationError) Reason

func (e VersionValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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