Documentation ¶
Overview ¶
Package builder is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBuilderServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBuilderServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BuilderServiceClient) error
- func RegisterBuilderServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBuilderServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BuilderServiceServer) error
- func RegisterBuilderServiceServer(s grpc.ServiceRegistrar, srv BuilderServiceServer)
- type Builder
- func (*Builder) Descriptor() ([]byte, []int)deprecated
- func (x *Builder) GetArtifact() string
- func (x *Builder) GetBuildImage() string
- func (x *Builder) GetCreatedAt() *timestamppb.Timestamp
- func (x *Builder) GetId() string
- func (x *Builder) GetIntro() string
- func (x *Builder) GetName() string
- func (x *Builder) GetPacks() []*Pack
- func (x *Builder) GetRegistryId() string
- func (x *Builder) GetRunImage() string
- func (x *Builder) GetStackId() string
- func (x *Builder) GetStatus() Builder_Status
- func (x *Builder) GetUpdatedAt() *timestamppb.Timestamp
- func (*Builder) ProtoMessage()
- func (x *Builder) ProtoReflect() protoreflect.Message
- func (x *Builder) Reset()
- func (x *Builder) String() string
- func (m *Builder) Validate() error
- func (m *Builder) ValidateAll() error
- type BuilderListRequest
- func (*BuilderListRequest) Descriptor() ([]byte, []int)deprecated
- func (*BuilderListRequest) ProtoMessage()
- func (x *BuilderListRequest) ProtoReflect() protoreflect.Message
- func (x *BuilderListRequest) Reset()
- func (x *BuilderListRequest) String() string
- func (m *BuilderListRequest) Validate() error
- func (m *BuilderListRequest) ValidateAll() error
- type BuilderListRequestMultiError
- type BuilderListRequestValidationError
- func (e BuilderListRequestValidationError) Cause() error
- func (e BuilderListRequestValidationError) Error() string
- func (e BuilderListRequestValidationError) ErrorName() string
- func (e BuilderListRequestValidationError) Field() string
- func (e BuilderListRequestValidationError) Key() bool
- func (e BuilderListRequestValidationError) Reason() string
- type BuilderListResponse
- func (*BuilderListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuilderListResponse) GetItems() []*Builder
- func (x *BuilderListResponse) GetTotal() int64
- func (*BuilderListResponse) ProtoMessage()
- func (x *BuilderListResponse) ProtoReflect() protoreflect.Message
- func (x *BuilderListResponse) Reset()
- func (x *BuilderListResponse) String() string
- func (m *BuilderListResponse) Validate() error
- func (m *BuilderListResponse) ValidateAll() error
- type BuilderListResponseMultiError
- type BuilderListResponseValidationError
- func (e BuilderListResponseValidationError) Cause() error
- func (e BuilderListResponseValidationError) Error() string
- func (e BuilderListResponseValidationError) ErrorName() string
- func (e BuilderListResponseValidationError) Field() string
- func (e BuilderListResponseValidationError) Key() bool
- func (e BuilderListResponseValidationError) Reason() string
- type BuilderMultiError
- type BuilderServiceClient
- type BuilderServiceServer
- type BuilderValidationError
- type Builder_Status
- func (Builder_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Builder_Status) Enum() *Builder_Status
- func (Builder_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Builder_Status) Number() protoreflect.EnumNumber
- func (x Builder_Status) String() string
- func (Builder_Status) Type() protoreflect.EnumType
- type Env
- func (*Env) Descriptor() ([]byte, []int)deprecated
- func (x *Env) GetDefaultValue() string
- func (x *Env) GetIntro() string
- func (x *Env) GetName() string
- func (*Env) ProtoMessage()
- func (x *Env) ProtoReflect() protoreflect.Message
- func (x *Env) Reset()
- func (x *Env) String() string
- func (m *Env) Validate() error
- func (m *Env) ValidateAll() error
- type EnvMultiError
- type EnvValidationError
- type Pack
- func (*Pack) Descriptor() ([]byte, []int)deprecated
- func (x *Pack) GetEnvs() []*Env
- func (x *Pack) GetId() string
- func (x *Pack) GetImage() string
- func (x *Pack) GetLang() string
- func (*Pack) ProtoMessage()
- func (x *Pack) ProtoReflect() protoreflect.Message
- func (x *Pack) Reset()
- func (x *Pack) String() string
- func (m *Pack) Validate() error
- func (m *Pack) ValidateAll() error
- type PackMultiError
- type PackValidationError
- type SuggestedStack
- func (*SuggestedStack) Descriptor() ([]byte, []int)deprecated
- func (x *SuggestedStack) GetBuildImage() string
- func (x *SuggestedStack) GetIntro() string
- func (x *SuggestedStack) GetName() string
- func (x *SuggestedStack) GetRunImage() string
- func (x *SuggestedStack) GetStackId() string
- func (*SuggestedStack) ProtoMessage()
- func (x *SuggestedStack) ProtoReflect() protoreflect.Message
- func (x *SuggestedStack) Reset()
- func (x *SuggestedStack) String() string
- func (m *SuggestedStack) Validate() error
- func (m *SuggestedStack) ValidateAll() error
- type SuggestedStackListResponse
- func (*SuggestedStackListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SuggestedStackListResponse) GetItems() []*SuggestedStack
- func (*SuggestedStackListResponse) ProtoMessage()
- func (x *SuggestedStackListResponse) ProtoReflect() protoreflect.Message
- func (x *SuggestedStackListResponse) Reset()
- func (x *SuggestedStackListResponse) String() string
- func (m *SuggestedStackListResponse) Validate() error
- func (m *SuggestedStackListResponse) ValidateAll() error
- type SuggestedStackListResponseMultiError
- type SuggestedStackListResponseValidationError
- func (e SuggestedStackListResponseValidationError) Cause() error
- func (e SuggestedStackListResponseValidationError) Error() string
- func (e SuggestedStackListResponseValidationError) ErrorName() string
- func (e SuggestedStackListResponseValidationError) Field() string
- func (e SuggestedStackListResponseValidationError) Key() bool
- func (e SuggestedStackListResponseValidationError) Reason() string
- type SuggestedStackMultiError
- type SuggestedStackValidationError
- func (e SuggestedStackValidationError) Cause() error
- func (e SuggestedStackValidationError) Error() string
- func (e SuggestedStackValidationError) ErrorName() string
- func (e SuggestedStackValidationError) Field() string
- func (e SuggestedStackValidationError) Key() bool
- func (e SuggestedStackValidationError) Reason() string
- type UnimplementedBuilderServiceServer
- func (UnimplementedBuilderServiceServer) Create(context.Context, *Builder) (*Builder, error)
- func (UnimplementedBuilderServiceServer) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error)
- func (UnimplementedBuilderServiceServer) List(context.Context, *BuilderListRequest) (*BuilderListResponse, error)
- func (UnimplementedBuilderServiceServer) SuggestedStacks(context.Context, *emptypb.Empty) (*SuggestedStackListResponse, error)
- func (UnimplementedBuilderServiceServer) Update(context.Context, *Builder) (*Builder, error)
- type UnsafeBuilderServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Builder_Status_name = map[int32]string{ 0: "PENDING", 1: "BUILDING", 2: "PUBLISHED", 3: "EXPIRED", 4: "FAILED", } Builder_Status_value = map[string]int32{ "PENDING": 0, "BUILDING": 1, "PUBLISHED": 2, "EXPIRED": 3, "FAILED": 4, } )
Enum value maps for Builder_Status.
var BuilderService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "builder.BuilderService", HandlerType: (*BuilderServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SuggestedStacks", Handler: _BuilderService_SuggestedStacks_Handler, }, { MethodName: "List", Handler: _BuilderService_List_Handler, }, { MethodName: "Create", Handler: _BuilderService_Create_Handler, }, { MethodName: "Update", Handler: _BuilderService_Update_Handler, }, { MethodName: "Delete", Handler: _BuilderService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "builder/builder.proto", }
BuilderService_ServiceDesc is the grpc.ServiceDesc for BuilderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_builder_builder_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuilderServiceHandler ¶
func RegisterBuilderServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBuilderServiceHandler registers the http handlers for service BuilderService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBuilderServiceHandlerClient ¶
func RegisterBuilderServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BuilderServiceClient) error
RegisterBuilderServiceHandlerClient registers the http handlers for service BuilderService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BuilderServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BuilderServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BuilderServiceClient" to call the correct interceptors.
func RegisterBuilderServiceHandlerFromEndpoint ¶
func RegisterBuilderServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBuilderServiceHandlerFromEndpoint is same as RegisterBuilderServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBuilderServiceHandlerServer ¶
func RegisterBuilderServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BuilderServiceServer) error
RegisterBuilderServiceHandlerServer registers the http handlers for service BuilderService to "mux". UnaryRPC :call BuilderServiceServer 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 RegisterBuilderServiceHandlerFromEndpoint instead.
func RegisterBuilderServiceServer ¶
func RegisterBuilderServiceServer(s grpc.ServiceRegistrar, srv BuilderServiceServer)
Types ¶
type Builder ¶
type Builder struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` // @gotags: bson:"_id,omitempty" Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Intro string `protobuf:"bytes,4,opt,name=intro,proto3" json:"intro,omitempty"` RegistryId string `protobuf:"bytes,5,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty" bson:"registry_id,omitempty"` // @gotags: bson:"registry_id,omitempty" StackId string `protobuf:"bytes,6,opt,name=stack_id,json=stackId,proto3" json:"stack_id,omitempty" bson:"stack_id,omitempty"` // @gotags: bson:"stack_id,omitempty" BuildImage string `protobuf:"bytes,7,opt,name=build_image,json=buildImage,proto3" json:"build_image,omitempty" bson:"build_image,omitempty"` // @gotags: bson:"build_image,omitempty" RunImage string `protobuf:"bytes,8,opt,name=run_image,json=runImage,proto3" json:"run_image,omitempty" bson:"run_image,omitempty"` // @gotags: bson:"run_image,omitempty" Packs []*Pack `protobuf:"bytes,9,rep,name=packs,proto3" json:"packs,omitempty"` Status Builder_Status `protobuf:"varint,10,opt,name=status,proto3,enum=builder.Builder_Status" json:"status,omitempty"` Artifact string `protobuf:"bytes,11,opt,name=artifact,proto3" json:"artifact,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 (*Builder) Descriptor
deprecated
func (*Builder) GetArtifact ¶
func (*Builder) GetBuildImage ¶
func (*Builder) GetCreatedAt ¶
func (x *Builder) GetCreatedAt() *timestamppb.Timestamp
func (*Builder) GetRegistryId ¶
func (*Builder) GetRunImage ¶
func (*Builder) GetStackId ¶
func (*Builder) GetStatus ¶
func (x *Builder) GetStatus() Builder_Status
func (*Builder) GetUpdatedAt ¶
func (x *Builder) GetUpdatedAt() *timestamppb.Timestamp
func (*Builder) ProtoMessage ¶
func (*Builder) ProtoMessage()
func (*Builder) ProtoReflect ¶
func (x *Builder) ProtoReflect() protoreflect.Message
func (*Builder) Validate ¶
Validate checks the field values on Builder 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 (*Builder) ValidateAll ¶
ValidateAll checks the field values on Builder 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 BuilderMultiError, or nil if none found.
type BuilderListRequest ¶
type BuilderListRequest struct {
// contains filtered or unexported fields
}
func (*BuilderListRequest) Descriptor
deprecated
func (*BuilderListRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuilderListRequest.ProtoReflect.Descriptor instead.
func (*BuilderListRequest) ProtoMessage ¶
func (*BuilderListRequest) ProtoMessage()
func (*BuilderListRequest) ProtoReflect ¶
func (x *BuilderListRequest) ProtoReflect() protoreflect.Message
func (*BuilderListRequest) Reset ¶
func (x *BuilderListRequest) Reset()
func (*BuilderListRequest) String ¶
func (x *BuilderListRequest) String() string
func (*BuilderListRequest) Validate ¶
func (m *BuilderListRequest) Validate() error
Validate checks the field values on BuilderListRequest 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 (*BuilderListRequest) ValidateAll ¶
func (m *BuilderListRequest) ValidateAll() error
ValidateAll checks the field values on BuilderListRequest 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 BuilderListRequestMultiError, or nil if none found.
type BuilderListRequestMultiError ¶
type BuilderListRequestMultiError []error
BuilderListRequestMultiError is an error wrapping multiple validation errors returned by BuilderListRequest.ValidateAll() if the designated constraints aren't met.
func (BuilderListRequestMultiError) AllErrors ¶
func (m BuilderListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BuilderListRequestMultiError) Error ¶
func (m BuilderListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BuilderListRequestValidationError ¶
type BuilderListRequestValidationError struct {
// contains filtered or unexported fields
}
BuilderListRequestValidationError is the validation error returned by BuilderListRequest.Validate if the designated constraints aren't met.
func (BuilderListRequestValidationError) Cause ¶
func (e BuilderListRequestValidationError) Cause() error
Cause function returns cause value.
func (BuilderListRequestValidationError) Error ¶
func (e BuilderListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BuilderListRequestValidationError) ErrorName ¶
func (e BuilderListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BuilderListRequestValidationError) Field ¶
func (e BuilderListRequestValidationError) Field() string
Field function returns field value.
func (BuilderListRequestValidationError) Key ¶
func (e BuilderListRequestValidationError) Key() bool
Key function returns key value.
func (BuilderListRequestValidationError) Reason ¶
func (e BuilderListRequestValidationError) Reason() string
Reason function returns reason value.
type BuilderListResponse ¶
type BuilderListResponse struct { Items []*Builder `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 (*BuilderListResponse) Descriptor
deprecated
func (*BuilderListResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuilderListResponse.ProtoReflect.Descriptor instead.
func (*BuilderListResponse) GetItems ¶
func (x *BuilderListResponse) GetItems() []*Builder
func (*BuilderListResponse) GetTotal ¶
func (x *BuilderListResponse) GetTotal() int64
func (*BuilderListResponse) ProtoMessage ¶
func (*BuilderListResponse) ProtoMessage()
func (*BuilderListResponse) ProtoReflect ¶
func (x *BuilderListResponse) ProtoReflect() protoreflect.Message
func (*BuilderListResponse) Reset ¶
func (x *BuilderListResponse) Reset()
func (*BuilderListResponse) String ¶
func (x *BuilderListResponse) String() string
func (*BuilderListResponse) Validate ¶
func (m *BuilderListResponse) Validate() error
Validate checks the field values on BuilderListResponse 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 (*BuilderListResponse) ValidateAll ¶
func (m *BuilderListResponse) ValidateAll() error
ValidateAll checks the field values on BuilderListResponse 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 BuilderListResponseMultiError, or nil if none found.
type BuilderListResponseMultiError ¶
type BuilderListResponseMultiError []error
BuilderListResponseMultiError is an error wrapping multiple validation errors returned by BuilderListResponse.ValidateAll() if the designated constraints aren't met.
func (BuilderListResponseMultiError) AllErrors ¶
func (m BuilderListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BuilderListResponseMultiError) Error ¶
func (m BuilderListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BuilderListResponseValidationError ¶
type BuilderListResponseValidationError struct {
// contains filtered or unexported fields
}
BuilderListResponseValidationError is the validation error returned by BuilderListResponse.Validate if the designated constraints aren't met.
func (BuilderListResponseValidationError) Cause ¶
func (e BuilderListResponseValidationError) Cause() error
Cause function returns cause value.
func (BuilderListResponseValidationError) Error ¶
func (e BuilderListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (BuilderListResponseValidationError) ErrorName ¶
func (e BuilderListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (BuilderListResponseValidationError) Field ¶
func (e BuilderListResponseValidationError) Field() string
Field function returns field value.
func (BuilderListResponseValidationError) Key ¶
func (e BuilderListResponseValidationError) Key() bool
Key function returns key value.
func (BuilderListResponseValidationError) Reason ¶
func (e BuilderListResponseValidationError) Reason() string
Reason function returns reason value.
type BuilderMultiError ¶
type BuilderMultiError []error
BuilderMultiError is an error wrapping multiple validation errors returned by Builder.ValidateAll() if the designated constraints aren't met.
func (BuilderMultiError) AllErrors ¶
func (m BuilderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BuilderMultiError) Error ¶
func (m BuilderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BuilderServiceClient ¶
type BuilderServiceClient interface { SuggestedStacks(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SuggestedStackListResponse, error) List(ctx context.Context, in *BuilderListRequest, opts ...grpc.CallOption) (*BuilderListResponse, error) Create(ctx context.Context, in *Builder, opts ...grpc.CallOption) (*Builder, error) Update(ctx context.Context, in *Builder, opts ...grpc.CallOption) (*Builder, error) Delete(ctx context.Context, in *kiae.IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
BuilderServiceClient is the client API for BuilderService 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 NewBuilderServiceClient ¶
func NewBuilderServiceClient(cc grpc.ClientConnInterface) BuilderServiceClient
type BuilderServiceServer ¶
type BuilderServiceServer interface { SuggestedStacks(context.Context, *emptypb.Empty) (*SuggestedStackListResponse, error) List(context.Context, *BuilderListRequest) (*BuilderListResponse, error) Create(context.Context, *Builder) (*Builder, error) Update(context.Context, *Builder) (*Builder, error) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error) }
BuilderServiceServer is the server API for BuilderService service. All implementations should embed UnimplementedBuilderServiceServer for forward compatibility
type BuilderValidationError ¶
type BuilderValidationError struct {
// contains filtered or unexported fields
}
BuilderValidationError is the validation error returned by Builder.Validate if the designated constraints aren't met.
func (BuilderValidationError) Cause ¶
func (e BuilderValidationError) Cause() error
Cause function returns cause value.
func (BuilderValidationError) Error ¶
func (e BuilderValidationError) Error() string
Error satisfies the builtin error interface
func (BuilderValidationError) ErrorName ¶
func (e BuilderValidationError) ErrorName() string
ErrorName returns error name.
func (BuilderValidationError) Field ¶
func (e BuilderValidationError) Field() string
Field function returns field value.
func (BuilderValidationError) Key ¶
func (e BuilderValidationError) Key() bool
Key function returns key value.
func (BuilderValidationError) Reason ¶
func (e BuilderValidationError) Reason() string
Reason function returns reason value.
type Builder_Status ¶
type Builder_Status int32
const ( Builder_PENDING Builder_Status = 0 Builder_BUILDING Builder_Status = 1 Builder_PUBLISHED Builder_Status = 2 Builder_EXPIRED Builder_Status = 3 Builder_FAILED Builder_Status = 4 )
func (Builder_Status) Descriptor ¶
func (Builder_Status) Descriptor() protoreflect.EnumDescriptor
func (Builder_Status) Enum ¶
func (x Builder_Status) Enum() *Builder_Status
func (Builder_Status) EnumDescriptor
deprecated
func (Builder_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Builder_Status.Descriptor instead.
func (Builder_Status) Number ¶
func (x Builder_Status) Number() protoreflect.EnumNumber
func (Builder_Status) String ¶
func (x Builder_Status) String() string
func (Builder_Status) Type ¶
func (Builder_Status) Type() protoreflect.EnumType
type Env ¶
type Env struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Intro string `protobuf:"bytes,2,opt,name=intro,proto3" json:"intro,omitempty"` DefaultValue string `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` // contains filtered or unexported fields }
func (*Env) Descriptor
deprecated
func (*Env) GetDefaultValue ¶
func (*Env) ProtoMessage ¶
func (*Env) ProtoMessage()
func (*Env) ProtoReflect ¶
func (x *Env) ProtoReflect() protoreflect.Message
func (*Env) Validate ¶
Validate checks the field values on Env 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 (*Env) ValidateAll ¶
ValidateAll checks the field values on Env 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 EnvMultiError, or nil if none found.
type EnvMultiError ¶
type EnvMultiError []error
EnvMultiError is an error wrapping multiple validation errors returned by Env.ValidateAll() if the designated constraints aren't met.
func (EnvMultiError) AllErrors ¶
func (m EnvMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvMultiError) Error ¶
func (m EnvMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvValidationError ¶
type EnvValidationError struct {
// contains filtered or unexported fields
}
EnvValidationError is the validation error returned by Env.Validate if the designated constraints aren't met.
func (EnvValidationError) Cause ¶
func (e EnvValidationError) Cause() error
Cause function returns cause value.
func (EnvValidationError) Error ¶
func (e EnvValidationError) Error() string
Error satisfies the builtin error interface
func (EnvValidationError) ErrorName ¶
func (e EnvValidationError) ErrorName() string
ErrorName returns error name.
func (EnvValidationError) Field ¶
func (e EnvValidationError) Field() string
Field function returns field value.
func (EnvValidationError) Key ¶
func (e EnvValidationError) Key() bool
Key function returns key value.
func (EnvValidationError) Reason ¶
func (e EnvValidationError) Reason() string
Reason function returns reason value.
type Pack ¶
type Pack struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` Lang string `protobuf:"bytes,3,opt,name=lang,proto3" json:"lang,omitempty"` Envs []*Env `protobuf:"bytes,4,rep,name=envs,proto3" json:"envs,omitempty"` // contains filtered or unexported fields }
func (*Pack) Descriptor
deprecated
func (*Pack) ProtoMessage ¶
func (*Pack) ProtoMessage()
func (*Pack) ProtoReflect ¶
func (x *Pack) ProtoReflect() protoreflect.Message
func (*Pack) Validate ¶
Validate checks the field values on Pack 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 (*Pack) ValidateAll ¶
ValidateAll checks the field values on Pack 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 PackMultiError, or nil if none found.
type PackMultiError ¶
type PackMultiError []error
PackMultiError is an error wrapping multiple validation errors returned by Pack.ValidateAll() if the designated constraints aren't met.
func (PackMultiError) AllErrors ¶
func (m PackMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PackMultiError) Error ¶
func (m PackMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PackValidationError ¶
type PackValidationError struct {
// contains filtered or unexported fields
}
PackValidationError is the validation error returned by Pack.Validate if the designated constraints aren't met.
func (PackValidationError) Cause ¶
func (e PackValidationError) Cause() error
Cause function returns cause value.
func (PackValidationError) Error ¶
func (e PackValidationError) Error() string
Error satisfies the builtin error interface
func (PackValidationError) ErrorName ¶
func (e PackValidationError) ErrorName() string
ErrorName returns error name.
func (PackValidationError) Field ¶
func (e PackValidationError) Field() string
Field function returns field value.
func (PackValidationError) Key ¶
func (e PackValidationError) Key() bool
Key function returns key value.
func (PackValidationError) Reason ¶
func (e PackValidationError) Reason() string
Reason function returns reason value.
type SuggestedStack ¶
type SuggestedStack struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Intro string `protobuf:"bytes,2,opt,name=intro,proto3" json:"intro,omitempty"` StackId string `protobuf:"bytes,6,opt,name=stack_id,json=stackId,proto3" json:"stack_id,omitempty" bson:"stack_id,omitempty"` // @gotags: bson:"stack_id,omitempty" BuildImage string `protobuf:"bytes,7,opt,name=build_image,json=buildImage,proto3" json:"build_image,omitempty" bson:"build_image,omitempty"` // @gotags: bson:"build_image,omitempty" RunImage string `protobuf:"bytes,8,opt,name=run_image,json=runImage,proto3" json:"run_image,omitempty" bson:"run_image,omitempty"` // @gotags: bson:"run_image,omitempty" // contains filtered or unexported fields }
func (*SuggestedStack) Descriptor
deprecated
func (*SuggestedStack) Descriptor() ([]byte, []int)
Deprecated: Use SuggestedStack.ProtoReflect.Descriptor instead.
func (*SuggestedStack) GetBuildImage ¶
func (x *SuggestedStack) GetBuildImage() string
func (*SuggestedStack) GetIntro ¶
func (x *SuggestedStack) GetIntro() string
func (*SuggestedStack) GetName ¶
func (x *SuggestedStack) GetName() string
func (*SuggestedStack) GetRunImage ¶
func (x *SuggestedStack) GetRunImage() string
func (*SuggestedStack) GetStackId ¶
func (x *SuggestedStack) GetStackId() string
func (*SuggestedStack) ProtoMessage ¶
func (*SuggestedStack) ProtoMessage()
func (*SuggestedStack) ProtoReflect ¶
func (x *SuggestedStack) ProtoReflect() protoreflect.Message
func (*SuggestedStack) Reset ¶
func (x *SuggestedStack) Reset()
func (*SuggestedStack) String ¶
func (x *SuggestedStack) String() string
func (*SuggestedStack) Validate ¶
func (m *SuggestedStack) Validate() error
Validate checks the field values on SuggestedStack 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 (*SuggestedStack) ValidateAll ¶
func (m *SuggestedStack) ValidateAll() error
ValidateAll checks the field values on SuggestedStack 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 SuggestedStackMultiError, or nil if none found.
type SuggestedStackListResponse ¶
type SuggestedStackListResponse struct { Items []*SuggestedStack `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*SuggestedStackListResponse) Descriptor
deprecated
func (*SuggestedStackListResponse) Descriptor() ([]byte, []int)
Deprecated: Use SuggestedStackListResponse.ProtoReflect.Descriptor instead.
func (*SuggestedStackListResponse) GetItems ¶
func (x *SuggestedStackListResponse) GetItems() []*SuggestedStack
func (*SuggestedStackListResponse) ProtoMessage ¶
func (*SuggestedStackListResponse) ProtoMessage()
func (*SuggestedStackListResponse) ProtoReflect ¶
func (x *SuggestedStackListResponse) ProtoReflect() protoreflect.Message
func (*SuggestedStackListResponse) Reset ¶
func (x *SuggestedStackListResponse) Reset()
func (*SuggestedStackListResponse) String ¶
func (x *SuggestedStackListResponse) String() string
func (*SuggestedStackListResponse) Validate ¶
func (m *SuggestedStackListResponse) Validate() error
Validate checks the field values on SuggestedStackListResponse 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 (*SuggestedStackListResponse) ValidateAll ¶
func (m *SuggestedStackListResponse) ValidateAll() error
ValidateAll checks the field values on SuggestedStackListResponse 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 SuggestedStackListResponseMultiError, or nil if none found.
type SuggestedStackListResponseMultiError ¶
type SuggestedStackListResponseMultiError []error
SuggestedStackListResponseMultiError is an error wrapping multiple validation errors returned by SuggestedStackListResponse.ValidateAll() if the designated constraints aren't met.
func (SuggestedStackListResponseMultiError) AllErrors ¶
func (m SuggestedStackListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SuggestedStackListResponseMultiError) Error ¶
func (m SuggestedStackListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SuggestedStackListResponseValidationError ¶
type SuggestedStackListResponseValidationError struct {
// contains filtered or unexported fields
}
SuggestedStackListResponseValidationError is the validation error returned by SuggestedStackListResponse.Validate if the designated constraints aren't met.
func (SuggestedStackListResponseValidationError) Cause ¶
func (e SuggestedStackListResponseValidationError) Cause() error
Cause function returns cause value.
func (SuggestedStackListResponseValidationError) Error ¶
func (e SuggestedStackListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SuggestedStackListResponseValidationError) ErrorName ¶
func (e SuggestedStackListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SuggestedStackListResponseValidationError) Field ¶
func (e SuggestedStackListResponseValidationError) Field() string
Field function returns field value.
func (SuggestedStackListResponseValidationError) Key ¶
func (e SuggestedStackListResponseValidationError) Key() bool
Key function returns key value.
func (SuggestedStackListResponseValidationError) Reason ¶
func (e SuggestedStackListResponseValidationError) Reason() string
Reason function returns reason value.
type SuggestedStackMultiError ¶
type SuggestedStackMultiError []error
SuggestedStackMultiError is an error wrapping multiple validation errors returned by SuggestedStack.ValidateAll() if the designated constraints aren't met.
func (SuggestedStackMultiError) AllErrors ¶
func (m SuggestedStackMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SuggestedStackMultiError) Error ¶
func (m SuggestedStackMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SuggestedStackValidationError ¶
type SuggestedStackValidationError struct {
// contains filtered or unexported fields
}
SuggestedStackValidationError is the validation error returned by SuggestedStack.Validate if the designated constraints aren't met.
func (SuggestedStackValidationError) Cause ¶
func (e SuggestedStackValidationError) Cause() error
Cause function returns cause value.
func (SuggestedStackValidationError) Error ¶
func (e SuggestedStackValidationError) Error() string
Error satisfies the builtin error interface
func (SuggestedStackValidationError) ErrorName ¶
func (e SuggestedStackValidationError) ErrorName() string
ErrorName returns error name.
func (SuggestedStackValidationError) Field ¶
func (e SuggestedStackValidationError) Field() string
Field function returns field value.
func (SuggestedStackValidationError) Key ¶
func (e SuggestedStackValidationError) Key() bool
Key function returns key value.
func (SuggestedStackValidationError) Reason ¶
func (e SuggestedStackValidationError) Reason() string
Reason function returns reason value.
type UnimplementedBuilderServiceServer ¶
type UnimplementedBuilderServiceServer struct { }
UnimplementedBuilderServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedBuilderServiceServer) List ¶
func (UnimplementedBuilderServiceServer) List(context.Context, *BuilderListRequest) (*BuilderListResponse, error)
func (UnimplementedBuilderServiceServer) SuggestedStacks ¶
func (UnimplementedBuilderServiceServer) SuggestedStacks(context.Context, *emptypb.Empty) (*SuggestedStackListResponse, error)
type UnsafeBuilderServiceServer ¶
type UnsafeBuilderServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBuilderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuilderServiceServer will result in compilation errors.