project

package
v4.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Package project is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Project_List_FullMethodName          = "/project.Project/List"
	Project_Apply_FullMethodName         = "/project.Project/Apply"
	Project_ApplyDryRun_FullMethodName   = "/project.Project/ApplyDryRun"
	Project_Show_FullMethodName          = "/project.Project/Show"
	Project_Version_FullMethodName       = "/project.Project/Version"
	Project_Delete_FullMethodName        = "/project.Project/Delete"
	Project_AllContainers_FullMethodName = "/project.Project/AllContainers"
	Project_HostVariables_FullMethodName = "/project.Project/HostVariables"
)

Variables

View Source
var File_project_project_proto protoreflect.FileDescriptor
View Source
var Project_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "project.Project",
	HandlerType: (*ProjectServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Project_List_Handler,
		},
		{
			MethodName: "ApplyDryRun",
			Handler:    _Project_ApplyDryRun_Handler,
		},
		{
			MethodName: "Show",
			Handler:    _Project_Show_Handler,
		},
		{
			MethodName: "Version",
			Handler:    _Project_Version_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Project_Delete_Handler,
		},
		{
			MethodName: "AllContainers",
			Handler:    _Project_AllContainers_Handler,
		},
		{
			MethodName: "HostVariables",
			Handler:    _Project_HostVariables_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Apply",
			Handler:       _Project_Apply_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "project/project.proto",
}

Project_ServiceDesc is the grpc.ServiceDesc for Project service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterProjectHandler

func RegisterProjectHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProjectHandler registers the http handlers for service Project to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProjectHandlerClient

func RegisterProjectHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectClient) error

RegisterProjectHandlerClient registers the http handlers for service Project to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProjectClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProjectClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProjectClient" to call the correct interceptors.

func RegisterProjectHandlerFromEndpoint

func RegisterProjectHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProjectHandlerFromEndpoint is same as RegisterProjectHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProjectHandlerServer

func RegisterProjectHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServer) error

RegisterProjectHandlerServer registers the http handlers for service Project to "mux". UnaryRPC :call ProjectServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProjectHandlerFromEndpoint instead.

func RegisterProjectServer

func RegisterProjectServer(s grpc.ServiceRegistrar, srv ProjectServer)

Types

type AllContainersRequest

type AllContainersRequest struct {
	ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AllContainersRequest) Descriptor deprecated

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

Deprecated: Use AllContainersRequest.ProtoReflect.Descriptor instead.

func (*AllContainersRequest) GetProjectId

func (x *AllContainersRequest) GetProjectId() int64

func (*AllContainersRequest) ProtoMessage

func (*AllContainersRequest) ProtoMessage()

func (*AllContainersRequest) ProtoReflect

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

func (*AllContainersRequest) Reset

func (x *AllContainersRequest) Reset()

func (*AllContainersRequest) String

func (x *AllContainersRequest) String() string

func (*AllContainersRequest) Validate

func (m *AllContainersRequest) Validate() error

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

func (m *AllContainersRequest) ValidateAll() error

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

type AllContainersRequestMultiError

type AllContainersRequestMultiError []error

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

func (AllContainersRequestMultiError) AllErrors

func (m AllContainersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllContainersRequestMultiError) Error

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

type AllContainersRequestValidationError

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

AllContainersRequestValidationError is the validation error returned by AllContainersRequest.Validate if the designated constraints aren't met.

func (AllContainersRequestValidationError) Cause

Cause function returns cause value.

func (AllContainersRequestValidationError) Error

Error satisfies the builtin error interface

func (AllContainersRequestValidationError) ErrorName

ErrorName returns error name.

func (AllContainersRequestValidationError) Field

Field function returns field value.

func (AllContainersRequestValidationError) Key

Key function returns key value.

func (AllContainersRequestValidationError) Reason

Reason function returns reason value.

type AllContainersResponse

