model

package
v0.0.0-...-51115e0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_model_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FileModel

type FileModel struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Path          string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Size          uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Username      string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Namespace     string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Pod           string `protobuf:"bytes,6,opt,name=pod,proto3" json:"pod,omitempty"`
	Container     string `protobuf:"bytes,7,opt,name=container,proto3" json:"container,omitempty"`
	ContainerPath string `protobuf:"bytes,8,opt,name=container_path,json=containerPath,proto3" json:"container_path,omitempty"`
	CreatedAt     string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt     string `protobuf:"bytes,11,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	IsDeleted     bool   `protobuf:"varint,12,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*FileModel) Descriptor deprecated

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

Deprecated: Use FileModel.ProtoReflect.Descriptor instead.

func (*FileModel) GetContainer

func (x *FileModel) GetContainer() string

func (*FileModel) GetContainerPath

func (x *FileModel) GetContainerPath() string

func (*FileModel) GetCreatedAt

func (x *FileModel) GetCreatedAt() string

func (*FileModel) GetDeletedAt

func (x *FileModel) GetDeletedAt() string

func (*FileModel) GetId

func (x *FileModel) GetId() int64

func (*FileModel) GetIsDeleted

func (x *FileModel) GetIsDeleted() bool

func (*FileModel) GetNamespace

func (x *FileModel) GetNamespace() string

func (*FileModel) GetPath

func (x *FileModel) GetPath() string

func (*FileModel) GetPod

func (x *FileModel) GetPod() string

func (*FileModel) GetSize

func (x *FileModel) GetSize() uint64

func (*FileModel) GetUpdatedAt

func (x *FileModel) GetUpdatedAt() string

func (*FileModel) GetUsername

func (x *FileModel) GetUsername() string

func (*FileModel) ProtoMessage

func (*FileModel) ProtoMessage()

func (*FileModel) ProtoReflect

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

func (*FileModel) Reset

func (x *FileModel) Reset()

func (*FileModel) String

func (x *FileModel) String() string

func (*FileModel) Validate

func (m *FileModel) Validate() error

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

func (m *FileModel) ValidateAll() error

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

type FileModelMultiError

type FileModelMultiError []error

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

func (FileModelMultiError) AllErrors

func (m FileModelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileModelMultiError) Error

func (m FileModelMultiError) Error() string

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

type FileModelValidationError

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

FileModelValidationError is the validation error returned by FileModel.Validate if the designated constraints aren't met.

func (FileModelValidationError) Cause

func (e FileModelValidationError) Cause() error

Cause function returns cause value.

func (FileModelValidationError) Error

func (e FileModelValidationError) Error() string

Error satisfies the builtin error interface

func (FileModelValidationError) ErrorName

func (e FileModelValidationError) ErrorName() string

ErrorName returns error name.

func (FileModelValidationError) Field

func (e FileModelValidationError) Field() string

Field function returns field value.

func (FileModelValidationError) Key

Key function returns key value.

func (FileModelValidationError) Reason

func (e FileModelValidationError) Reason() string

Reason function returns reason value.

type GitlabProjectModel

type GitlabProjectModel struct {
	Id              int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DefaultBranch   string `protobuf:"bytes,2,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch,omitempty"`
	Name            string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	GitlabProjectId int64  `protobuf:"varint,4,opt,name=gitlab_project_id,json=gitlabProjectId,proto3" json:"gitlab_project_id,omitempty"`
	Enabled         bool   `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"`
	GlobalEnabled   bool   `protobuf:"varint,6,opt,name=global_enabled,json=globalEnabled,proto3" json:"global_enabled,omitempty"`
	GlobalConfig    string `protobuf:"bytes,7,opt,name=global_config,json=globalConfig,proto3" json:"global_config,omitempty"`
	CreatedAt       string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt       string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*GitlabProjectModel) Descriptor deprecated

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

Deprecated: Use GitlabProjectModel.ProtoReflect.Descriptor instead.

func (*GitlabProjectModel) GetCreatedAt

func (x *GitlabProjectModel) GetCreatedAt() string

func (*GitlabProjectModel) GetDefaultBranch

func (x *GitlabProjectModel) GetDefaultBranch() string

func (*GitlabProjectModel) GetEnabled

func (x *GitlabProjectModel) GetEnabled() bool

func (*GitlabProjectModel) GetGitlabProjectId

