image

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_image_image_proto protoreflect.FileDescriptor
View Source
var File_image_registry_proto protoreflect.FileDescriptor
View Source
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)

View Source
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"`
	BuilderId string                 `protobuf:"bytes,10,opt,name=builder_id,json=builderId,proto3" json:"builder_id,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) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetBuilderId added in v0.0.10

func (x *Image) GetBuilderId() string

func (*Image) GetCommitAuthor

func (x *Image) GetCommitAuthor() string

func (*Image) GetCommitId

func (x *Image) GetCommitId() string

func (*Image) GetCommitMsg

func (x *Image) GetCommitMsg() string

func (*Image) GetCreatedAt

func (x *Image) GetCreatedAt() *timestamppb.Timestamp

func (*Image) GetId

func (x *Image) GetId() string

func (*Image) GetImage

func (x *Image) GetImage() string

func (*Image) GetName

func (x *Image) GetName() string

func (*Image) GetPid

func (x *Image) GetPid() string

func (*Image) GetStatus

func (x *Image) GetStatus() Image_Status

func (*Image) GetTag

func (x *Image) GetTag() string

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

func (x *Image) Reset()

func (*Image) SetImage

func (img *Image) SetImage(image string)

func (*Image) String

func (x *Image) String() string

func (*Image) Validate

func (m *Image) Validate() error

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

func (m *Image) ValidateAll() error

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

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

Cause function returns cause value.

func (ImageListRequestValidationError) Error

Error satisfies the builtin error interface

func (ImageListRequestValidationError) ErrorName

ErrorName returns error name.

func (ImageListRequestValidationError) Field

Field function returns field value.

func (ImageListRequestValidationError) Key

Key function returns key value.

func (ImageListRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ImageListResponseValidationError) Error

Error satisfies the builtin error interface

func (ImageListResponseValidationError) ErrorName

ErrorName returns error name.

func (ImageListResponseValidationError) Field

Field function returns field value.

func (ImageListResponseValidationError) Key

Key function returns key value.

func (ImageListResponseValidationError) Reason

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.

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) 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 (Image_Status) String

func (x Image_Status) String() string

func (Image_Status) Type

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 (reg *Registry) BuildImage(name string) string

func (*Registry) BuildImageWithTag

func (reg *Registry) BuildImageWithTag(name, tag string) string

func (*Registry) Descriptor deprecated

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

Deprecated: Use Registry.ProtoReflect.Descriptor instead.

func (*Registry) GetCreatedAt

func (x *Registry) GetCreatedAt() *timestamppb.Timestamp

func (*Registry) GetId

func (x *Registry) GetId() string

func (*Registry) GetIntro

func (x *Registry) GetIntro() string

func (*Registry) GetName

func (x *Registry) GetName() string

func (*Registry) GetNamespaces

func (x *Registry) GetNamespaces() []string

func (*Registry) GetPassword

func (x *Registry) GetPassword() string

func (*Registry) GetSecretName

func (reg *Registry) GetSecretName() string

func (*Registry) GetServer

func (x *Registry) GetServer() string

func (*Registry) GetStatus

func (x *Registry) GetStatus() Registry_Status

func (*Registry) GetUpdatedAt

func (x *Registry) GetUpdatedAt() *timestamppb.Timestamp

func (*Registry) GetUsername

func (x *Registry) GetUsername() string

func (*Registry) IsDockerhub

func (reg *Registry) IsDockerhub() bool

func (*Registry) ProtoMessage

func (*Registry) ProtoMessage()

func (*Registry) ProtoReflect

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

func (*Registry) Reset

func (x *Registry) Reset()

func (*Registry) String

func (x *Registry) String() string

func (*Registry) Validate

func (m *Registry) Validate() error

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

func (m *Registry) ValidateAll() error

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

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

Cause function returns cause value.

func (RegistryListRequestValidationError) Error

Error satisfies the builtin error interface

func (RegistryListRequestValidationError) ErrorName

ErrorName returns error name.

func (RegistryListRequestValidationError) Field

Field function returns field value.

func (RegistryListRequestValidationError) Key

Key function returns key value.

func (RegistryListRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RegistryListResponseValidationError) Error

Error satisfies the builtin error interface

func (RegistryListResponseValidationError) ErrorName

ErrorName returns error name.

func (RegistryListResponseValidationError) Field

Field function returns field value.

func (RegistryListResponseValidationError) Key

Key function returns key value.

func (RegistryListResponseValidationError) Reason

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.

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) 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 (Registry_Status) String

func (x Registry_Status) String() string

func (Registry_Status) Type

type UnimplementedImageServiceServer

type UnimplementedImageServiceServer struct {
}

UnimplementedImageServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedImageServiceServer) Create

func (UnimplementedImageServiceServer) Delete

func (UnimplementedImageServiceServer) List

func (UnimplementedImageServiceServer) Update

type UnimplementedRegistryServiceServer

type UnimplementedRegistryServiceServer struct {
}

UnimplementedRegistryServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRegistryServiceServer) Create

func (UnimplementedRegistryServiceServer) Delete

func (UnimplementedRegistryServiceServer) List

func (UnimplementedRegistryServiceServer) Update

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.

Jump to

Keyboard shortcuts

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