Documentation
¶
Overview ¶
Package project is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterProjectHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProjectHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectClient) error
- func RegisterProjectHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProjectHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServer) error
- func RegisterProjectServer(s grpc.ServiceRegistrar, srv ProjectServer)
- type AllContainersRequest
- func (*AllContainersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AllContainersRequest) GetProjectId() int64
- func (*AllContainersRequest) ProtoMessage()
- func (x *AllContainersRequest) ProtoReflect() protoreflect.Message
- func (x *AllContainersRequest) Reset()
- func (x *AllContainersRequest) String() string
- func (m *AllContainersRequest) Validate() error
- func (m *AllContainersRequest) ValidateAll() error
- type AllContainersRequestMultiError
- type AllContainersRequestValidationError
- func (e AllContainersRequestValidationError) Cause() error
- func (e AllContainersRequestValidationError) Error() string
- func (e AllContainersRequestValidationError) ErrorName() string
- func (e AllContainersRequestValidationError) Field() string
- func (e AllContainersRequestValidationError) Key() bool
- func (e AllContainersRequestValidationError) Reason() string
- type AllContainersResponse
- func (*AllContainersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AllContainersResponse) GetItems() []*types.StateContainer
- func (*AllContainersResponse) ProtoMessage()
- func (x *AllContainersResponse) ProtoReflect() protoreflect.Message
- func (x *AllContainersResponse) Reset()
- func (x *AllContainersResponse) String() string
- func (m *AllContainersResponse) Validate() error
- func (m *AllContainersResponse) ValidateAll() error
- type AllContainersResponseMultiError
- type AllContainersResponseValidationError
- func (e AllContainersResponseValidationError) Cause() error
- func (e AllContainersResponseValidationError) Error() string
- func (e AllContainersResponseValidationError) ErrorName() string
- func (e AllContainersResponseValidationError) Field() string
- func (e AllContainersResponseValidationError) Key() bool
- func (e AllContainersResponseValidationError) Reason() string
- type ApplyRequest
- func (*ApplyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyRequest) GetAtomic() bool
- func (x *ApplyRequest) GetConfig() string
- func (x *ApplyRequest) GetExtraValues() []*types.ExtraValue
- func (x *ApplyRequest) GetGitBranch() string
- func (x *ApplyRequest) GetGitCommit() string
- func (x *ApplyRequest) GetGitProjectId() int64
- func (x *ApplyRequest) GetInstallTimeoutSeconds() int64
- func (x *ApplyRequest) GetName() string
- func (x *ApplyRequest) GetNamespaceId() int64
- func (x *ApplyRequest) GetSendPercent() bool
- func (x *ApplyRequest) GetVersion() int64
- func (x *ApplyRequest) GetWebsocketSync() bool
- func (*ApplyRequest) ProtoMessage()
- func (x *ApplyRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyRequest) Reset()
- func (x *ApplyRequest) String() string
- func (m *ApplyRequest) Validate() error
- func (m *ApplyRequest) ValidateAll() error
- type ApplyRequestMultiError
- type ApplyRequestValidationError
- func (e ApplyRequestValidationError) Cause() error
- func (e ApplyRequestValidationError) Error() string
- func (e ApplyRequestValidationError) ErrorName() string
- func (e ApplyRequestValidationError) Field() string
- func (e ApplyRequestValidationError) Key() bool
- func (e ApplyRequestValidationError) Reason() string
- type ApplyResponse
- func (*ApplyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyResponse) GetMetadata() *websocket.Metadata
- func (x *ApplyResponse) GetProject() *types.ProjectModel
- func (*ApplyResponse) ProtoMessage()
- func (x *ApplyResponse) ProtoReflect() protoreflect.Message
- func (x *ApplyResponse) Reset()
- func (x *ApplyResponse) String() string
- func (m *ApplyResponse) Validate() error
- func (m *ApplyResponse) ValidateAll() error
- type ApplyResponseMultiError
- type ApplyResponseValidationError
- func (e ApplyResponseValidationError) Cause() error
- func (e ApplyResponseValidationError) Error() string
- func (e ApplyResponseValidationError) ErrorName() string
- func (e ApplyResponseValidationError) Field() string
- func (e ApplyResponseValidationError) Key() bool
- func (e ApplyResponseValidationError) Reason() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetProjectId() int64
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) ValidateAll() error
- type DeleteRequestMultiError
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- func (m *DeleteResponse) Validate() error
- func (m *DeleteResponse) ValidateAll() error
- type DeleteResponseMultiError
- type DeleteResponseValidationError
- func (e DeleteResponseValidationError) Cause() error
- func (e DeleteResponseValidationError) Error() string
- func (e DeleteResponseValidationError) ErrorName() string
- func (e DeleteResponseValidationError) Field() string
- func (e DeleteResponseValidationError) Key() bool
- func (e DeleteResponseValidationError) Reason() string
- type DryRunApplyResponse
- func (*DryRunApplyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DryRunApplyResponse) GetResults() []string
- func (*DryRunApplyResponse) ProtoMessage()
- func (x *DryRunApplyResponse) ProtoReflect() protoreflect.Message
- func (x *DryRunApplyResponse) Reset()
- func (x *DryRunApplyResponse) String() string
- func (m *DryRunApplyResponse) Validate() error
- func (m *DryRunApplyResponse) ValidateAll() error
- type DryRunApplyResponseMultiError
- type DryRunApplyResponseValidationError
- func (e DryRunApplyResponseValidationError) Cause() error
- func (e DryRunApplyResponseValidationError) Error() string
- func (e DryRunApplyResponseValidationError) ErrorName() string
- func (e DryRunApplyResponseValidationError) Field() string
- func (e DryRunApplyResponseValidationError) Key() bool
- func (e DryRunApplyResponseValidationError) Reason() string
- type HostVariablesRequest
- func (*HostVariablesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HostVariablesRequest) GetGitBranch() string
- func (x *HostVariablesRequest) GetGitProjectId() int64
- func (x *HostVariablesRequest) GetNamespace() string
- func (x *HostVariablesRequest) GetProjectName() string
- func (*HostVariablesRequest) ProtoMessage()
- func (x *HostVariablesRequest) ProtoReflect() protoreflect.Message
- func (x *HostVariablesRequest) Reset()
- func (x *HostVariablesRequest) String() string
- func (m *HostVariablesRequest) Validate() error
- func (m *HostVariablesRequest) ValidateAll() error
- type HostVariablesRequestMultiError
- type HostVariablesRequestValidationError
- func (e HostVariablesRequestValidationError) Cause() error
- func (e HostVariablesRequestValidationError) Error() string
- func (e HostVariablesRequestValidationError) ErrorName() string
- func (e HostVariablesRequestValidationError) Field() string
- func (e HostVariablesRequestValidationError) Key() bool
- func (e HostVariablesRequestValidationError) Reason() string
- type HostVariablesResponse
- func (*HostVariablesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HostVariablesResponse) GetHosts() map[string]string
- func (*HostVariablesResponse) ProtoMessage()
- func (x *HostVariablesResponse) ProtoReflect() protoreflect.Message
- func (x *HostVariablesResponse) Reset()
- func (x *HostVariablesResponse) String() string
- func (m *HostVariablesResponse) Validate() error
- func (m *HostVariablesResponse) ValidateAll() error
- type HostVariablesResponseMultiError
- type HostVariablesResponseValidationError
- func (e HostVariablesResponseValidationError) Cause() error
- func (e HostVariablesResponseValidationError) Error() string
- func (e HostVariablesResponseValidationError) ErrorName() string
- func (e HostVariablesResponseValidationError) Field() string
- func (e HostVariablesResponseValidationError) Key() bool
- func (e HostVariablesResponseValidationError) Reason() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetPage() int64
- func (x *ListRequest) GetPageSize() int64
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCount() int64
- func (x *ListResponse) GetItems() []*types.ProjectModel
- func (x *ListResponse) GetPage() int64
- func (x *ListResponse) GetPageSize() int64
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type ProjectClient
- type ProjectServer
- type Project_ApplyClient
- type Project_ApplyServer
- type ShowRequest
- func (*ShowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShowRequest) GetProjectId() int64
- func (*ShowRequest) ProtoMessage()
- func (x *ShowRequest) ProtoReflect() protoreflect.Message
- func (x *ShowRequest) Reset()
- func (x *ShowRequest) String() string
- func (m *ShowRequest) Validate() error
- func (m *ShowRequest) ValidateAll() error
- type ShowRequestMultiError
- type ShowRequestValidationError
- func (e ShowRequestValidationError) Cause() error
- func (e ShowRequestValidationError) Error() string
- func (e ShowRequestValidationError) ErrorName() string
- func (e ShowRequestValidationError) Field() string
- func (e ShowRequestValidationError) Key() bool
- func (e ShowRequestValidationError) Reason() string
- type ShowResponse
- func (*ShowResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShowResponse) GetCpu() string
- func (x *ShowResponse) GetElements() []*mars.Element
- func (x *ShowResponse) GetMemory() string
- func (x *ShowResponse) GetProject() *types.ProjectModel
- func (x *ShowResponse) GetUrls() []*types.ServiceEndpoint
- func (*ShowResponse) ProtoMessage()
- func (x *ShowResponse) ProtoReflect() protoreflect.Message
- func (x *ShowResponse) Reset()
- func (x *ShowResponse) String() string
- func (m *ShowResponse) Validate() error
- func (m *ShowResponse) ValidateAll() error
- type ShowResponseMultiError
- type ShowResponseValidationError
- func (e ShowResponseValidationError) Cause() error
- func (e ShowResponseValidationError) Error() string
- func (e ShowResponseValidationError) ErrorName() string
- func (e ShowResponseValidationError) Field() string
- func (e ShowResponseValidationError) Key() bool
- func (e ShowResponseValidationError) Reason() string
- type UnimplementedProjectServer
- func (UnimplementedProjectServer) AllContainers(context.Context, *AllContainersRequest) (*AllContainersResponse, error)
- func (UnimplementedProjectServer) Apply(*ApplyRequest, Project_ApplyServer) error
- func (UnimplementedProjectServer) ApplyDryRun(context.Context, *ApplyRequest) (*DryRunApplyResponse, error)
- func (UnimplementedProjectServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedProjectServer) HostVariables(context.Context, *HostVariablesRequest) (*HostVariablesResponse, error)
- func (UnimplementedProjectServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedProjectServer) Show(context.Context, *ShowRequest) (*ShowResponse, error)
- func (UnimplementedProjectServer) Version(context.Context, *VersionRequest) (*VersionResponse, error)
- type UnsafeProjectServer
- type VersionRequest
- func (*VersionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VersionRequest) GetProjectId() int64
- func (*VersionRequest) ProtoMessage()
- func (x *VersionRequest) ProtoReflect() protoreflect.Message
- func (x *VersionRequest) Reset()
- func (x *VersionRequest) String() string
- func (m *VersionRequest) Validate() error
- func (m *VersionRequest) ValidateAll() error
- type VersionRequestMultiError
- type VersionRequestValidationError
- func (e VersionRequestValidationError) Cause() error
- func (e VersionRequestValidationError) Error() string
- func (e VersionRequestValidationError) ErrorName() string
- func (e VersionRequestValidationError) Field() string
- func (e VersionRequestValidationError) Key() bool
- func (e VersionRequestValidationError) Reason() string
- type VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VersionResponse) GetVersion() int64
- func (*VersionResponse) ProtoMessage()
- func (x *VersionResponse) ProtoReflect() protoreflect.Message
- func (x *VersionResponse) Reset()
- func (x *VersionResponse) String() string
- func (m *VersionResponse) Validate() error
- func (m *VersionResponse) ValidateAll() error
- type VersionResponseMultiError
- type VersionResponseValidationError
- func (e VersionResponseValidationError) Cause() error
- func (e VersionResponseValidationError) Error() string
- func (e VersionResponseValidationError) ErrorName() string
- func (e VersionResponseValidationError) Field() string
- func (e VersionResponseValidationError) Key() bool
- func (e VersionResponseValidationError) Reason() string
Constants ¶
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 ¶
var File_project_project_proto protoreflect.FileDescriptor
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 ¶
func (m AllContainersRequestMultiError) Error() string
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 ¶
func (e AllContainersRequestValidationError) Cause() error
Cause function returns cause value.
func (AllContainersRequestValidationError) Error ¶
func (e AllContainersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AllContainersRequestValidationError) ErrorName ¶
func (e AllContainersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AllContainersRequestValidationError) Field ¶
func (e AllContainersRequestValidationError) Field() string
Field function returns field value.
func (AllContainersRequestValidationError) Key ¶
func (e AllContainersRequestValidationError) Key() bool
Key function returns key value.
func (AllContainersRequestValidationError) Reason ¶
func (e AllContainersRequestValidationError) Reason() string
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 ¶
func (m AllContainersResponseMultiError) Error() string
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 ¶
func (e AllContainersResponseValidationError) Cause() error
Cause function returns cause value.
func (AllContainersResponseValidationError) Error ¶
func (e AllContainersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AllContainersResponseValidationError) ErrorName ¶
func (e AllContainersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AllContainersResponseValidationError) Field ¶
func (e AllContainersResponseValidationError) Field() string
Field function returns field value.
func (AllContainersResponseValidationError) Key ¶
func (e AllContainersResponseValidationError) Key() bool
Key function returns key value.
func (AllContainersResponseValidationError) Reason ¶
func (e AllContainersResponseValidationError) Reason() string
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 ¶
func (e ApplyRequestValidationError) Cause() error
Cause function returns cause value.
func (ApplyRequestValidationError) Error ¶
func (e ApplyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ApplyRequestValidationError) ErrorName ¶
func (e ApplyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ApplyRequestValidationError) Field ¶
func (e ApplyRequestValidationError) Field() string
Field function returns field value.
func (ApplyRequestValidationError) Key ¶
func (e ApplyRequestValidationError) Key() bool
Key function returns key value.
func (ApplyRequestValidationError) Reason ¶
func (e ApplyRequestValidationError) Reason() string
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 ¶
func (e ApplyResponseValidationError) Cause() error
Cause function returns cause value.
func (ApplyResponseValidationError) Error ¶
func (e ApplyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ApplyResponseValidationError) ErrorName ¶
func (e ApplyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ApplyResponseValidationError) Field ¶
func (e ApplyResponseValidationError) Field() string
Field function returns field value.
func (ApplyResponseValidationError) Key ¶
func (e ApplyResponseValidationError) Key() bool
Key function returns key value.
func (ApplyResponseValidationError) Reason ¶
func (e ApplyResponseValidationError) Reason() string
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 ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
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 ¶
func (e DeleteResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteResponseValidationError) Error ¶
func (e DeleteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteResponseValidationError) ErrorName ¶
func (e DeleteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteResponseValidationError) Field ¶
func (e DeleteResponseValidationError) Field() string
Field function returns field value.
func (DeleteResponseValidationError) Key ¶
func (e DeleteResponseValidationError) Key() bool
Key function returns key value.
func (DeleteResponseValidationError) Reason ¶
func (e DeleteResponseValidationError) Reason() string
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 ¶
func (m DryRunApplyResponseMultiError) Error() string
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 ¶
func (e DryRunApplyResponseValidationError) Cause() error
Cause function returns cause value.
func (DryRunApplyResponseValidationError) Error ¶
func (e DryRunApplyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DryRunApplyResponseValidationError) ErrorName ¶
func (e DryRunApplyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DryRunApplyResponseValidationError) Field ¶
func (e DryRunApplyResponseValidationError) Field() string
Field function returns field value.
func (DryRunApplyResponseValidationError) Key ¶
func (e DryRunApplyResponseValidationError) Key() bool
Key function returns key value.
func (DryRunApplyResponseValidationError) Reason ¶
func (e DryRunApplyResponseValidationError) Reason() string
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 ¶
func (m HostVariablesRequestMultiError) Error() string
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 ¶
func (e HostVariablesRequestValidationError) Cause() error
Cause function returns cause value.
func (HostVariablesRequestValidationError) Error ¶
func (e HostVariablesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HostVariablesRequestValidationError) ErrorName ¶
func (e HostVariablesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HostVariablesRequestValidationError) Field ¶
func (e HostVariablesRequestValidationError) Field() string
Field function returns field value.
func (HostVariablesRequestValidationError) Key ¶
func (e HostVariablesRequestValidationError) Key() bool
Key function returns key value.
func (HostVariablesRequestValidationError) Reason ¶
func (e HostVariablesRequestValidationError) Reason() string
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 ¶
func (m HostVariablesResponseMultiError) Error() string
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 ¶
func (e HostVariablesResponseValidationError) Cause() error
Cause function returns cause value.
func (HostVariablesResponseValidationError) Error ¶
func (e HostVariablesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HostVariablesResponseValidationError) ErrorName ¶
func (e HostVariablesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HostVariablesResponseValidationError) Field ¶
func (e HostVariablesResponseValidationError) Field() string
Field function returns field value.
func (HostVariablesResponseValidationError) Key ¶
func (e HostVariablesResponseValidationError) Key() bool
Key function returns key value.
func (HostVariablesResponseValidationError) Reason ¶
func (e HostVariablesResponseValidationError) Reason() string
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 ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
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 ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
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://pkgo.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 ¶
func (e ShowRequestValidationError) Cause() error
Cause function returns cause value.
func (ShowRequestValidationError) Error ¶
func (e ShowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ShowRequestValidationError) ErrorName ¶
func (e ShowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ShowRequestValidationError) Field ¶
func (e ShowRequestValidationError) Field() string
Field function returns field value.
func (ShowRequestValidationError) Key ¶
func (e ShowRequestValidationError) Key() bool
Key function returns key value.
func (ShowRequestValidationError) Reason ¶
func (e ShowRequestValidationError) Reason() string
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 ¶
func (e ShowResponseValidationError) Cause() error
Cause function returns cause value.
func (ShowResponseValidationError) Error ¶
func (e ShowResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ShowResponseValidationError) ErrorName ¶
func (e ShowResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ShowResponseValidationError) Field ¶
func (e ShowResponseValidationError) Field() string
Field function returns field value.
func (ShowResponseValidationError) Key ¶
func (e ShowResponseValidationError) Key() bool
Key function returns key value.
func (ShowResponseValidationError) Reason ¶
func (e ShowResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedProjectServer ¶
type UnimplementedProjectServer struct { }
UnimplementedProjectServer must be embedded to have forward compatible implementations.
func (UnimplementedProjectServer) AllContainers ¶
func (UnimplementedProjectServer) AllContainers(context.Context, *AllContainersRequest) (*AllContainersResponse, error)
func (UnimplementedProjectServer) Apply ¶
func (UnimplementedProjectServer) Apply(*ApplyRequest, Project_ApplyServer) error
func (UnimplementedProjectServer) ApplyDryRun ¶
func (UnimplementedProjectServer) ApplyDryRun(context.Context, *ApplyRequest) (*DryRunApplyResponse, error)
func (UnimplementedProjectServer) Delete ¶
func (UnimplementedProjectServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedProjectServer) HostVariables ¶
func (UnimplementedProjectServer) HostVariables(context.Context, *HostVariablesRequest) (*HostVariablesResponse, error)
func (UnimplementedProjectServer) List ¶
func (UnimplementedProjectServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedProjectServer) Show ¶
func (UnimplementedProjectServer) Show(context.Context, *ShowRequest) (*ShowResponse, error)
func (UnimplementedProjectServer) Version ¶
func (UnimplementedProjectServer) Version(context.Context, *VersionRequest) (*VersionResponse, error)
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 ¶
func (e VersionRequestValidationError) Cause() error
Cause function returns cause value.
func (VersionRequestValidationError) Error ¶
func (e VersionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VersionRequestValidationError) ErrorName ¶
func (e VersionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VersionRequestValidationError) Field ¶
func (e VersionRequestValidationError) Field() string
Field function returns field value.
func (VersionRequestValidationError) Key ¶
func (e VersionRequestValidationError) Key() bool
Key function returns key value.
func (VersionRequestValidationError) Reason ¶
func (e VersionRequestValidationError) Reason() string
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 ¶
func (m VersionResponseMultiError) Error() string
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 ¶
func (e VersionResponseValidationError) Cause() error
Cause function returns cause value.
func (VersionResponseValidationError) Error ¶
func (e VersionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VersionResponseValidationError) ErrorName ¶
func (e VersionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VersionResponseValidationError) Field ¶
func (e VersionResponseValidationError) Field() string
Field function returns field value.
func (VersionResponseValidationError) Key ¶
func (e VersionResponseValidationError) Key() bool
Key function returns key value.
func (VersionResponseValidationError) Reason ¶
func (e VersionResponseValidationError) Reason() string
Reason function returns reason value.