func (x *GitlabProjectModel) GetGitlabProjectId() int64

func (*GitlabProjectModel) GetGlobalConfig

func (x *GitlabProjectModel) GetGlobalConfig() string

func (*GitlabProjectModel) GetGlobalEnabled

func (x *GitlabProjectModel) GetGlobalEnabled() bool

func (*GitlabProjectModel) GetId

func (x *GitlabProjectModel) GetId() int64

func (*GitlabProjectModel) GetName

func (x *GitlabProjectModel) GetName() string

func (*GitlabProjectModel) GetUpdatedAt

func (x *GitlabProjectModel) GetUpdatedAt() string

func (*GitlabProjectModel) ProtoMessage

func (*GitlabProjectModel) ProtoMessage()

func (*GitlabProjectModel) ProtoReflect

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

func (*GitlabProjectModel) Reset

func (x *GitlabProjectModel) Reset()

func (*GitlabProjectModel) String

func (x *GitlabProjectModel) String() string

func (*GitlabProjectModel) Validate

func (m *GitlabProjectModel) Validate() error

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

func (m *GitlabProjectModel) ValidateAll() error

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

type GitlabProjectModelMultiError

type GitlabProjectModelMultiError []error

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

func (GitlabProjectModelMultiError) AllErrors

func (m GitlabProjectModelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitlabProjectModelMultiError) Error

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

type GitlabProjectModelValidationError

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

GitlabProjectModelValidationError is the validation error returned by GitlabProjectModel.Validate if the designated constraints aren't met.

func (GitlabProjectModelValidationError) Cause

Cause function returns cause value.

func (GitlabProjectModelValidationError) Error

Error satisfies the builtin error interface

func (GitlabProjectModelValidationError) ErrorName

ErrorName returns error name.

func (GitlabProjectModelValidationError) Field

Field function returns field value.

func (GitlabProjectModelValidationError) Key

Key function returns key value.

func (GitlabProjectModelValidationError) Reason

Reason function returns reason value.

type NamespaceModel

