runtime

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_runtime_runtime_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Dependency) Descriptor deprecated

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

Deprecated: Use Dependency.ProtoReflect.Descriptor instead.

func (*Dependency) GetPath

func (x *Dependency) GetPath() string

func (*Dependency) GetVersion

func (x *Dependency) GetVersion() string

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) ProtoReflect

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

func (*Dependency) Reset

func (x *Dependency) Reset()

func (*Dependency) String

func (x *Dependency) String() string

func (*Dependency) Validate

func (m *Dependency) Validate() error

Validate checks the field values on Dependency 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 (*Dependency) ValidateAll

func (m *Dependency) ValidateAll() error

ValidateAll checks the field values on Dependency 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 DependencyMultiError, or nil if none found.

type DependencyMultiError

type DependencyMultiError []error

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

func (DependencyMultiError) AllErrors

func (m DependencyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DependencyMultiError) Error

func (m DependencyMultiError) Error() string

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

type DependencyValidationError

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

DependencyValidationError is the validation error returned by Dependency.Validate if the designated constraints aren't met.

func (DependencyValidationError) Cause

func (e DependencyValidationError) Cause() error

Cause function returns cause value.

func (DependencyValidationError) Error

Error satisfies the builtin error interface

func (DependencyValidationError) ErrorName

func (e DependencyValidationError) ErrorName() string

ErrorName returns error name.

func (DependencyValidationError) Field

Field function returns field value.

func (DependencyValidationError) Key

Key function returns key value.

func (DependencyValidationError) Reason

func (e DependencyValidationError) Reason() string

Reason function returns reason value.

type GetRuntimeInfoRequest

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

func (*GetRuntimeInfoRequest) Descriptor deprecated

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

Deprecated: Use GetRuntimeInfoRequest.ProtoReflect.Descriptor instead.

func (*GetRuntimeInfoRequest) ProtoMessage

func (*GetRuntimeInfoRequest) ProtoMessage()

func (*GetRuntimeInfoRequest) ProtoReflect

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

func (*GetRuntimeInfoRequest) Reset

func (x *GetRuntimeInfoRequest) Reset()

func (*GetRuntimeInfoRequest) String

func (x *GetRuntimeInfoRequest) String() string

func (*GetRuntimeInfoRequest) Validate

func (m *GetRuntimeInfoRequest) Validate() error

Validate checks the field values on GetRuntimeInfoRequest 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 (*GetRuntimeInfoRequest) ValidateAll

func (m *GetRuntimeInfoRequest) ValidateAll() error

ValidateAll checks the field values on GetRuntimeInfoRequest 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 GetRuntimeInfoRequestMultiError, or nil if none found.

type GetRuntimeInfoRequestMultiError

type GetRuntimeInfoRequestMultiError []error

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

func (GetRuntimeInfoRequestMultiError) AllErrors

func (m GetRuntimeInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRuntimeInfoRequestMultiError) Error

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

type GetRuntimeInfoRequestValidationError

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

GetRuntimeInfoRequestValidationError is the validation error returned by GetRuntimeInfoRequest.Validate if the designated constraints aren't met.

func (GetRuntimeInfoRequestValidationError) Cause

Cause function returns cause value.

func (GetRuntimeInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRuntimeInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetRuntimeInfoRequestValidationError) Field

Field function returns field value.

func (GetRuntimeInfoRequestValidationError) Key

Key function returns key value.

func (GetRuntimeInfoRequestValidationError) Reason

Reason function returns reason value.

type Runtime

type Runtime struct {

	// release_version is the latest Clouditor release version for this commit
	ReleaseVersion *string `protobuf:"bytes,1,opt,name=release_version,json=releaseVersion,proto3,oneof" json:"release_version,omitempty"`
	// vcs is the used version control system
	Vcs string `protobuf:"bytes,2,opt,name=vcs,proto3" json:"vcs,omitempty"`
	// commit_hash is the current Clouditor commit hash
	CommitHash string `protobuf:"bytes,3,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
	// commit_time is the time of the Clouditor commit
	CommitTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"`
	// golang_version is the used golang version
	GolangVersion string `protobuf:"bytes,5,opt,name=golang_version,json=golangVersion,proto3" json:"golang_version,omitempty"`
	// dependency is a list of used runtime dependencies
	Dependencies []*Dependency `protobuf:"bytes,6,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

func (*Runtime) Descriptor deprecated

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

Deprecated: Use Runtime.ProtoReflect.Descriptor instead.

func (*Runtime) GetCommitHash

func (x *Runtime) GetCommitHash() string

func (*Runtime) GetCommitTime

func (x *Runtime) GetCommitTime() *timestamppb.Timestamp

func (*Runtime) GetDependencies

func (x *Runtime) GetDependencies() []*Dependency

func (*Runtime) GetGolangVersion

func (x *Runtime) GetGolangVersion() string

func (*Runtime) GetReleaseVersion

func (x *Runtime) GetReleaseVersion() string

func (*Runtime) GetVcs

func (x *Runtime) GetVcs() string

func (*Runtime) ProtoMessage

func (*Runtime) ProtoMessage()

func (*Runtime) ProtoReflect

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

func (*Runtime) Reset

func (x *Runtime) Reset()

func (*Runtime) String

func (x *Runtime) String() string

func (*Runtime) Validate

func (m *Runtime) Validate() error

Validate checks the field values on Runtime 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 (*Runtime) ValidateAll

func (m *Runtime) ValidateAll() error

ValidateAll checks the field values on Runtime 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 RuntimeMultiError, or nil if none found.

func (*Runtime) VersionString

func (r *Runtime) VersionString() string

VersionString returns a version. If it is a release version the release version returned, otherwise a pseudo version with a git commit hash or v0.0.0 if no commit hash is known.

type RuntimeMultiError

type RuntimeMultiError []error

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

func (RuntimeMultiError) AllErrors

func (m RuntimeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RuntimeMultiError) Error

func (m RuntimeMultiError) Error() string

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

type RuntimeValidationError

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

RuntimeValidationError is the validation error returned by Runtime.Validate if the designated constraints aren't met.

func (RuntimeValidationError) Cause

func (e RuntimeValidationError) Cause() error

Cause function returns cause value.

func (RuntimeValidationError) Error

func (e RuntimeValidationError) Error() string

Error satisfies the builtin error interface

func (RuntimeValidationError) ErrorName

func (e RuntimeValidationError) ErrorName() string

ErrorName returns error name.

func (RuntimeValidationError) Field

func (e RuntimeValidationError) Field() string

Field function returns field value.

func (RuntimeValidationError) Key

func (e RuntimeValidationError) Key() bool

Key function returns key value.

func (RuntimeValidationError) Reason

func (e RuntimeValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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