Documentation ¶
Overview ¶
Package image is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package image is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterImageServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterImageServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ImageServiceClient) error
- func RegisterImageServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterImageServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ImageServiceServer) error
- func RegisterImageServiceServer(s grpc.ServiceRegistrar, srv ImageServiceServer)
- func RegisterRegistryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRegistryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RegistryServiceClient) error
- func RegisterRegistryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRegistryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RegistryServiceServer) error
- func RegisterRegistryServiceServer(s grpc.ServiceRegistrar, srv RegistryServiceServer)
- type Image
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetCommitAuthor() string
- func (x *Image) GetCommitId() string
- func (x *Image) GetCommitMsg() string
- func (x *Image) GetCreatedAt() *timestamppb.Timestamp
- func (x *Image) GetId() string
- func (x *Image) GetImage() string
- func (x *Image) GetName() string
- func (x *Image) GetPid() string
- func (x *Image) GetStatus() Image_Status
- func (x *Image) GetTag() string
- func (x *Image) GetUpdatedAt() *timestamppb.Timestamp
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (img *Image) SetImage(image string)
- func (x *Image) String() string
- func (m *Image) Validate() error
- func (m *Image) ValidateAll() error
- type ImageListRequest
- func (*ImageListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImageListRequest) GetPid() string
- func (x *ImageListRequest) GetStatus() Image_Status
- func (*ImageListRequest) ProtoMessage()
- func (x *ImageListRequest) ProtoReflect() protoreflect.Message
- func (x *ImageListRequest) Reset()
- func (x *ImageListRequest) String() string
- func (m *ImageListRequest) Validate() error
- func (m *ImageListRequest) ValidateAll() error
- type ImageListRequestMultiError
- type ImageListRequestValidationError
- func (e ImageListRequestValidationError) Cause() error
- func (e ImageListRequestValidationError) Error() string
- func (e ImageListRequestValidationError) ErrorName() string
- func (e ImageListRequestValidationError) Field() string
- func (e ImageListRequestValidationError) Key() bool
- func (e ImageListRequestValidationError) Reason() string
- type ImageListResponse
- func (*ImageListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImageListResponse) GetItems() []*Image
- func (x *ImageListResponse) GetTotal() int64
- func (*ImageListResponse) ProtoMessage()
- func (x *ImageListResponse) ProtoReflect() protoreflect.Message
- func (x *ImageListResponse) Reset()
- func (x *ImageListResponse) String() string
- func (m *ImageListResponse) Validate() error
- func (m *ImageListResponse) ValidateAll() error
- type ImageListResponseMultiError
- type ImageListResponseValidationError
- func (e ImageListResponseValidationError) Cause() error
- func (e ImageListResponseValidationError) Error() string
- func (e ImageListResponseValidationError) ErrorName() string
- func (e ImageListResponseValidationError) Field() string
- func (e ImageListResponseValidationError) Key() bool
- func (e ImageListResponseValidationError) Reason() string
- type ImageMultiError
- type ImageServiceClient
- type ImageServiceServer
- type ImageValidationError
- type Image_Status
- func (Image_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Image_Status) Enum() *Image_Status
- func (Image_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Image_Status) Number() protoreflect.EnumNumber
- func (x Image_Status) String() string
- func (Image_Status) Type() protoreflect.EnumType
- type Registry
- func (reg *Registry) BuildImage(name string) string
- func (reg *Registry) BuildImageWithTag(name, tag string) string
- func (*Registry) Descriptor() ([]byte, []int)deprecated
- func (x *Registry) GetCreatedAt() *timestamppb.Timestamp
- func (x *Registry) GetId() string
- func (x *Registry) GetIntro() string
- func (x *Registry) GetName() string
- func (x *Registry) GetNamespaces() []string
- func (x *Registry) GetPassword() string
- func (reg *Registry) GetSecretName() string
- func (x *Registry) GetServer() string
- func (x *Registry) GetStatus() Registry_Status
- func (x *Registry) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Registry) GetUsername() string
- func (reg *Registry) IsDockerhub() bool
- func (*Registry) ProtoMessage()
- func (x *Registry) ProtoReflect() protoreflect.Message
- func (x *Registry) Reset()
- func (x *Registry) String() string
- func (m *Registry) Validate() error
- func (m *Registry) ValidateAll() error
- type RegistryListRequest
- func (*RegistryListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegistryListRequest) GetPid() string
- func (*RegistryListRequest) ProtoMessage()
- func (x *RegistryListRequest) ProtoReflect() protoreflect.Message
- func (x *RegistryListRequest) Reset()
- func (x *RegistryListRequest) String() string
- func (m *RegistryListRequest) Validate() error
- func (m *RegistryListRequest) ValidateAll() error
- type RegistryListRequestMultiError
- type RegistryListRequestValidationError
- func (e RegistryListRequestValidationError) Cause() error
- func (e RegistryListRequestValidationError) Error() string
- func (e RegistryListRequestValidationError) ErrorName() string
- func (e RegistryListRequestValidationError) Field() string
- func (e RegistryListRequestValidationError) Key() bool
- func (e RegistryListRequestValidationError) Reason() string
- type RegistryListResponse
- func (*RegistryListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegistryListResponse) GetItems() []*Registry
- func (x *RegistryListResponse) GetTotal() int64
- func (*RegistryListResponse) ProtoMessage()
- func (x *RegistryListResponse) ProtoReflect() protoreflect.Message
- func (x *RegistryListResponse) Reset()
- func (x *RegistryListResponse) String() string
- func (m *RegistryListResponse) Validate() error
- func (m *RegistryListResponse) ValidateAll() error
- type RegistryListResponseMultiError
- type RegistryListResponseValidationError
- func (e RegistryListResponseValidationError) Cause() error
- func (e RegistryListResponseValidationError) Error() string
- func (e RegistryListResponseValidationError) ErrorName() string
- func (e RegistryListResponseValidationError) Field() string
- func (e RegistryListResponseValidationError) Key() bool
- func (e RegistryListResponseValidationError) Reason() string
- type RegistryMultiError
- type RegistryServiceClient
- type RegistryServiceServer
- type RegistryValidationError
- type Registry_Status
- func (Registry_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Registry_Status) Enum() *Registry_Status
- func (Registry_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Registry_Status) Number() protoreflect.EnumNumber
- func (x Registry_Status) String() string
- func (Registry_Status) Type() protoreflect.EnumType
- type UnimplementedImageServiceServer
- func (UnimplementedImageServiceServer) Create(context.Context, *Image) (*Image, error)
- func (UnimplementedImageServiceServer) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error)
- func (UnimplementedImageServiceServer) List(context.Context, *ImageListRequest) (*ImageListResponse, error)
- func (UnimplementedImageServiceServer) Update(context.Context, *Image) (*Image, error)
- type UnimplementedRegistryServiceServer
- func (UnimplementedRegistryServiceServer) Create(context.Context, *Registry) (*Registry, error)
- func (UnimplementedRegistryServiceServer) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error)
- func (UnimplementedRegistryServiceServer) List(context.Context, *RegistryListRequest) (*RegistryListResponse, error)
- func (UnimplementedRegistryServiceServer) Update(context.Context, *Registry) (*Registry, error)
- type UnsafeImageServiceServer
- type UnsafeRegistryServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Image_Status_name = map[int32]string{ 0: "UNSPECIFIED", 1: "PENDING", 2: "BUILDING", 3: "PUBLISHED", 4: "EXPIRED", 5: "FAILED", } Image_Status_value = map[string]int32{ "UNSPECIFIED": 0, "PENDING": 1, "BUILDING": 2, "PUBLISHED": 3, "EXPIRED": 4, "FAILED": 5, } )
Enum value maps for Image_Status.
var ( Registry_Status_name = map[int32]string{ 0: "PENDING", 1: "READY", } Registry_Status_value = map[string]int32{ "PENDING": 0, "READY": 1, } )
Enum value maps for Registry_Status.
var File_image_image_proto protoreflect.FileDescriptor
var File_image_registry_proto protoreflect.FileDescriptor
var ImageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "image.ImageService", HandlerType: (*ImageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _ImageService_List_Handler, }, { MethodName: "Create", Handler: _ImageService_Create_Handler, }, { MethodName: "Update", Handler: _ImageService_Update_Handler, }, { MethodName: "Delete", Handler: _ImageService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "image/image.proto", }
ImageService_ServiceDesc is the grpc.ServiceDesc for ImageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RegistryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "image.RegistryService", HandlerType: (*RegistryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _RegistryService_List_Handler, }, { MethodName: "Create", Handler: _RegistryService_Create_Handler, }, { MethodName: "Update", Handler: _RegistryService_Update_Handler, }, { MethodName: "Delete", Handler: _RegistryService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "image/registry.proto", }
RegistryService_ServiceDesc is the grpc.ServiceDesc for RegistryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterImageServiceHandler ¶
func RegisterImageServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterImageServiceHandler registers the http handlers for service ImageService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterImageServiceHandlerClient ¶
func RegisterImageServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ImageServiceClient) error
RegisterImageServiceHandlerClient registers the http handlers for service ImageService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ImageServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ImageServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ImageServiceClient" to call the correct interceptors.
func RegisterImageServiceHandlerFromEndpoint ¶
func RegisterImageServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterImageServiceHandlerFromEndpoint is same as RegisterImageServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterImageServiceHandlerServer ¶
func RegisterImageServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ImageServiceServer) error
RegisterImageServiceHandlerServer registers the http handlers for service ImageService to "mux". UnaryRPC :call ImageServiceServer 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 RegisterImageServiceHandlerFromEndpoint instead.
func RegisterImageServiceServer ¶
func RegisterImageServiceServer(s grpc.ServiceRegistrar, srv ImageServiceServer)
func RegisterRegistryServiceHandler ¶
func RegisterRegistryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRegistryServiceHandler registers the http handlers for service RegistryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRegistryServiceHandlerClient ¶
func RegisterRegistryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RegistryServiceClient) error
RegisterRegistryServiceHandlerClient registers the http handlers for service RegistryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RegistryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RegistryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RegistryServiceClient" to call the correct interceptors.
func RegisterRegistryServiceHandlerFromEndpoint ¶
func RegisterRegistryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRegistryServiceHandlerFromEndpoint is same as RegisterRegistryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRegistryServiceHandlerServer ¶
func RegisterRegistryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RegistryServiceServer) error
RegisterRegistryServiceHandlerServer registers the http handlers for service RegistryService to "mux". UnaryRPC :call RegistryServiceServer 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 RegisterRegistryServiceHandlerFromEndpoint instead.
func RegisterRegistryServiceServer ¶
func RegisterRegistryServiceServer(s grpc.ServiceRegistrar, srv RegistryServiceServer)
Types ¶
type Image ¶
type Image struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` // @gotags: bson:"_id,omitempty" Pid string `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` CommitId string `protobuf:"bytes,6,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty" bson:"commit_id,omitempty"` // @gotags: bson:"commit_id,omitempty" CommitMsg string `protobuf:"bytes,7,opt,name=commit_msg,json=commitMsg,proto3" json:"commit_msg,omitempty" bson:"commit_msg,omitempty"` // @gotags: bson:"commit_msg,omitempty" CommitAuthor string `` // @gotags: bson:"commit_author,omitempty" /* 128-byte string literal not displayed */ Status Image_Status `protobuf:"varint,9,opt,name=status,proto3,enum=image.Image_Status" json:"status,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at,omitempty"` // @gotags: bson:"created_at,omitempty" UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,103,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at,omitempty"` // @gotags: bson:"updated_at,omitempty" // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) GetCommitAuthor ¶
func (*Image) GetCommitId ¶
func (*Image) GetCommitMsg ¶
func (*Image) GetCreatedAt ¶
func (x *Image) GetCreatedAt() *timestamppb.Timestamp
func (*Image) GetStatus ¶
func (x *Image) GetStatus() Image_Status
func (*Image) GetUpdatedAt ¶
func (x *Image) GetUpdatedAt() *timestamppb.Timestamp
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
func (*Image) Validate ¶
Validate checks the field values on Image 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 (*Image) ValidateAll ¶
ValidateAll checks the field values on Image 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 ImageMultiError, or nil if none found.
type ImageListRequest ¶
type ImageListRequest struct { Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"` Status Image_Status `protobuf:"varint,2,opt,name=status,proto3,enum=image.Image_Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ImageListRequest) Descriptor
deprecated
func (*ImageListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImageListRequest.ProtoReflect.Descriptor instead.
func (*ImageListRequest) GetPid ¶
func (x *ImageListRequest) GetPid() string
func (*ImageListRequest) GetStatus ¶
func (x *ImageListRequest) GetStatus() Image_Status
func (*ImageListRequest) ProtoMessage ¶
func (*ImageListRequest) ProtoMessage()
func (*ImageListRequest) ProtoReflect ¶
func (x *ImageListRequest) ProtoReflect() protoreflect.Message
func (*ImageListRequest) Reset ¶
func (x *ImageListRequest) Reset()
func (*ImageListRequest) String ¶
func (x *ImageListRequest) String() string
func (*ImageListRequest) Validate ¶
func (m *ImageListRequest) Validate() error
Validate checks the field values on ImageListRequest 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 (*ImageListRequest) ValidateAll ¶
func (m *ImageListRequest) ValidateAll() error
ValidateAll checks the field values on ImageListRequest 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 ImageListRequestMultiError, or nil if none found.
type ImageListRequestMultiError ¶
type ImageListRequestMultiError []error
ImageListRequestMultiError is an error wrapping multiple validation errors returned by ImageListRequest.ValidateAll() if the designated constraints aren't met.
func (ImageListRequestMultiError) AllErrors ¶
func (m ImageListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ImageListRequestMultiError) Error ¶
func (m ImageListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ImageListRequestValidationError ¶
type ImageListRequestValidationError struct {
// contains filtered or unexported fields
}
ImageListRequestValidationError is the validation error returned by ImageListRequest.Validate if the designated constraints aren't met.
func (ImageListRequestValidationError) Cause ¶
func (e ImageListRequestValidationError) Cause() error
Cause function returns cause value.
func (ImageListRequestValidationError) Error ¶
func (e ImageListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ImageListRequestValidationError) ErrorName ¶
func (e ImageListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ImageListRequestValidationError) Field ¶
func (e ImageListRequestValidationError) Field() string
Field function returns field value.
func (ImageListRequestValidationError) Key ¶
func (e ImageListRequestValidationError) Key() bool
Key function returns key value.
func (ImageListRequestValidationError) Reason ¶
func (e ImageListRequestValidationError) Reason() string
Reason function returns reason value.
type ImageListResponse ¶
type ImageListResponse struct { Items []*Image `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ImageListResponse) Descriptor
deprecated
func (*ImageListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImageListResponse.ProtoReflect.Descriptor instead.
func (*ImageListResponse) GetItems ¶
func (x *ImageListResponse) GetItems() []*Image
func (*ImageListResponse) GetTotal ¶
func (x *ImageListResponse) GetTotal() int64
func (*ImageListResponse) ProtoMessage ¶
func (*ImageListResponse) ProtoMessage()
func (*ImageListResponse) ProtoReflect ¶
func (x *ImageListResponse) ProtoReflect() protoreflect.Message
func (*ImageListResponse) Reset ¶
func (x *ImageListResponse) Reset()
func (*ImageListResponse) String ¶
func (x *ImageListResponse) String() string
func (*ImageListResponse) Validate ¶
func (m *ImageListResponse) Validate() error
Validate checks the field values on ImageListResponse 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 (*ImageListResponse) ValidateAll ¶
func (m *ImageListResponse) ValidateAll() error
ValidateAll checks the field values on ImageListResponse 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 ImageListResponseMultiError, or nil if none found.
type ImageListResponseMultiError ¶
type ImageListResponseMultiError []error
ImageListResponseMultiError is an error wrapping multiple validation errors returned by ImageListResponse.ValidateAll() if the designated constraints aren't met.
func (ImageListResponseMultiError) AllErrors ¶
func (m ImageListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ImageListResponseMultiError) Error ¶
func (m ImageListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ImageListResponseValidationError ¶
type ImageListResponseValidationError struct {
// contains filtered or unexported fields
}
ImageListResponseValidationError is the validation error returned by ImageListResponse.Validate if the designated constraints aren't met.
func (ImageListResponseValidationError) Cause ¶
func (e ImageListResponseValidationError) Cause() error
Cause function returns cause value.
func (ImageListResponseValidationError) Error ¶
func (e ImageListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ImageListResponseValidationError) ErrorName ¶
func (e ImageListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ImageListResponseValidationError) Field ¶
func (e ImageListResponseValidationError) Field() string
Field function returns field value.
func (ImageListResponseValidationError) Key ¶
func (e ImageListResponseValidationError) Key() bool
Key function returns key value.
func (ImageListResponseValidationError) Reason ¶
func (e ImageListResponseValidationError) Reason() string
Reason function returns reason value.
type ImageMultiError ¶
type ImageMultiError []error
ImageMultiError is an error wrapping multiple validation errors returned by Image.ValidateAll() if the designated constraints aren't met.
func (ImageMultiError) AllErrors ¶
func (m ImageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ImageMultiError) Error ¶
func (m ImageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ImageServiceClient ¶
type ImageServiceClient interface { List(ctx context.Context, in *ImageListRequest, opts ...grpc.CallOption) (*ImageListResponse, error) Create(ctx context.Context, in *Image, opts ...grpc.CallOption) (*Image, error) Update(ctx context.Context, in *Image, opts ...grpc.CallOption) (*Image, error) Delete(ctx context.Context, in *kiae.IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ImageServiceClient is the client API for ImageService 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 NewImageServiceClient ¶
func NewImageServiceClient(cc grpc.ClientConnInterface) ImageServiceClient
type ImageServiceServer ¶
type ImageServiceServer interface { List(context.Context, *ImageListRequest) (*ImageListResponse, error) Create(context.Context, *Image) (*Image, error) Update(context.Context, *Image) (*Image, error) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error) }
ImageServiceServer is the server API for ImageService service. All implementations should embed UnimplementedImageServiceServer for forward compatibility
type ImageValidationError ¶
type ImageValidationError struct {
// contains filtered or unexported fields
}
ImageValidationError is the validation error returned by Image.Validate if the designated constraints aren't met.
func (ImageValidationError) Cause ¶
func (e ImageValidationError) Cause() error
Cause function returns cause value.
func (ImageValidationError) Error ¶
func (e ImageValidationError) Error() string
Error satisfies the builtin error interface
func (ImageValidationError) ErrorName ¶
func (e ImageValidationError) ErrorName() string
ErrorName returns error name.
func (ImageValidationError) Field ¶
func (e ImageValidationError) Field() string
Field function returns field value.
func (ImageValidationError) Key ¶
func (e ImageValidationError) Key() bool
Key function returns key value.
func (ImageValidationError) Reason ¶
func (e ImageValidationError) Reason() string
Reason function returns reason value.
type Image_Status ¶
type Image_Status int32
const ( Image_UNSPECIFIED Image_Status = 0 Image_PENDING Image_Status = 1 Image_BUILDING Image_Status = 2 Image_PUBLISHED Image_Status = 3 Image_EXPIRED Image_Status = 4 Image_FAILED Image_Status = 5 )
func (Image_Status) Descriptor ¶
func (Image_Status) Descriptor() protoreflect.EnumDescriptor
func (Image_Status) Enum ¶
func (x Image_Status) Enum() *Image_Status
func (Image_Status) EnumDescriptor
deprecated
func (Image_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Image_Status.Descriptor instead.
func (Image_Status) Number ¶
func (x Image_Status) Number() protoreflect.EnumNumber
func (Image_Status) String ¶
func (x Image_Status) String() string
func (Image_Status) Type ¶
func (Image_Status) Type() protoreflect.EnumType
type Registry ¶
type Registry struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` // @gotags: bson:"_id,omitempty" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Intro string `protobuf:"bytes,4,opt,name=intro,proto3" json:"intro,omitempty"` Server string `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"` Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"` Namespaces []string `protobuf:"bytes,8,rep,name=namespaces,proto3" json:"namespaces,omitempty"` Status Registry_Status `protobuf:"varint,10,opt,name=status,proto3,enum=image.Registry_Status" json:"status,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at,omitempty"` // @gotags: bson:"created_at,omitempty" UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,103,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at,omitempty"` // @gotags: bson:"updated_at,omitempty" // contains filtered or unexported fields }
func (*Registry) BuildImage ¶
func (*Registry) BuildImageWithTag ¶
func (*Registry) Descriptor
deprecated
func (*Registry) GetCreatedAt ¶
func (x *Registry) GetCreatedAt() *timestamppb.Timestamp
func (*Registry) GetNamespaces ¶
func (*Registry) GetPassword ¶
func (*Registry) GetSecretName ¶
func (*Registry) GetStatus ¶
func (x *Registry) GetStatus() Registry_Status
func (*Registry) GetUpdatedAt ¶
func (x *Registry) GetUpdatedAt() *timestamppb.Timestamp
func (*Registry) GetUsername ¶
func (*Registry) IsDockerhub ¶
func (*Registry) ProtoMessage ¶
func (*Registry) ProtoMessage()
func (*Registry) ProtoReflect ¶
func (x *Registry) ProtoReflect() protoreflect.Message
func (*Registry) Validate ¶
Validate checks the field values on Registry 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 (*Registry) ValidateAll ¶
ValidateAll checks the field values on Registry 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 RegistryMultiError, or nil if none found.
type RegistryListRequest ¶
type RegistryListRequest struct { Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*RegistryListRequest) Descriptor
deprecated
func (*RegistryListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegistryListRequest.ProtoReflect.Descriptor instead.
func (*RegistryListRequest) GetPid ¶
func (x *RegistryListRequest) GetPid() string
func (*RegistryListRequest) ProtoMessage ¶
func (*RegistryListRequest) ProtoMessage()
func (*RegistryListRequest) ProtoReflect ¶
func (x *RegistryListRequest) ProtoReflect() protoreflect.Message
func (*RegistryListRequest) Reset ¶
func (x *RegistryListRequest) Reset()
func (*RegistryListRequest) String ¶
func (x *RegistryListRequest) String() string
func (*RegistryListRequest) Validate ¶
func (m *RegistryListRequest) Validate() error
Validate checks the field values on RegistryListRequest 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 (*RegistryListRequest) ValidateAll ¶
func (m *RegistryListRequest) ValidateAll() error
ValidateAll checks the field values on RegistryListRequest 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 RegistryListRequestMultiError, or nil if none found.
type RegistryListRequestMultiError ¶
type RegistryListRequestMultiError []error
RegistryListRequestMultiError is an error wrapping multiple validation errors returned by RegistryListRequest.ValidateAll() if the designated constraints aren't met.
func (RegistryListRequestMultiError) AllErrors ¶
func (m RegistryListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegistryListRequestMultiError) Error ¶
func (m RegistryListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegistryListRequestValidationError ¶
type RegistryListRequestValidationError struct {
// contains filtered or unexported fields
}
RegistryListRequestValidationError is the validation error returned by RegistryListRequest.Validate if the designated constraints aren't met.
func (RegistryListRequestValidationError) Cause ¶
func (e RegistryListRequestValidationError) Cause() error
Cause function returns cause value.
func (RegistryListRequestValidationError) Error ¶
func (e RegistryListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegistryListRequestValidationError) ErrorName ¶
func (e RegistryListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegistryListRequestValidationError) Field ¶
func (e RegistryListRequestValidationError) Field() string
Field function returns field value.
func (RegistryListRequestValidationError) Key ¶
func (e RegistryListRequestValidationError) Key() bool
Key function returns key value.
func (RegistryListRequestValidationError) Reason ¶
func (e RegistryListRequestValidationError) Reason() string
Reason function returns reason value.
type RegistryListResponse ¶
type RegistryListResponse struct { Items []*Registry `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*RegistryListResponse) Descriptor
deprecated
func (*RegistryListResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegistryListResponse.ProtoReflect.Descriptor instead.
func (*RegistryListResponse) GetItems ¶
func (x *RegistryListResponse) GetItems() []*Registry
func (*RegistryListResponse) GetTotal ¶
func (x *RegistryListResponse) GetTotal() int64
func (*RegistryListResponse) ProtoMessage ¶
func (*RegistryListResponse) ProtoMessage()
func (*RegistryListResponse) ProtoReflect ¶
func (x *RegistryListResponse) ProtoReflect() protoreflect.Message
func (*RegistryListResponse) Reset ¶
func (x *RegistryListResponse) Reset()
func (*RegistryListResponse) String ¶
func (x *RegistryListResponse) String() string
func (*RegistryListResponse) Validate ¶
func (m *RegistryListResponse) Validate() error
Validate checks the field values on RegistryListResponse 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 (*RegistryListResponse) ValidateAll ¶
func (m *RegistryListResponse) ValidateAll() error
ValidateAll checks the field values on RegistryListResponse 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 RegistryListResponseMultiError, or nil if none found.
type RegistryListResponseMultiError ¶
type RegistryListResponseMultiError []error
RegistryListResponseMultiError is an error wrapping multiple validation errors returned by RegistryListResponse.ValidateAll() if the designated constraints aren't met.
func (RegistryListResponseMultiError) AllErrors ¶
func (m RegistryListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegistryListResponseMultiError) Error ¶
func (m RegistryListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegistryListResponseValidationError ¶
type RegistryListResponseValidationError struct {
// contains filtered or unexported fields
}
RegistryListResponseValidationError is the validation error returned by RegistryListResponse.Validate if the designated constraints aren't met.
func (RegistryListResponseValidationError) Cause ¶
func (e RegistryListResponseValidationError) Cause() error
Cause function returns cause value.
func (RegistryListResponseValidationError) Error ¶
func (e RegistryListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegistryListResponseValidationError) ErrorName ¶
func (e RegistryListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegistryListResponseValidationError) Field ¶
func (e RegistryListResponseValidationError) Field() string
Field function returns field value.
func (RegistryListResponseValidationError) Key ¶
func (e RegistryListResponseValidationError) Key() bool
Key function returns key value.
func (RegistryListResponseValidationError) Reason ¶
func (e RegistryListResponseValidationError) Reason() string
Reason function returns reason value.
type RegistryMultiError ¶
type RegistryMultiError []error
RegistryMultiError is an error wrapping multiple validation errors returned by Registry.ValidateAll() if the designated constraints aren't met.
func (RegistryMultiError) AllErrors ¶
func (m RegistryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegistryMultiError) Error ¶
func (m RegistryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegistryServiceClient ¶
type RegistryServiceClient interface { List(ctx context.Context, in *RegistryListRequest, opts ...grpc.CallOption) (*RegistryListResponse, error) Create(ctx context.Context, in *Registry, opts ...grpc.CallOption) (*Registry, error) Update(ctx context.Context, in *Registry, opts ...grpc.CallOption) (*Registry, error) Delete(ctx context.Context, in *kiae.IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
RegistryServiceClient is the client API for RegistryService 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 NewRegistryServiceClient ¶
func NewRegistryServiceClient(cc grpc.ClientConnInterface) RegistryServiceClient
type RegistryServiceServer ¶
type RegistryServiceServer interface { List(context.Context, *RegistryListRequest) (*RegistryListResponse, error) Create(context.Context, *Registry) (*Registry, error) Update(context.Context, *Registry) (*Registry, error) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error) }
RegistryServiceServer is the server API for RegistryService service. All implementations should embed UnimplementedRegistryServiceServer for forward compatibility
type RegistryValidationError ¶
type RegistryValidationError struct {
// contains filtered or unexported fields
}
RegistryValidationError is the validation error returned by Registry.Validate if the designated constraints aren't met.
func (RegistryValidationError) Cause ¶
func (e RegistryValidationError) Cause() error
Cause function returns cause value.
func (RegistryValidationError) Error ¶
func (e RegistryValidationError) Error() string
Error satisfies the builtin error interface
func (RegistryValidationError) ErrorName ¶
func (e RegistryValidationError) ErrorName() string
ErrorName returns error name.
func (RegistryValidationError) Field ¶
func (e RegistryValidationError) Field() string
Field function returns field value.
func (RegistryValidationError) Key ¶
func (e RegistryValidationError) Key() bool
Key function returns key value.
func (RegistryValidationError) Reason ¶
func (e RegistryValidationError) Reason() string
Reason function returns reason value.
type Registry_Status ¶
type Registry_Status int32
const ( Registry_PENDING Registry_Status = 0 Registry_READY Registry_Status = 1 )
func (Registry_Status) Descriptor ¶
func (Registry_Status) Descriptor() protoreflect.EnumDescriptor
func (Registry_Status) Enum ¶
func (x Registry_Status) Enum() *Registry_Status
func (Registry_Status) EnumDescriptor
deprecated
func (Registry_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Registry_Status.Descriptor instead.
func (Registry_Status) Number ¶
func (x Registry_Status) Number() protoreflect.EnumNumber
func (Registry_Status) String ¶
func (x Registry_Status) String() string
func (Registry_Status) Type ¶
func (Registry_Status) Type() protoreflect.EnumType
type UnimplementedImageServiceServer ¶
type UnimplementedImageServiceServer struct { }
UnimplementedImageServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedImageServiceServer) List ¶
func (UnimplementedImageServiceServer) List(context.Context, *ImageListRequest) (*ImageListResponse, error)
type UnimplementedRegistryServiceServer ¶
type UnimplementedRegistryServiceServer struct { }
UnimplementedRegistryServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRegistryServiceServer) List ¶
func (UnimplementedRegistryServiceServer) List(context.Context, *RegistryListRequest) (*RegistryListResponse, error)
type UnsafeImageServiceServer ¶
type UnsafeImageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeImageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ImageServiceServer will result in compilation errors.
type UnsafeRegistryServiceServer ¶
type UnsafeRegistryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRegistryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistryServiceServer will result in compilation errors.