type NamespaceModel struct {
	Id               int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name             string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ImagePullSecrets []string        `protobuf:"bytes,3,rep,name=image_pull_secrets,json=imagePullSecrets,proto3" json:"image_pull_secrets,omitempty"`
	CreatedAt        string          `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt        string          `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Projects         []*ProjectModel `protobuf:"bytes,7,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceModel) Descriptor deprecated

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

Deprecated: Use NamespaceModel.ProtoReflect.Descriptor instead.

func (*NamespaceModel) GetCreatedAt

func (x *NamespaceModel) GetCreatedAt() string

func (*NamespaceModel) GetId

func (x *NamespaceModel) GetId() int64

func (*NamespaceModel) GetImagePullSecrets

func (x *NamespaceModel) GetImagePullSecrets() []string

func (*NamespaceModel) GetName

func (x *NamespaceModel) GetName() string

func (*NamespaceModel) GetProjects

func (x *NamespaceModel) GetProjects() []*ProjectModel

func (*NamespaceModel) GetUpdatedAt

func (x *NamespaceModel) GetUpdatedAt() string

func (*NamespaceModel) ProtoMessage

func (*NamespaceModel) ProtoMessage()

func (*NamespaceModel) ProtoReflect

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

func (*NamespaceModel) Reset

func (x *NamespaceModel) Reset()

func (*NamespaceModel) String

func (x *NamespaceModel) String() string

func (*NamespaceModel) Validate

func (m *NamespaceModel) Validate() error

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

func (m *NamespaceModel) ValidateAll() error

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

type NamespaceModelMultiError

type NamespaceModelMultiError []error

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

func (NamespaceModelMultiError) AllErrors

func (m NamespaceModelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NamespaceModelMultiError) Error

func (m NamespaceModelMultiError) Error() string

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

type NamespaceModelValidationError

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

NamespaceModelValidationError is the validation error returned by NamespaceModel.Validate if the designated constraints aren't met.

func (NamespaceModelValidationError) Cause

Cause function returns cause value.

func (NamespaceModelValidationError) Error

Error satisfies the builtin error interface

func (NamespaceModelValidationError) ErrorName

func (e NamespaceModelValidationError) ErrorName() string

ErrorName returns error name.

func (NamespaceModelValidationError) Field

Field function returns field value.

func (NamespaceModelValidationError) Key

Key function returns key value.

func (NamespaceModelValidationError) Reason

Reason function returns reason value.

type ProjectModel

type ProjectModel struct {
	Id              int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name            string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	GitlabProjectId int64           `protobuf:"varint,3,opt,name=gitlab_project_id,json=gitlabProjectId,proto3" json:"gitlab_project_id,omitempty"`
	GitlabBranch    string          `protobuf:"bytes,4,opt,name=gitlab_branch,json=gitlabBranch,proto3" json:"gitlab_branch,omitempty"`
	GitlabCommit    string          `protobuf:"bytes,5,opt,name=gitlab_commit,json=gitlabCommit,proto3" json:"gitlab_commit,omitempty"`
	Config          string          `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
	OverrideValues  string          `protobuf:"bytes,7,opt,name=override_values,json=overrideValues,proto3" json:"override_values,omitempty"`
	DockerImage     string          `protobuf:"bytes,8,opt,name=docker_image,json=dockerImage,proto3" json:"docker_image,omitempty"`
	PodSelectors    string          `protobuf:"bytes,9,opt,name=pod_selectors,json=podSelectors,proto3" json:"pod_selectors,omitempty"`
	NamespaceId     int64           `protobuf:"varint,10,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	Atomic          bool            `protobuf:"varint,11,opt,name=atomic,proto3" json:"atomic,omitempty"`
	CreatedAt       string          `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt       string          `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	ExtraValues     string          `protobuf:"bytes,14,opt,name=extra_values,json=extraValues,proto3" json:"extra_values,omitempty"`
	Namespace       *NamespaceModel `protobuf:"bytes,15,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectModel) Descriptor deprecated

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

Deprecated: Use ProjectModel.ProtoReflect.Descriptor instead.

func (*ProjectModel) GetAtomic

func (x *ProjectModel) GetAtomic() bool

func (*ProjectModel) GetConfig

func (x *ProjectModel) GetConfig() string

func (*ProjectModel) GetCreatedAt

func (x *ProjectModel) GetCreatedAt() string

func (*ProjectModel) GetDockerImage

func (x *ProjectModel) GetDockerImage() string

func (*ProjectModel) GetExtraValues

func (x *ProjectModel) GetExtraValues() string

func (*ProjectModel) GetGitlabBranch

func (x *ProjectModel) GetGitlabBranch() string

func (*ProjectModel) GetGitlabCommit

func (x *ProjectModel) GetGitlabCommit() string

func (*ProjectModel) GetGitlabProjectId

func (x *ProjectModel) GetGitlabProjectId() int64

func (*ProjectModel) GetId

func (x *ProjectModel) GetId() int64

func (*ProjectModel) GetName

func (x *ProjectModel) GetName() string

func (*ProjectModel) GetNamespace

func (x *ProjectModel) GetNamespace() *NamespaceModel

func (*ProjectModel) GetNamespaceId

func (x *ProjectModel) GetNamespaceId() int64

func (*ProjectModel) GetOverrideValues

func (x *ProjectModel) GetOverrideValues() string

func (*ProjectModel) GetPodSelectors

func (x *ProjectModel) GetPodSelectors() string

func (*ProjectModel) GetUpdatedAt

func (x *ProjectModel) GetUpdatedAt() string

func (*ProjectModel) ProtoMessage

func (*ProjectModel) ProtoMessage()

func (*ProjectModel) ProtoReflect

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

func (*ProjectModel) Reset

func (x *ProjectModel) Reset()

func (*ProjectModel) String

func (x *ProjectModel) String() string

func (*ProjectModel) Validate

func (m *ProjectModel) Validate() error

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

func (m *ProjectModel) ValidateAll() error

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

type ProjectModelMultiError

type ProjectModelMultiError []error

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

func (ProjectModelMultiError) AllErrors

func (m ProjectModelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectModelMultiError) Error

func (m ProjectModelMultiError) Error() string

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

type ProjectModelValidationError

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

ProjectModelValidationError is the validation error returned by ProjectModel.Validate if the designated constraints aren't met.

func (ProjectModelValidationError) Cause

Cause function returns cause value.

func (ProjectModelValidationError) Error

Error satisfies the builtin error interface

func (ProjectModelValidationError) ErrorName

func (e ProjectModelValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectModelValidationError) Field

Field function returns field value.

func (ProjectModelValidationError) Key

Key function returns key value.

func (ProjectModelValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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