entity

package
v17.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 18 Imported by: 0

README

Entities

This package holds type definitions of entities that can be used in APIs. Types can be used in public APIs and internally.

Don't dump anything and everything here. This package is for commonly used types that exist or used outside this project too.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_entity_entity_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AgentMeta

type AgentMeta struct {
	Version           string             `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	CommitId          string             `protobuf:"bytes,2,opt,name=commit_id,proto3" json:"commit_id,omitempty"`
	PodNamespace      string             `protobuf:"bytes,3,opt,name=pod_namespace,proto3" json:"pod_namespace,omitempty"`
	PodName           string             `protobuf:"bytes,4,opt,name=pod_name,proto3" json:"pod_name,omitempty"`
	KubernetesVersion *KubernetesVersion `protobuf:"bytes,5,opt,name=kubernetes_version,proto3" json:"kubernetes_version,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentMeta) Descriptor deprecated

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

Deprecated: Use AgentMeta.ProtoReflect.Descriptor instead.

func (*AgentMeta) GetCommitId

func (x *AgentMeta) GetCommitId() string

func (*AgentMeta) GetKubernetesVersion

func (x *AgentMeta) GetKubernetesVersion() *KubernetesVersion

func (*AgentMeta) GetPodName

func (x *AgentMeta) GetPodName() string

func (*AgentMeta) GetPodNamespace

func (x *AgentMeta) GetPodNamespace() string

func (*AgentMeta) GetVersion

func (x *AgentMeta) GetVersion() string

func (*AgentMeta) ProtoMessage

func (*AgentMeta) ProtoMessage()

func (*AgentMeta) ProtoReflect

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

func (*AgentMeta) Reset

func (x *AgentMeta) Reset()

func (*AgentMeta) String

func (x *AgentMeta) String() string

func (*AgentMeta) Validate

func (m *AgentMeta) Validate() error

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

func (m *AgentMeta) ValidateAll() error

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

type AgentMetaMultiError

type AgentMetaMultiError []error

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

func (AgentMetaMultiError) AllErrors

func (m AgentMetaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AgentMetaMultiError) Error

func (m AgentMetaMultiError) Error() string

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

type AgentMetaValidationError

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

AgentMetaValidationError is the validation error returned by AgentMeta.Validate if the designated constraints aren't met.

func (AgentMetaValidationError) Cause

func (e AgentMetaValidationError) Cause() error

Cause function returns cause value.

func (AgentMetaValidationError) Error

func (e AgentMetaValidationError) Error() string

Error satisfies the builtin error interface

func (AgentMetaValidationError) ErrorName

func (e AgentMetaValidationError) ErrorName() string

ErrorName returns error name.

func (AgentMetaValidationError) Field

func (e AgentMetaValidationError) Field() string

Field function returns field value.

func (AgentMetaValidationError) Key

Key function returns key value.

func (AgentMetaValidationError) Reason

func (e AgentMetaValidationError) Reason() string

Reason function returns reason value.

type GitalyInfo

type GitalyInfo struct {
	Address  string            `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Token    string            `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Features map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GitalyInfo) Descriptor deprecated

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

Deprecated: Use GitalyInfo.ProtoReflect.Descriptor instead.

func (*GitalyInfo) GetAddress

func (x *GitalyInfo) GetAddress() string

func (*GitalyInfo) GetFeatures

func (x *GitalyInfo) GetFeatures() map[string]string

func (*GitalyInfo) GetToken

func (x *GitalyInfo) GetToken() string

func (*GitalyInfo) ProtoMessage

func (*GitalyInfo) ProtoMessage()

func (*GitalyInfo) ProtoReflect

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

func (*GitalyInfo) Reset

func (x *GitalyInfo) Reset()

func (*GitalyInfo) String

func (x *GitalyInfo) String() string

func (*GitalyInfo) Validate

func (m *GitalyInfo) Validate() error

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

func (m *GitalyInfo) ValidateAll() error

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

type GitalyInfoMultiError

type GitalyInfoMultiError []error

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

func (GitalyInfoMultiError) AllErrors

func (m GitalyInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitalyInfoMultiError) Error

func (m GitalyInfoMultiError) Error() string

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

type GitalyInfoValidationError

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

GitalyInfoValidationError is the validation error returned by GitalyInfo.Validate if the designated constraints aren't met.

func (GitalyInfoValidationError) Cause

func (e GitalyInfoValidationError) Cause() error

Cause function returns cause value.

func (GitalyInfoValidationError) Error

Error satisfies the builtin error interface

func (GitalyInfoValidationError) ErrorName

func (e GitalyInfoValidationError) ErrorName() string

ErrorName returns error name.

func (GitalyInfoValidationError) Field

Field function returns field value.

func (GitalyInfoValidationError) Key

Key function returns key value.

func (GitalyInfoValidationError) Reason

func (e GitalyInfoValidationError) Reason() string

Reason function returns reason value.

type GitalyRepository

type GitalyRepository struct {
	StorageName                   string   `protobuf:"bytes,2,opt,name=storage_name,proto3" json:"storage_name,omitempty"`
	RelativePath                  string   `protobuf:"bytes,3,opt,name=relative_path,proto3" json:"relative_path,omitempty"`
	GitObjectDirectory            string   `protobuf:"bytes,4,opt,name=git_object_directory,proto3" json:"git_object_directory,omitempty"`
	GitAlternateObjectDirectories []string `protobuf:"bytes,5,rep,name=git_alternate_object_directories,proto3" json:"git_alternate_object_directories,omitempty"`
	GlRepository                  string   `protobuf:"bytes,6,opt,name=gl_repository,proto3" json:"gl_repository,omitempty"`
	GlProjectPath                 string   `protobuf:"bytes,8,opt,name=gl_project_path,proto3" json:"gl_project_path,omitempty"`
	// contains filtered or unexported fields
}

func (*GitalyRepository) Descriptor deprecated

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

Deprecated: Use GitalyRepository.ProtoReflect.Descriptor instead.

func (*GitalyRepository) GetGitAlternateObjectDirectories

func (x *GitalyRepository) GetGitAlternateObjectDirectories() []string

func (*GitalyRepository) GetGitObjectDirectory

func (x *GitalyRepository) GetGitObjectDirectory() string

func (*GitalyRepository) GetGlProjectPath

func (x *GitalyRepository) GetGlProjectPath() string

func (*GitalyRepository) GetGlRepository

func (x *GitalyRepository) GetGlRepository() string

func (*GitalyRepository) GetRelativePath

func (x *GitalyRepository) GetRelativePath() string

func (*GitalyRepository) GetStorageName

func (x *GitalyRepository) GetStorageName() string

func (*GitalyRepository) ProtoMessage

func (*GitalyRepository) ProtoMessage()

func (*GitalyRepository) ProtoReflect

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

func (*GitalyRepository) Reset

func (x *GitalyRepository) Reset()

func (*GitalyRepository) String

func (x *GitalyRepository) String() string

func (*GitalyRepository) ToGitalyRepository

func (r *GitalyRepository) ToGitalyRepository() *gitalypb.Repository

func (*GitalyRepository) Validate

func (m *GitalyRepository) Validate() error

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

func (m *GitalyRepository) ValidateAll() error

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

type GitalyRepositoryMultiError

type GitalyRepositoryMultiError []error

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

func (GitalyRepositoryMultiError) AllErrors

func (m GitalyRepositoryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitalyRepositoryMultiError) Error

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

type GitalyRepositoryValidationError

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

GitalyRepositoryValidationError is the validation error returned by GitalyRepository.Validate if the designated constraints aren't met.

func (GitalyRepositoryValidationError) Cause

Cause function returns cause value.

func (GitalyRepositoryValidationError) Error

Error satisfies the builtin error interface

func (GitalyRepositoryValidationError) ErrorName

ErrorName returns error name.

func (GitalyRepositoryValidationError) Field

Field function returns field value.

func (GitalyRepositoryValidationError) Key

Key function returns key value.

func (GitalyRepositoryValidationError) Reason

Reason function returns reason value.

type KubernetesVersion

type KubernetesVersion struct {
	Major      string `protobuf:"bytes,1,opt,name=major,proto3" json:"major,omitempty"`
	Minor      string `protobuf:"bytes,2,opt,name=minor,proto3" json:"minor,omitempty"`
	GitVersion string `protobuf:"bytes,3,opt,name=git_version,proto3" json:"git_version,omitempty"`
	Platform   string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesVersion) Descriptor deprecated

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

Deprecated: Use KubernetesVersion.ProtoReflect.Descriptor instead.

func (*KubernetesVersion) GetGitVersion

func (x *KubernetesVersion) GetGitVersion() string

func (*KubernetesVersion) GetMajor

func (x *KubernetesVersion) GetMajor() string

func (*KubernetesVersion) GetMinor

func (x *KubernetesVersion) GetMinor() string

func (*KubernetesVersion) GetPlatform

func (x *KubernetesVersion) GetPlatform() string

func (*KubernetesVersion) ProtoMessage

func (*KubernetesVersion) ProtoMessage()

func (*KubernetesVersion) ProtoReflect

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

func (*KubernetesVersion) Reset

func (x *KubernetesVersion) Reset()

func (*KubernetesVersion) String

func (x *KubernetesVersion) String() string

func (*KubernetesVersion) Validate

func (m *KubernetesVersion) Validate() error

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

func (m *KubernetesVersion) ValidateAll() error

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

type KubernetesVersionMultiError

type KubernetesVersionMultiError []error

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

func (KubernetesVersionMultiError) AllErrors

func (m KubernetesVersionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (KubernetesVersionMultiError) Error

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

type KubernetesVersionValidationError

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

KubernetesVersionValidationError is the validation error returned by KubernetesVersion.Validate if the designated constraints aren't met.

func (KubernetesVersionValidationError) Cause

Cause function returns cause value.

func (KubernetesVersionValidationError) Error

Error satisfies the builtin error interface

func (KubernetesVersionValidationError) ErrorName

ErrorName returns error name.

func (KubernetesVersionValidationError) Field

Field function returns field value.

func (KubernetesVersionValidationError) Key

Key function returns key value.

func (KubernetesVersionValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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