type AllContainersResponse struct {
	Items []*types.StateContainer `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*AllContainersResponse) Descriptor deprecated

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

Deprecated: Use AllContainersResponse.ProtoReflect.Descriptor instead.

func (*AllContainersResponse) GetItems

func (x *AllContainersResponse) GetItems() []*types.StateContainer

func (*AllContainersResponse) ProtoMessage

func (*AllContainersResponse) ProtoMessage()

func (*AllContainersResponse) ProtoReflect

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

func (*AllContainersResponse) Reset

func (x *AllContainersResponse) Reset()

func (*AllContainersResponse) String

func (x *AllContainersResponse) String() string

func (*AllContainersResponse) Validate

func (m *AllContainersResponse) Validate() error

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

func (m *AllContainersResponse) ValidateAll() error

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

type AllContainersResponseMultiError

type AllContainersResponseMultiError []error

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

func (AllContainersResponseMultiError) AllErrors

func (m AllContainersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllContainersResponseMultiError) Error

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

type AllContainersResponseValidationError

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

AllContainersResponseValidationError is the validation error returned by AllContainersResponse.Validate if the designated constraints aren't met.

func (AllContainersResponseValidationError) Cause

Cause function returns cause value.

func (AllContainersResponseValidationError) Error

Error satisfies the builtin error interface

func (AllContainersResponseValidationError) ErrorName

ErrorName returns error name.

func (AllContainersResponseValidationError) Field

Field function returns field value.

func (AllContainersResponseValidationError) Key

Key function returns key value.

func (AllContainersResponseValidationError) Reason

Reason function returns reason value.

type ApplyRequest

type ApplyRequest struct {
	NamespaceId int64 `protobuf:"varint,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	// name 不传就使用 git 默认的 name
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	GitProjectId int64  `protobuf:"varint,3,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	GitBranch    string `protobuf:"bytes,4,opt,name=git_branch,json=gitBranch,proto3" json:"git_branch,omitempty"`
	// git_commit 不传就用最新的 commit
	GitCommit     string `protobuf:"bytes,5,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
	Config        string `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
	Atomic        bool   `protobuf:"varint,7,opt,name=atomic,proto3" json:"atomic,omitempty"`
	WebsocketSync bool   `protobuf:"varint,8,opt,name=websocket_sync,json=websocketSync,proto3" json:"websocket_sync,omitempty"`
	// 发送百分比
	SendPercent bool                `protobuf:"varint,11,opt,name=send_percent,json=sendPercent,proto3" json:"send_percent,omitempty"`
	ExtraValues []*types.ExtraValue `protobuf:"bytes,9,rep,name=extra_values,json=extraValues,proto3" json:"extra_values,omitempty"`
	// 部署超时时间
	InstallTimeoutSeconds int64 `` /* 128-byte string literal not displayed */
	// 版本号, dryRun 时可以不传
	Version int64 `protobuf:"varint,12,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

ApplyRequest same as ProjectInput

func (*ApplyRequest) Descriptor deprecated

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

Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.

func (*ApplyRequest) GetAtomic

func (x *ApplyRequest) GetAtomic() bool

func (*ApplyRequest) GetConfig

func (x *ApplyRequest) GetConfig() string

func (*ApplyRequest) GetExtraValues

func (x *ApplyRequest) GetExtraValues() []*types.ExtraValue

func (*ApplyRequest) GetGitBranch

func (x *ApplyRequest) GetGitBranch() string

func (*ApplyRequest) GetGitCommit

func (x *ApplyRequest) GetGitCommit() string

func (*ApplyRequest) GetGitProjectId

func (x *ApplyRequest) GetGitProjectId() int64

func (*ApplyRequest) GetInstallTimeoutSeconds

func (x *ApplyRequest) GetInstallTimeoutSeconds() int64

func (*ApplyRequest) GetName

func (x *ApplyRequest) GetName() string

func (*ApplyRequest) GetNamespaceId

func (x *ApplyRequest) GetNamespaceId() int64

func (*ApplyRequest) GetSendPercent

func (x *ApplyRequest) GetSendPercent() bool

func (*ApplyRequest) GetVersion

func (x *ApplyRequest) GetVersion() int64

func (*ApplyRequest) GetWebsocketSync

func (x *ApplyRequest) GetWebsocketSync() bool

func (*ApplyRequest) ProtoMessage

func (*ApplyRequest) ProtoMessage()

func (*ApplyRequest) ProtoReflect

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

func (*ApplyRequest) Reset

func (x *ApplyRequest) Reset()

func (*ApplyRequest) String

func (x *ApplyRequest) String() string

func (*ApplyRequest) Validate

func (m *ApplyRequest) Validate() error

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

func (m *ApplyRequest) ValidateAll() error

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

type ApplyRequestMultiError

type ApplyRequestMultiError []error

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

func (ApplyRequestMultiError) AllErrors

func (m ApplyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApplyRequestMultiError) Error

func (m ApplyRequestMultiError) Error() string

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

type ApplyRequestValidationError

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

ApplyRequestValidationError is the validation error returned by ApplyRequest.Validate if the designated constraints aren't met.

func (ApplyRequestValidationError) Cause

Cause function returns cause value.

func (ApplyRequestValidationError) Error

Error satisfies the builtin error interface

func (ApplyRequestValidationError) ErrorName

func (e ApplyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ApplyRequestValidationError) Field

Field function returns field value.

func (ApplyRequestValidationError) Key

Key function returns key value.

func (ApplyRequestValidationError) Reason

Reason function returns reason value.

type ApplyResponse

type ApplyResponse struct {
	Metadata *websocket.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Project  *types.ProjectModel `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyResponse) Descriptor deprecated

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

Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead.

func (*ApplyResponse) GetMetadata

func (x *ApplyResponse) GetMetadata() *websocket.Metadata

func (*ApplyResponse) GetProject

func (x *ApplyResponse) GetProject() *types.ProjectModel

func (*ApplyResponse) ProtoMessage

func (*ApplyResponse) ProtoMessage()

func (*ApplyResponse) ProtoReflect

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

func (*ApplyResponse) Reset

func (x *ApplyResponse) Reset()

func (*ApplyResponse) String

func (x *ApplyResponse) String() string

func (*ApplyResponse) Validate

func (m *ApplyResponse) Validate() error

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

func (m *ApplyResponse) ValidateAll() error

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

type ApplyResponseMultiError

type ApplyResponseMultiError []error

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

func (ApplyResponseMultiError) AllErrors

func (m ApplyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApplyResponseMultiError) Error

func (m ApplyResponseMultiError) Error() string

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

type ApplyResponseValidationError

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

ApplyResponseValidationError is the validation error returned by ApplyResponse.Validate if the designated constraints aren't met.

func (ApplyResponseValidationError) Cause

Cause function returns cause value.

func (ApplyResponseValidationError) Error

Error satisfies the builtin error interface

func (ApplyResponseValidationError) ErrorName

func (e ApplyResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ApplyResponseValidationError) Field

Field function returns field value.

func (ApplyResponseValidationError) Key

Key function returns key value.

func (ApplyResponseValidationError) Reason

Reason function returns reason value.

type DeleteRequest

type DeleteRequest struct {
	ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetProjectId

func (x *DeleteRequest) GetProjectId() int64

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (m *DeleteRequest) Validate() error

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

func (m *DeleteRequest) ValidateAll() error

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

type DeleteRequestMultiError

type DeleteRequestMultiError []error

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

func (DeleteRequestMultiError) AllErrors

func (m DeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRequestMultiError) Error

func (m DeleteRequestMultiError) Error() string

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

type DeleteRequestValidationError

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

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

Reason function returns reason value.

type DeleteResponse

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

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

func (*DeleteResponse) Validate

func (m *DeleteResponse) Validate() error

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

func (m *DeleteResponse) ValidateAll() error

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

type DeleteResponseMultiError

type DeleteResponseMultiError []error

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

func (DeleteResponseMultiError) AllErrors

func (m DeleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResponseMultiError) Error

func (m DeleteResponseMultiError) Error() string

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

type DeleteResponseValidationError

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

DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.

func (DeleteResponseValidationError) Cause

Cause function returns cause value.

func (DeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteResponseValidationError) ErrorName

func (e DeleteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteResponseValidationError) Field

Field function returns field value.

func (DeleteResponseValidationError) Key

Key function returns key value.

func (DeleteResponseValidationError) Reason

Reason function returns reason value.

type DryRunApplyResponse

type DryRunApplyResponse struct {
	Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*DryRunApplyResponse) Descriptor deprecated

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

Deprecated: Use DryRunApplyResponse.ProtoReflect.Descriptor instead.

func (*DryRunApplyResponse) GetResults

func (x *DryRunApplyResponse) GetResults() []string

func (*DryRunApplyResponse) ProtoMessage

func (*DryRunApplyResponse) ProtoMessage()

func (*DryRunApplyResponse) ProtoReflect

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

func (*DryRunApplyResponse) Reset

func (x *DryRunApplyResponse) Reset()

func (*DryRunApplyResponse) String

func (x *DryRunApplyResponse) String() string

func (*DryRunApplyResponse) Validate

func (m *DryRunApplyResponse) Validate() error

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

func (m *DryRunApplyResponse) ValidateAll() error

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

type DryRunApplyResponseMultiError

type DryRunApplyResponseMultiError []error

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

func (DryRunApplyResponseMultiError) AllErrors

func (m DryRunApplyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DryRunApplyResponseMultiError) Error

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

type DryRunApplyResponseValidationError

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

DryRunApplyResponseValidationError is the validation error returned by DryRunApplyResponse.Validate if the designated constraints aren't met.

func (DryRunApplyResponseValidationError) Cause

Cause function returns cause value.

func (DryRunApplyResponseValidationError) Error

Error satisfies the builtin error interface

func (DryRunApplyResponseValidationError) ErrorName

ErrorName returns error name.

func (DryRunApplyResponseValidationError) Field

Field function returns field value.

func (DryRunApplyResponseValidationError) Key

Key function returns key value.

func (DryRunApplyResponseValidationError) Reason

Reason function returns reason value.

type HostVariablesRequest

type HostVariablesRequest struct {

	// 如果不指定则使用从 git server 获取的项目名称
	ProjectName  string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
	Namespace    string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	GitProjectId int64  `protobuf:"varint,3,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	GitBranch    string `protobuf:"bytes,4,opt,name=git_branch,json=gitBranch,proto3" json:"git_branch,omitempty"`
	// contains filtered or unexported fields
}

func (*HostVariablesRequest) Descriptor deprecated

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

Deprecated: Use HostVariablesRequest.ProtoReflect.Descriptor instead.

func (*HostVariablesRequest) GetGitBranch

func (x *HostVariablesRequest) GetGitBranch() string

func (*HostVariablesRequest) GetGitProjectId

func (x *HostVariablesRequest) GetGitProjectId() int64

func (*HostVariablesRequest) GetNamespace

func (x *HostVariablesRequest) GetNamespace() string

func (*HostVariablesRequest) GetProjectName

func (x *HostVariablesRequest) GetProjectName() string

func (*HostVariablesRequest) ProtoMessage

func (*HostVariablesRequest) ProtoMessage()

func (*HostVariablesRequest) ProtoReflect

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

func (*HostVariablesRequest) Reset

func (x *HostVariablesRequest) Reset()

func (*HostVariablesRequest) String

func (x *HostVariablesRequest) String() string

func (*HostVariablesRequest) Validate

func (m *HostVariablesRequest) Validate() error

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

func (m *HostVariablesRequest) ValidateAll() error

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

type HostVariablesRequestMultiError

type HostVariablesRequestMultiError []error

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

func (HostVariablesRequestMultiError) AllErrors

func (m HostVariablesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HostVariablesRequestMultiError) Error

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

type HostVariablesRequestValidationError

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

HostVariablesRequestValidationError is the validation error returned by HostVariablesRequest.Validate if the designated constraints aren't met.

func (HostVariablesRequestValidationError) Cause

Cause function returns cause value.

func (HostVariablesRequestValidationError) Error

Error satisfies the builtin error interface

func (HostVariablesRequestValidationError) ErrorName

ErrorName returns error name.

func (HostVariablesRequestValidationError) Field

Field function returns field value.

func (HostVariablesRequestValidationError) Key

Key function returns key value.

func (HostVariablesRequestValidationError) Reason

Reason function returns reason value.

type HostVariablesResponse

type HostVariablesResponse struct {
	Hosts map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HostVariablesResponse) Descriptor deprecated

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

Deprecated: Use HostVariablesResponse.ProtoReflect.Descriptor instead.

func (*HostVariablesResponse) GetHosts

func (x *HostVariablesResponse) GetHosts() map[string]string

func (*HostVariablesResponse) ProtoMessage

func (*HostVariablesResponse) ProtoMessage()

func (*HostVariablesResponse) ProtoReflect

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

func (*HostVariablesResponse) Reset

func (x *HostVariablesResponse) Reset()

func (*HostVariablesResponse) String

func (x *HostVariablesResponse) String() string

func (*HostVariablesResponse) Validate

func (m *HostVariablesResponse) Validate() error

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

func (m *HostVariablesResponse) ValidateAll() error

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

type HostVariablesResponseMultiError

type HostVariablesResponseMultiError []error

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

func (HostVariablesResponseMultiError) AllErrors

func (m HostVariablesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HostVariablesResponseMultiError) Error

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

type HostVariablesResponseValidationError

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

HostVariablesResponseValidationError is the validation error returned by HostVariablesResponse.Validate if the designated constraints aren't met.

func (HostVariablesResponseValidationError) Cause

Cause function returns cause value.

func (HostVariablesResponseValidationError) Error

Error satisfies the builtin error interface

func (HostVariablesResponseValidationError) ErrorName

ErrorName returns error name.

func (HostVariablesResponseValidationError) Field

Field function returns field value.

func (HostVariablesResponseValidationError) Key

Key function returns key value.

func (HostVariablesResponseValidationError) Reason

Reason function returns reason value.

type ListRequest

type ListRequest struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPage

func (x *ListRequest) GetPage() int64

func (*ListRequest) GetPageSize

func (x *ListRequest) GetPageSize() int64

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

func (*ListRequest) Validate

func (m *ListRequest) Validate() error

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

func (m *ListRequest) ValidateAll() error

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

type ListRequestMultiError

type ListRequestMultiError []error

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

func (ListRequestMultiError) AllErrors

func (m ListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRequestMultiError) Error

func (m ListRequestMultiError) Error() string

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

type ListRequestValidationError

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

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

Reason function returns reason value.

type ListResponse

type ListResponse struct {
	Page     int64                 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64                 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Count    int64                 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Items    []*types.ProjectModel `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetCount

func (x *ListResponse) GetCount() int64

func (*ListResponse) GetItems

func (x *ListResponse) GetItems() []*types.ProjectModel

func (*ListResponse) GetPage

func (x *ListResponse) GetPage() int64

func (*ListResponse) GetPageSize

func (x *ListResponse) GetPageSize() int64

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

func (*ListResponse) Validate

func (m *ListResponse) Validate() error

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

func (m *ListResponse) ValidateAll() error

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

type ListResponseMultiError

type ListResponseMultiError []error

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

func (ListResponseMultiError) AllErrors

func (m ListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResponseMultiError) Error

func (m ListResponseMultiError) Error() string

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

type ListResponseValidationError

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

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

type ProjectClient

type ProjectClient interface {
	// List 获取项目列表
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	// Apply grpc 创建/更新项目
	Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (Project_ApplyClient, error)
	// ApplyDryRun 创建/更新项目 '--dry-run' mode
	ApplyDryRun(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*DryRunApplyResponse, error)
	// Show 项目详情
	Show(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ShowResponse, error)
	// Version 版本号, 如果不存在则返回 0
	Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
	// Delete 删除项目
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	// AllContainers 获取项目下的所有 pod
	AllContainers(ctx context.Context, in *AllContainersRequest, opts ...grpc.CallOption) (*AllContainersResponse, error)
	// HostVariables 获取 hosts 变量
	HostVariables(ctx context.Context, in *HostVariablesRequest, opts ...grpc.CallOption) (*HostVariablesResponse, error)
}

ProjectClient is the client API for Project service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewProjectClient

func NewProjectClient(cc grpc.ClientConnInterface) ProjectClient

type ProjectServer

type ProjectServer interface {
	// List 获取项目列表
	List(context.Context, *ListRequest) (*ListResponse, error)
	// Apply grpc 创建/更新项目
	Apply(*ApplyRequest, Project_ApplyServer) error
	// ApplyDryRun 创建/更新项目 '--dry-run' mode
	ApplyDryRun(context.Context, *ApplyRequest) (*DryRunApplyResponse, error)
	// Show 项目详情
	Show(context.Context, *ShowRequest) (*ShowResponse, error)
	// Version 版本号, 如果不存在则返回 0
	Version(context.Context, *VersionRequest) (*VersionResponse, error)
	// Delete 删除项目
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// AllContainers 获取项目下的所有 pod
	AllContainers(context.Context, *AllContainersRequest) (*AllContainersResponse, error)
	// HostVariables 获取 hosts 变量
	HostVariables(context.Context, *HostVariablesRequest) (*HostVariablesResponse, error)
	// contains filtered or unexported methods
}

ProjectServer is the server API for Project service. All implementations must embed UnimplementedProjectServer for forward compatibility

type Project_ApplyClient

type Project_ApplyClient interface {
	Recv() (*ApplyResponse, error)
	grpc.ClientStream
}

type Project_ApplyServer

type Project_ApplyServer interface {
	Send(*ApplyResponse) error
	grpc.ServerStream
}

type ShowRequest

type ShowRequest struct {
	ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowRequest) Descriptor deprecated

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

Deprecated: Use ShowRequest.ProtoReflect.Descriptor instead.

func (*ShowRequest) GetProjectId

func (x *ShowRequest) GetProjectId() int64

func (*ShowRequest) ProtoMessage

func (*ShowRequest) ProtoMessage()

func (*ShowRequest) ProtoReflect

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

func (*ShowRequest) Reset

func (x *ShowRequest) Reset()

func (*ShowRequest) String

func (x *ShowRequest) String() string

func (*ShowRequest) Validate

func (m *ShowRequest) Validate() error

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

func (m *ShowRequest) ValidateAll() error

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

type ShowRequestMultiError

type ShowRequestMultiError []error

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

func (ShowRequestMultiError) AllErrors

func (m ShowRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShowRequestMultiError) Error

func (m ShowRequestMultiError) Error() string

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

type ShowRequestValidationError

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

ShowRequestValidationError is the validation error returned by ShowRequest.Validate if the designated constraints aren't met.

func (ShowRequestValidationError) Cause

Cause function returns cause value.

func (ShowRequestValidationError) Error

Error satisfies the builtin error interface

func (ShowRequestValidationError) ErrorName

func (e ShowRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ShowRequestValidationError) Field

Field function returns field value.

func (ShowRequestValidationError) Key

Key function returns key value.

func (ShowRequestValidationError) Reason

Reason function returns reason value.

type ShowResponse

type ShowResponse struct {
	Project  *types.ProjectModel      `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Urls     []*types.ServiceEndpoint `protobuf:"bytes,13,rep,name=urls,proto3" json:"urls,omitempty"`
	Cpu      string                   `protobuf:"bytes,15,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Memory   string                   `protobuf:"bytes,16,opt,name=memory,proto3" json:"memory,omitempty"`
	Elements []*mars.Element          `protobuf:"bytes,23,rep,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowResponse) Descriptor deprecated

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

Deprecated: Use ShowResponse.ProtoReflect.Descriptor instead.

func (*ShowResponse) GetCpu

func (x *ShowResponse) GetCpu() string

func (*ShowResponse) GetElements

func (x *ShowResponse) GetElements() []*mars.Element

func (*ShowResponse) GetMemory

func (x *ShowResponse) GetMemory() string

func (*ShowResponse) GetProject

func (x *ShowResponse) GetProject() *types.ProjectModel

func (*ShowResponse) GetUrls

func (x *ShowResponse) GetUrls() []*types.ServiceEndpoint

func (*ShowResponse) ProtoMessage

func (*ShowResponse) ProtoMessage()

func (*ShowResponse) ProtoReflect

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

func (*ShowResponse) Reset

func (x *ShowResponse) Reset()

func (*ShowResponse) String

func (x *ShowResponse) String() string

func (*ShowResponse) Validate

func (m *ShowResponse) Validate() error

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

func (m *ShowResponse) ValidateAll() error

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

type ShowResponseMultiError

type ShowResponseMultiError []error

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

func (ShowResponseMultiError) AllErrors

func (m ShowResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShowResponseMultiError) Error

func (m ShowResponseMultiError) Error() string

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

type ShowResponseValidationError

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

ShowResponseValidationError is the validation error returned by ShowResponse.Validate if the designated constraints aren't met.

func (ShowResponseValidationError) Cause

Cause function returns cause value.

func (ShowResponseValidationError) Error

Error satisfies the builtin error interface

func (ShowResponseValidationError) ErrorName

func (e ShowResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ShowResponseValidationError) Field

Field function returns field value.

func (ShowResponseValidationError) Key

Key function returns key value.

func (ShowResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedProjectServer

type UnimplementedProjectServer struct {
}

UnimplementedProjectServer must be embedded to have forward compatible implementations.

func (UnimplementedProjectServer) AllContainers

func (UnimplementedProjectServer) Apply

func (UnimplementedProjectServer) ApplyDryRun

func (UnimplementedProjectServer) Delete

func (UnimplementedProjectServer) HostVariables

func (UnimplementedProjectServer) List

func (UnimplementedProjectServer) Show

func (UnimplementedProjectServer) Version

type UnsafeProjectServer

type UnsafeProjectServer interface {
	// contains filtered or unexported methods
}

UnsafeProjectServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectServer will result in compilation errors.

type VersionRequest

type VersionRequest struct {
	ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionRequest) Descriptor deprecated

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

Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.

func (*VersionRequest) GetProjectId

func (x *VersionRequest) GetProjectId() int64

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) ProtoReflect

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

func (*VersionRequest) Reset

func (x *VersionRequest) Reset()

func (*VersionRequest) String

func (x *VersionRequest) String() string

func (*VersionRequest) Validate

func (m *VersionRequest) Validate() error

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

func (m *VersionRequest) ValidateAll() error

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

type VersionRequestMultiError

type VersionRequestMultiError []error

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

func (VersionRequestMultiError) AllErrors

func (m VersionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VersionRequestMultiError) Error

func (m VersionRequestMultiError) Error() string

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

type VersionRequestValidationError

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

VersionRequestValidationError is the validation error returned by VersionRequest.Validate if the designated constraints aren't met.

func (VersionRequestValidationError) Cause

Cause function returns cause value.

func (VersionRequestValidationError) Error

Error satisfies the builtin error interface

func (VersionRequestValidationError) ErrorName

func (e VersionRequestValidationError) ErrorName() string

ErrorName returns error name.

func (VersionRequestValidationError) Field

Field function returns field value.

func (VersionRequestValidationError) Key

Key function returns key value.

func (VersionRequestValidationError) Reason

Reason function returns reason value.

type VersionResponse

type VersionResponse struct {
	Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

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

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetVersion

func (x *VersionResponse) GetVersion() int64

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

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

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

func (*VersionResponse) Validate

func (m *VersionResponse) Validate() error

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

func (m *VersionResponse) ValidateAll() error

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

type VersionResponseMultiError

type VersionResponseMultiError []error

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

func (VersionResponseMultiError) AllErrors

func (m VersionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VersionResponseMultiError) Error

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

type VersionResponseValidationError

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

VersionResponseValidationError is the validation error returned by VersionResponse.Validate if the designated constraints aren't met.

func (VersionResponseValidationError) Cause

Cause function returns cause value.

func (VersionResponseValidationError) Error

Error satisfies the builtin error interface

func (VersionResponseValidationError) ErrorName

func (e VersionResponseValidationError) ErrorName() string

ErrorName returns error name.

func (VersionResponseValidationError) Field

Field function returns field value.

func (VersionResponseValidationError) Key

Key function returns key value.

func (VersionResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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