project

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 32 Imported by: 1

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_WebApply_FullMethodName              = "/project.Project/WebApply"
	Project_Show_FullMethodName                  = "/project.Project/Show"
	Project_MemoryCpuAndEndpoints_FullMethodName = "/project.Project/MemoryCpuAndEndpoints"
	Project_Version_FullMethodName               = "/project.Project/Version"
	Project_Delete_FullMethodName                = "/project.Project/Delete"
	Project_AllContainers_FullMethodName         = "/project.Project/AllContainers"
)

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: "WebApply",
			Handler:    _Project_WebApply_Handler,
		},
		{
			MethodName: "Show",
			Handler:    _Project_Show_Handler,
		},
		{
			MethodName: "MemoryCpuAndEndpoints",
			Handler:    _Project_MemoryCpuAndEndpoints_Handler,
		},
		{
			MethodName: "Version",
			Handler:    _Project_Version_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Project_Delete_Handler,
		},
		{
			MethodName: "AllContainers",
			Handler:    _Project_AllContainers_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 {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AllContainersRequest) Descriptor deprecated

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

Deprecated: Use AllContainersRequest.ProtoReflect.Descriptor instead.

func (*AllContainersRequest) GetId

func (x *AllContainersRequest) GetId() int32

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 int32 `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"`
	RepoId    int32  `protobuf:"varint,3,opt,name=repo_id,json=repoId,proto3" json:"repo_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"`
	ExtraValues   []*websocket.ExtraValue `protobuf:"bytes,9,rep,name=extra_values,json=extraValues,proto3" json:"extra_values,omitempty"`
	// 部署超时时间
	InstallTimeoutSeconds int32 `` /* 128-byte string literal not displayed */
	// 发送百分比
	SendPercent bool `protobuf:"varint,11,opt,name=send_percent,json=sendPercent,proto3" json:"send_percent,omitempty"`
	// 版本号, 创建时可以不传
	Version *int32 `protobuf:"varint,12,opt,name=version,proto3,oneof" 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() []*websocket.ExtraValue

func (*ApplyRequest) GetGitBranch

func (x *ApplyRequest) GetGitBranch() string

func (*ApplyRequest) GetGitCommit

func (x *ApplyRequest) GetGitCommit() string

func (*ApplyRequest) GetInstallTimeoutSeconds

func (x *ApplyRequest) GetInstallTimeoutSeconds() int32

func (*ApplyRequest) GetName

func (x *ApplyRequest) GetName() string

func (*ApplyRequest) GetNamespaceId

func (x *ApplyRequest) GetNamespaceId() int32

func (*ApplyRequest) GetRepoId

func (x *ApplyRequest) GetRepoId() int32

func (*ApplyRequest) GetSendPercent

func (x *ApplyRequest) GetSendPercent() bool

func (*ApplyRequest) GetVersion

func (x *ApplyRequest) GetVersion() int32

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 {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() int32

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 ListRequest

type ListRequest struct {
	Page     *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
	PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" 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() int32

func (*ListRequest) GetPageSize

func (x *ListRequest) GetPageSize() int32

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     int32                 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32                 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Count    int32                 `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() int32

func (*ListResponse) GetItems

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

func (*ListResponse) GetPage

func (x *ListResponse) GetPage() int32

func (*ListResponse) GetPageSize

func (x *ListResponse) GetPageSize() int32

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 MemoryCpuAndEndpointsRequest

type MemoryCpuAndEndpointsRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MemoryCpuAndEndpointsRequest) Descriptor deprecated

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

Deprecated: Use MemoryCpuAndEndpointsRequest.ProtoReflect.Descriptor instead.

func (*MemoryCpuAndEndpointsRequest) GetId

func (*MemoryCpuAndEndpointsRequest) ProtoMessage

func (*MemoryCpuAndEndpointsRequest) ProtoMessage()

func (*MemoryCpuAndEndpointsRequest) ProtoReflect

func (*MemoryCpuAndEndpointsRequest) Reset

func (x *MemoryCpuAndEndpointsRequest) Reset()

func (*MemoryCpuAndEndpointsRequest) String

func (*MemoryCpuAndEndpointsRequest) Validate

func (m *MemoryCpuAndEndpointsRequest) Validate() error

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

func (m *MemoryCpuAndEndpointsRequest) ValidateAll() error

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

type MemoryCpuAndEndpointsRequestMultiError

type MemoryCpuAndEndpointsRequestMultiError []error

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

func (MemoryCpuAndEndpointsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (MemoryCpuAndEndpointsRequestMultiError) Error

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

type MemoryCpuAndEndpointsRequestValidationError

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

MemoryCpuAndEndpointsRequestValidationError is the validation error returned by MemoryCpuAndEndpointsRequest.Validate if the designated constraints aren't met.

func (MemoryCpuAndEndpointsRequestValidationError) Cause

Cause function returns cause value.

func (MemoryCpuAndEndpointsRequestValidationError) Error

Error satisfies the builtin error interface

func (MemoryCpuAndEndpointsRequestValidationError) ErrorName

ErrorName returns error name.

func (MemoryCpuAndEndpointsRequestValidationError) Field

Field function returns field value.

func (MemoryCpuAndEndpointsRequestValidationError) Key

Key function returns key value.

func (MemoryCpuAndEndpointsRequestValidationError) Reason

Reason function returns reason value.

type MemoryCpuAndEndpointsResponse

type MemoryCpuAndEndpointsResponse struct {
	Urls   []*types.ServiceEndpoint `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
	Cpu    string                   `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Memory string                   `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"`
	// contains filtered or unexported fields
}

func (*MemoryCpuAndEndpointsResponse) Descriptor deprecated

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

Deprecated: Use MemoryCpuAndEndpointsResponse.ProtoReflect.Descriptor instead.

func (*MemoryCpuAndEndpointsResponse) GetCpu

func (*MemoryCpuAndEndpointsResponse) GetMemory

func (x *MemoryCpuAndEndpointsResponse) GetMemory() string

func (*MemoryCpuAndEndpointsResponse) GetUrls

func (*MemoryCpuAndEndpointsResponse) ProtoMessage

func (*MemoryCpuAndEndpointsResponse) ProtoMessage()

func (*MemoryCpuAndEndpointsResponse) ProtoReflect

func (*MemoryCpuAndEndpointsResponse) Reset

func (x *MemoryCpuAndEndpointsResponse) Reset()

func (*MemoryCpuAndEndpointsResponse) String

func (*MemoryCpuAndEndpointsResponse) Validate

func (m *MemoryCpuAndEndpointsResponse) Validate() error

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

func (m *MemoryCpuAndEndpointsResponse) ValidateAll() error

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

type MemoryCpuAndEndpointsResponseMultiError

type MemoryCpuAndEndpointsResponseMultiError []error

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

func (MemoryCpuAndEndpointsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (MemoryCpuAndEndpointsResponseMultiError) Error

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

type MemoryCpuAndEndpointsResponseValidationError

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

MemoryCpuAndEndpointsResponseValidationError is the validation error returned by MemoryCpuAndEndpointsResponse.Validate if the designated constraints aren't met.

func (MemoryCpuAndEndpointsResponseValidationError) Cause

Cause function returns cause value.

func (MemoryCpuAndEndpointsResponseValidationError) Error

Error satisfies the builtin error interface

func (MemoryCpuAndEndpointsResponseValidationError) ErrorName

ErrorName returns error name.

func (MemoryCpuAndEndpointsResponseValidationError) Field

Field function returns field value.

func (MemoryCpuAndEndpointsResponseValidationError) Key

Key function returns key value.

func (MemoryCpuAndEndpointsResponseValidationError) 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)
	// WebApply 创建/更新/DryRun 项目
	WebApply(ctx context.Context, in *WebApplyRequest, opts ...grpc.CallOption) (*WebApplyResponse, error)
	// Show 项目详情
	Show(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ShowResponse, error)
	MemoryCpuAndEndpoints(ctx context.Context, in *MemoryCpuAndEndpointsRequest, opts ...grpc.CallOption) (*MemoryCpuAndEndpointsResponse, 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)
}

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
	// WebApply 创建/更新/DryRun 项目
	WebApply(context.Context, *WebApplyRequest) (*WebApplyResponse, error)
	// Show 项目详情
	Show(context.Context, *ShowRequest) (*ShowResponse, error)
	MemoryCpuAndEndpoints(context.Context, *MemoryCpuAndEndpointsRequest) (*MemoryCpuAndEndpointsResponse, error)
	// Version 版本号, 如果不存在则返回 0
	Version(context.Context, *VersionRequest) (*VersionResponse, error)
	// Delete 删除项目
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// AllContainers 获取项目下的所有 pod
	AllContainers(context.Context, *AllContainersRequest) (*AllContainersResponse, 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 {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowRequest) Descriptor deprecated

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

Deprecated: Use ShowRequest.ProtoReflect.Descriptor instead.

func (*ShowRequest) GetId

func (x *ShowRequest) GetId() int32

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 {
	Item *types.ProjectModel `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowResponse) Descriptor deprecated

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

Deprecated: Use ShowResponse.ProtoReflect.Descriptor instead.

func (*ShowResponse) GetItem

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

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) Delete

func (UnimplementedProjectServer) List

func (UnimplementedProjectServer) Show

func (UnimplementedProjectServer) Version

func (UnimplementedProjectServer) WebApply

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 {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionRequest) Descriptor deprecated

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

Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.

func (*VersionRequest) GetId

func (x *VersionRequest) GetId() int32

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 int32 `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() int32

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.

type WebApplyRequest

type WebApplyRequest struct {
	NamespaceId int32  `protobuf:"varint,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	RepoId      int32  `protobuf:"varint,3,opt,name=repo_id,json=repoId,proto3" json:"repo_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"`
	ExtraValues []*websocket.ExtraValue `protobuf:"bytes,7,rep,name=extra_values,json=extraValues,proto3" json:"extra_values,omitempty"`
	// 版本号, dryRun 时可以不传
	Version *int32 `protobuf:"varint,8,opt,name=version,proto3,oneof" json:"version,omitempty"`
	DryRun  bool   `protobuf:"varint,9,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	// contains filtered or unexported fields
}

func (*WebApplyRequest) Descriptor deprecated

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

Deprecated: Use WebApplyRequest.ProtoReflect.Descriptor instead.

func (*WebApplyRequest) GetConfig

func (x *WebApplyRequest) GetConfig() string

func (*WebApplyRequest) GetDryRun

func (x *WebApplyRequest) GetDryRun() bool

func (*WebApplyRequest) GetExtraValues

func (x *WebApplyRequest) GetExtraValues() []*websocket.ExtraValue

func (*WebApplyRequest) GetGitBranch

func (x *WebApplyRequest) GetGitBranch() string

func (*WebApplyRequest) GetGitCommit

func (x *WebApplyRequest) GetGitCommit() string

func (*WebApplyRequest) GetName

func (x *WebApplyRequest) GetName() string

func (*WebApplyRequest) GetNamespaceId

func (x *WebApplyRequest) GetNamespaceId() int32

func (*WebApplyRequest) GetRepoId

func (x *WebApplyRequest) GetRepoId() int32

func (*WebApplyRequest) GetVersion

func (x *WebApplyRequest) GetVersion() int32

func (*WebApplyRequest) ProtoMessage

func (*WebApplyRequest) ProtoMessage()

func (*WebApplyRequest) ProtoReflect

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

func (*WebApplyRequest) Reset

func (x *WebApplyRequest) Reset()

func (*WebApplyRequest) String

func (x *WebApplyRequest) String() string

func (*WebApplyRequest) Validate

func (m *WebApplyRequest) Validate() error

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

func (m *WebApplyRequest) ValidateAll() error

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

type WebApplyRequestMultiError

type WebApplyRequestMultiError []error

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

func (WebApplyRequestMultiError) AllErrors

func (m WebApplyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WebApplyRequestMultiError) Error

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

type WebApplyRequestValidationError

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

WebApplyRequestValidationError is the validation error returned by WebApplyRequest.Validate if the designated constraints aren't met.

func (WebApplyRequestValidationError) Cause

Cause function returns cause value.

func (WebApplyRequestValidationError) Error

Error satisfies the builtin error interface

func (WebApplyRequestValidationError) ErrorName

func (e WebApplyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (WebApplyRequestValidationError) Field

Field function returns field value.

func (WebApplyRequestValidationError) Key

Key function returns key value.

func (WebApplyRequestValidationError) Reason

Reason function returns reason value.

type WebApplyResponse

type WebApplyResponse struct {
	YamlFiles []string            `protobuf:"bytes,1,rep,name=yaml_files,json=yamlFiles,proto3" json:"yaml_files,omitempty"`
	Project   *types.ProjectModel `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	DryRun    bool                `protobuf:"varint,3,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	// contains filtered or unexported fields
}

func (*WebApplyResponse) Descriptor deprecated

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

Deprecated: Use WebApplyResponse.ProtoReflect.Descriptor instead.

func (*WebApplyResponse) GetDryRun

func (x *WebApplyResponse) GetDryRun() bool

func (*WebApplyResponse) GetProject

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

func (*WebApplyResponse) GetYamlFiles

func (x *WebApplyResponse) GetYamlFiles() []string

func (*WebApplyResponse) ProtoMessage

func (*WebApplyResponse) ProtoMessage()

func (*WebApplyResponse) ProtoReflect

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

func (*WebApplyResponse) Reset

func (x *WebApplyResponse) Reset()

func (*WebApplyResponse) String

func (x *WebApplyResponse) String() string

func (*WebApplyResponse) Validate

func (m *WebApplyResponse) Validate() error

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

func (m *WebApplyResponse) ValidateAll() error

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

type WebApplyResponseMultiError

type WebApplyResponseMultiError []error

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

func (WebApplyResponseMultiError) AllErrors

func (m WebApplyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WebApplyResponseMultiError) Error

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

type WebApplyResponseValidationError

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

WebApplyResponseValidationError is the validation error returned by WebApplyResponse.Validate if the designated constraints aren't met.

func (WebApplyResponseValidationError) Cause

Cause function returns cause value.

func (WebApplyResponseValidationError) Error

Error satisfies the builtin error interface

func (WebApplyResponseValidationError) ErrorName

ErrorName returns error name.

func (WebApplyResponseValidationError) Field

Field function returns field value.

func (WebApplyResponseValidationError) Key

Key function returns key value.

func (WebApplyResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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