builder

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: 31 Imported by: 0

Documentation

Overview

Package builder is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

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

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Builder.ProtoReflect.Descriptor instead.

func (*Builder) GetArtifact

func (x *Builder) GetArtifact() string

func (*Builder) GetBuildImage

func (x *Builder) GetBuildImage() string

func (*Builder) GetCreatedAt

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

func (*Builder) GetId

func (x *Builder) GetId() string

func (*Builder) GetIntro

func (x *Builder) GetIntro() string

func (*Builder) GetName

func (x *Builder) GetName() string

func (*Builder) GetPacks

func (x *Builder) GetPacks() []*Pack

func (*Builder) GetRegistryId

func (x *Builder) GetRegistryId() string

func (*Builder) GetRunImage

func (x *Builder) GetRunImage() string

func (*Builder) GetStackId

func (x *Builder) GetStackId() string

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

func (x *Builder) Reset()

func (*Builder) String

func (x *Builder) String() string

func (*Builder) Validate

func (m *Builder) Validate() error

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

func (m *Builder) ValidateAll() error

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

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

Cause function returns cause value.

func (BuilderListRequestValidationError) Error

Error satisfies the builtin error interface

func (BuilderListRequestValidationError) ErrorName

ErrorName returns error name.

func (BuilderListRequestValidationError) Field

Field function returns field value.

func (BuilderListRequestValidationError) Key

Key function returns key value.

func (BuilderListRequestValidationError) Reason

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

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

Cause function returns cause value.

func (BuilderListResponseValidationError) Error

Error satisfies the builtin error interface

func (BuilderListResponseValidationError) ErrorName

ErrorName returns error name.

func (BuilderListResponseValidationError) Field

Field function returns field value.

func (BuilderListResponseValidationError) Key

Key function returns key value.

func (BuilderListResponseValidationError) Reason

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.

type BuilderServiceServer

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

func (x Builder_Status) String() string

func (Builder_Status) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Env.ProtoReflect.Descriptor instead.

func (*Env) GetDefaultValue

func (x *Env) GetDefaultValue() string

func (*Env) GetIntro

func (x *Env) GetIntro() string

func (*Env) GetName

func (x *Env) GetName() string

func (*Env) ProtoMessage

func (*Env) ProtoMessage()

func (*Env) ProtoReflect

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

func (*Env) Reset

func (x *Env) Reset()

func (*Env) String

func (x *Env) String() string

func (*Env) Validate

func (m *Env) Validate() error

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

func (m *Env) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Pack.ProtoReflect.Descriptor instead.

func (*Pack) GetEnvs

func (x *Pack) GetEnvs() []*Env

func (*Pack) GetId

func (x *Pack) GetId() string

func (*Pack) GetImage

func (x *Pack) GetImage() string

func (*Pack) GetLang

func (x *Pack) GetLang() string

func (*Pack) ProtoMessage

func (*Pack) ProtoMessage()

func (*Pack) ProtoReflect

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

func (*Pack) Reset

func (x *Pack) Reset()

func (*Pack) String

func (x *Pack) String() string

func (*Pack) Validate

func (m *Pack) Validate() error

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

func (m *Pack) ValidateAll() error

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 (*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

AllErrors returns a list of validation violation errors.

func (SuggestedStackListResponseMultiError) Error

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

Cause function returns cause value.

func (SuggestedStackListResponseValidationError) Error

Error satisfies the builtin error interface

func (SuggestedStackListResponseValidationError) ErrorName

ErrorName returns error name.

func (SuggestedStackListResponseValidationError) Field

Field function returns field value.

func (SuggestedStackListResponseValidationError) Key

Key function returns key value.

func (SuggestedStackListResponseValidationError) Reason

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

Cause function returns cause value.

func (SuggestedStackValidationError) Error

Error satisfies the builtin error interface

func (SuggestedStackValidationError) ErrorName

func (e SuggestedStackValidationError) ErrorName() string

ErrorName returns error name.

func (SuggestedStackValidationError) Field

Field function returns field value.

func (SuggestedStackValidationError) Key

Key function returns key value.

func (SuggestedStackValidationError) Reason

Reason function returns reason value.

type UnimplementedBuilderServiceServer

type UnimplementedBuilderServiceServer struct {
}

UnimplementedBuilderServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedBuilderServiceServer) Create

func (UnimplementedBuilderServiceServer) Delete

func (UnimplementedBuilderServiceServer) List

func (UnimplementedBuilderServiceServer) SuggestedStacks

func (UnimplementedBuilderServiceServer) Update

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.

Jump to

Keyboard shortcuts

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