Documentation ¶
Overview ¶
Package app is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAppServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAppServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AppServiceClient) error
- func RegisterAppServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAppServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AppServiceServer) error
- func RegisterAppServiceServer(s grpc.ServiceRegistrar, srv AppServiceServer)
- type ActionPayload
- func (*ActionPayload) Descriptor() ([]byte, []int)deprecated
- func (x *ActionPayload) GetAction() ActionPayload_Action
- func (x *ActionPayload) GetId() string
- func (*ActionPayload) ProtoMessage()
- func (x *ActionPayload) ProtoReflect() protoreflect.Message
- func (x *ActionPayload) Reset()
- func (x *ActionPayload) String() string
- func (m *ActionPayload) Validate() error
- func (m *ActionPayload) ValidateAll() error
- type ActionPayloadMultiError
- type ActionPayloadValidationError
- func (e ActionPayloadValidationError) Cause() error
- func (e ActionPayloadValidationError) Error() string
- func (e ActionPayloadValidationError) ErrorName() string
- func (e ActionPayloadValidationError) Field() string
- func (e ActionPayloadValidationError) Key() bool
- func (e ActionPayloadValidationError) Reason() string
- type ActionPayload_Action
- func (ActionPayload_Action) Descriptor() protoreflect.EnumDescriptor
- func (x ActionPayload_Action) Enum() *ActionPayload_Action
- func (ActionPayload_Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x ActionPayload_Action) Number() protoreflect.EnumNumber
- func (x ActionPayload_Action) String() string
- func (ActionPayload_Action) Type() protoreflect.EnumType
- type AppCfg
- func (*AppCfg) Descriptor() ([]byte, []int)deprecated
- func (x *AppCfg) GetAppid() string
- func (x *AppCfg) GetPayload() *Configuration
- func (*AppCfg) ProtoMessage()
- func (x *AppCfg) ProtoReflect() protoreflect.Message
- func (x *AppCfg) Reset()
- func (x *AppCfg) String() string
- func (m *AppCfg) Validate() error
- func (m *AppCfg) ValidateAll() error
- type AppCfgMultiError
- type AppCfgValidationError
- type AppEnv
- func (*AppEnv) Descriptor() ([]byte, []int)deprecated
- func (x *AppEnv) GetAppid() string
- func (x *AppEnv) GetPayload() *Environment
- func (*AppEnv) ProtoMessage()
- func (x *AppEnv) ProtoReflect() protoreflect.Message
- func (x *AppEnv) Reset()
- func (x *AppEnv) String() string
- func (m *AppEnv) Validate() error
- func (m *AppEnv) ValidateAll() error
- type AppEnvMultiError
- type AppEnvValidationError
- type AppServiceClient
- type AppServiceServer
- type Application
- func (*Application) Descriptor() ([]byte, []int)deprecated
- func (x *Application) GetAnnotations() map[string]string
- func (x *Application) GetConfigs() []*Configuration
- func (x *Application) GetCreatedAt() *timestamppb.Timestamp
- func (x *Application) GetCreatedBy() *timestamppb.Timestamp
- func (x *Application) GetEnv() string
- func (x *Application) GetEnvironments() []*Environment
- func (x *Application) GetId() string
- func (x *Application) GetImage() string
- func (x *Application) GetLivenessProbe() *HealthProbe
- func (x *Application) GetName() string
- func (x *Application) GetPid() string
- func (x *Application) GetPorts() []*project.Port
- func (x *Application) GetReadinessProbe() *HealthProbe
- func (x *Application) GetReplicas() uint32
- func (x *Application) GetSize() Size
- func (x *Application) GetStatus() Status
- func (x *Application) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Application) GetUpdatedBy() *timestamppb.Timestamp
- func (*Application) ProtoMessage()
- func (x *Application) ProtoReflect() protoreflect.Message
- func (x *Application) Reset()
- func (x *Application) String() string
- func (m *Application) Validate() error
- func (m *Application) ValidateAll() error
- type ApplicationMultiError
- type ApplicationValidationError
- func (e ApplicationValidationError) Cause() error
- func (e ApplicationValidationError) Error() string
- func (e ApplicationValidationError) ErrorName() string
- func (e ApplicationValidationError) Field() string
- func (e ApplicationValidationError) Key() bool
- func (e ApplicationValidationError) Reason() string
- type Configuration
- func (*Configuration) Descriptor() ([]byte, []int)deprecated
- func (x *Configuration) GetContent() string
- func (x *Configuration) GetCreatedAt() *timestamppb.Timestamp
- func (x *Configuration) GetFilename() string
- func (x *Configuration) GetMountPath() string
- func (x *Configuration) GetName() string
- func (x *Configuration) GetUpdatedAt() *timestamppb.Timestamp
- func (*Configuration) ProtoMessage()
- func (x *Configuration) ProtoReflect() protoreflect.Message
- func (x *Configuration) Reset()
- func (x *Configuration) String() string
- func (m *Configuration) Validate() error
- func (m *Configuration) ValidateAll() error
- type ConfigurationMultiError
- type ConfigurationValidationError
- func (e ConfigurationValidationError) Cause() error
- func (e ConfigurationValidationError) Error() string
- func (e ConfigurationValidationError) ErrorName() string
- func (e ConfigurationValidationError) Field() string
- func (e ConfigurationValidationError) Key() bool
- func (e ConfigurationValidationError) Reason() string
- type Environment
- func (*Environment) Descriptor() ([]byte, []int)deprecated
- func (x *Environment) GetCreatedAt() *timestamppb.Timestamp
- func (x *Environment) GetName() string
- func (x *Environment) GetType() Environment_Type
- func (x *Environment) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Environment) GetValue() string
- func (*Environment) ProtoMessage()
- func (x *Environment) ProtoReflect() protoreflect.Message
- func (x *Environment) Reset()
- func (x *Environment) String() string
- func (m *Environment) Validate() error
- func (m *Environment) ValidateAll() error
- type EnvironmentMultiError
- type EnvironmentValidationError
- func (e EnvironmentValidationError) Cause() error
- func (e EnvironmentValidationError) Error() string
- func (e EnvironmentValidationError) ErrorName() string
- func (e EnvironmentValidationError) Field() string
- func (e EnvironmentValidationError) Key() bool
- func (e EnvironmentValidationError) Reason() string
- type Environment_Type
- func (Environment_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Environment_Type) Enum() *Environment_Type
- func (Environment_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Environment_Type) Number() protoreflect.EnumNumber
- func (x Environment_Type) String() string
- func (Environment_Type) Type() protoreflect.EnumType
- type HealthProbe
- func (*HealthProbe) Descriptor() ([]byte, []int)deprecated
- func (x *HealthProbe) GetEnabled() bool
- func (x *HealthProbe) GetFailureThreshold() uint32
- func (x *HealthProbe) GetInitialDelaySeconds() uint32
- func (x *HealthProbe) GetPath() string
- func (x *HealthProbe) GetPeriodSeconds() uint32
- func (x *HealthProbe) GetPort() uint32
- func (x *HealthProbe) GetSuccessThreshold() uint32
- func (x *HealthProbe) GetTimeoutSeconds() uint32
- func (*HealthProbe) ProtoMessage()
- func (x *HealthProbe) ProtoReflect() protoreflect.Message
- func (x *HealthProbe) Reset()
- func (x *HealthProbe) String() string
- func (m *HealthProbe) Validate() error
- func (m *HealthProbe) ValidateAll() error
- type HealthProbeMultiError
- type HealthProbeValidationError
- func (e HealthProbeValidationError) Cause() error
- func (e HealthProbeValidationError) Error() string
- func (e HealthProbeValidationError) ErrorName() string
- func (e HealthProbeValidationError) Field() string
- func (e HealthProbeValidationError) Key() bool
- func (e HealthProbeValidationError) Reason() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetPid() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetItems() []*Application
- func (x *ListResponse) GetTotal() int64
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type Size
- type Status
- type UnimplementedAppServiceServer
- func (UnimplementedAppServiceServer) CfgCreate(context.Context, *AppCfg) (*Configuration, error)
- func (UnimplementedAppServiceServer) CfgDelete(context.Context, *AppCfg) (*emptypb.Empty, error)
- func (UnimplementedAppServiceServer) CfgUpdate(context.Context, *AppCfg) (*Configuration, error)
- func (UnimplementedAppServiceServer) Create(context.Context, *Application) (*Application, error)
- func (UnimplementedAppServiceServer) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error)
- func (UnimplementedAppServiceServer) DoAction(context.Context, *ActionPayload) (*Application, error)
- func (UnimplementedAppServiceServer) EnvCreate(context.Context, *AppEnv) (*Environment, error)
- func (UnimplementedAppServiceServer) EnvDelete(context.Context, *AppEnv) (*emptypb.Empty, error)
- func (UnimplementedAppServiceServer) EnvUpdate(context.Context, *AppEnv) (*Environment, error)
- func (UnimplementedAppServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedAppServiceServer) Read(context.Context, *kiae.IdRequest) (*Application, error)
- func (UnimplementedAppServiceServer) Update(context.Context, *UpdateRequest) (*Application, error)
- type UnsafeAppServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetPayload() *Application
- func (x *UpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- func (m *UpdateRequest) Validate() error
- func (m *UpdateRequest) ValidateAll() error
- type UpdateRequestMultiError
- type UpdateRequestValidationError
- func (e UpdateRequestValidationError) Cause() error
- func (e UpdateRequestValidationError) Error() string
- func (e UpdateRequestValidationError) ErrorName() string
- func (e UpdateRequestValidationError) Field() string
- func (e UpdateRequestValidationError) Key() bool
- func (e UpdateRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( Size_name = map[int32]string{ 0: "SIZE_NANO", 1: "SIZE_MIRCO", 2: "SIZE_MINI", 3: "SIZE_SMALL", 4: "SIZE_MEDIUM", 5: "SIZE_LARGE", 6: "SIZE_XLARGE", 7: "SIZE_XXLARGE", } Size_value = map[string]int32{ "SIZE_NANO": 0, "SIZE_MIRCO": 1, "SIZE_MINI": 2, "SIZE_SMALL": 3, "SIZE_MEDIUM": 4, "SIZE_LARGE": 5, "SIZE_XLARGE": 6, "SIZE_XXLARGE": 7, } )
Enum value maps for Size.
var ( Status_name = map[int32]string{ 0: "STATUS_CREATED", 1: "STATUS_RUNNING", 2: "STATUS_STOPPED", 3: "STATUS_DEPLOYING", 4: "STATUS_UNHEALTHY", } Status_value = map[string]int32{ "STATUS_CREATED": 0, "STATUS_RUNNING": 1, "STATUS_STOPPED": 2, "STATUS_DEPLOYING": 3, "STATUS_UNHEALTHY": 4, } )
Enum value maps for Status.
var ( Environment_Type_name = map[int32]string{ 0: "SYSTEM", 1: "PROJ", 2: "USER", } Environment_Type_value = map[string]int32{ "SYSTEM": 0, "PROJ": 1, "USER": 2, } )
Enum value maps for Environment_Type.
var ( ActionPayload_Action_name = map[int32]string{ 0: "START", 1: "STOP", 2: "RESTART", } ActionPayload_Action_value = map[string]int32{ "START": 0, "STOP": 1, "RESTART": 2, } )
Enum value maps for ActionPayload_Action.
var AppService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "app.AppService", HandlerType: (*AppServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _AppService_List_Handler, }, { MethodName: "Create", Handler: _AppService_Create_Handler, }, { MethodName: "Update", Handler: _AppService_Update_Handler, }, { MethodName: "Delete", Handler: _AppService_Delete_Handler, }, { MethodName: "Read", Handler: _AppService_Read_Handler, }, { MethodName: "DoAction", Handler: _AppService_DoAction_Handler, }, { MethodName: "CfgCreate", Handler: _AppService_CfgCreate_Handler, }, { MethodName: "CfgUpdate", Handler: _AppService_CfgUpdate_Handler, }, { MethodName: "CfgDelete", Handler: _AppService_CfgDelete_Handler, }, { MethodName: "EnvCreate", Handler: _AppService_EnvCreate_Handler, }, { MethodName: "EnvUpdate", Handler: _AppService_EnvUpdate_Handler, }, { MethodName: "EnvDelete", Handler: _AppService_EnvDelete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "app/app.proto", }
AppService_ServiceDesc is the grpc.ServiceDesc for AppService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_app_app_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAppServiceHandler ¶
func RegisterAppServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAppServiceHandler registers the http handlers for service AppService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAppServiceHandlerClient ¶
func RegisterAppServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AppServiceClient) error
RegisterAppServiceHandlerClient registers the http handlers for service AppService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AppServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AppServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AppServiceClient" to call the correct interceptors.
func RegisterAppServiceHandlerFromEndpoint ¶
func RegisterAppServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAppServiceHandlerFromEndpoint is same as RegisterAppServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAppServiceHandlerServer ¶
func RegisterAppServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AppServiceServer) error
RegisterAppServiceHandlerServer registers the http handlers for service AppService to "mux". UnaryRPC :call AppServiceServer 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 RegisterAppServiceHandlerFromEndpoint instead.
func RegisterAppServiceServer ¶
func RegisterAppServiceServer(s grpc.ServiceRegistrar, srv AppServiceServer)
Types ¶
type ActionPayload ¶
type ActionPayload struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Action ActionPayload_Action `protobuf:"varint,2,opt,name=action,proto3,enum=app.ActionPayload_Action" json:"action,omitempty"` // contains filtered or unexported fields }
func (*ActionPayload) Descriptor
deprecated
func (*ActionPayload) Descriptor() ([]byte, []int)
Deprecated: Use ActionPayload.ProtoReflect.Descriptor instead.
func (*ActionPayload) GetAction ¶
func (x *ActionPayload) GetAction() ActionPayload_Action
func (*ActionPayload) GetId ¶
func (x *ActionPayload) GetId() string
func (*ActionPayload) ProtoMessage ¶
func (*ActionPayload) ProtoMessage()
func (*ActionPayload) ProtoReflect ¶
func (x *ActionPayload) ProtoReflect() protoreflect.Message
func (*ActionPayload) Reset ¶
func (x *ActionPayload) Reset()
func (*ActionPayload) String ¶
func (x *ActionPayload) String() string
func (*ActionPayload) Validate ¶
func (m *ActionPayload) Validate() error
Validate checks the field values on ActionPayload 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 (*ActionPayload) ValidateAll ¶
func (m *ActionPayload) ValidateAll() error
ValidateAll checks the field values on ActionPayload 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 ActionPayloadMultiError, or nil if none found.
type ActionPayloadMultiError ¶
type ActionPayloadMultiError []error
ActionPayloadMultiError is an error wrapping multiple validation errors returned by ActionPayload.ValidateAll() if the designated constraints aren't met.
func (ActionPayloadMultiError) AllErrors ¶
func (m ActionPayloadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ActionPayloadMultiError) Error ¶
func (m ActionPayloadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ActionPayloadValidationError ¶
type ActionPayloadValidationError struct {
// contains filtered or unexported fields
}
ActionPayloadValidationError is the validation error returned by ActionPayload.Validate if the designated constraints aren't met.
func (ActionPayloadValidationError) Cause ¶
func (e ActionPayloadValidationError) Cause() error
Cause function returns cause value.
func (ActionPayloadValidationError) Error ¶
func (e ActionPayloadValidationError) Error() string
Error satisfies the builtin error interface
func (ActionPayloadValidationError) ErrorName ¶
func (e ActionPayloadValidationError) ErrorName() string
ErrorName returns error name.
func (ActionPayloadValidationError) Field ¶
func (e ActionPayloadValidationError) Field() string
Field function returns field value.
func (ActionPayloadValidationError) Key ¶
func (e ActionPayloadValidationError) Key() bool
Key function returns key value.
func (ActionPayloadValidationError) Reason ¶
func (e ActionPayloadValidationError) Reason() string
Reason function returns reason value.
type ActionPayload_Action ¶
type ActionPayload_Action int32
const ( ActionPayload_START ActionPayload_Action = 0 ActionPayload_STOP ActionPayload_Action = 1 ActionPayload_RESTART ActionPayload_Action = 2 )
func (ActionPayload_Action) Descriptor ¶
func (ActionPayload_Action) Descriptor() protoreflect.EnumDescriptor
func (ActionPayload_Action) Enum ¶
func (x ActionPayload_Action) Enum() *ActionPayload_Action
func (ActionPayload_Action) EnumDescriptor
deprecated
func (ActionPayload_Action) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionPayload_Action.Descriptor instead.
func (ActionPayload_Action) Number ¶
func (x ActionPayload_Action) Number() protoreflect.EnumNumber
func (ActionPayload_Action) String ¶
func (x ActionPayload_Action) String() string
func (ActionPayload_Action) Type ¶
func (ActionPayload_Action) Type() protoreflect.EnumType
type AppCfg ¶
type AppCfg struct { Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"` Payload *Configuration `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*AppCfg) Descriptor
deprecated
func (*AppCfg) GetPayload ¶
func (x *AppCfg) GetPayload() *Configuration
func (*AppCfg) ProtoMessage ¶
func (*AppCfg) ProtoMessage()
func (*AppCfg) ProtoReflect ¶
func (x *AppCfg) ProtoReflect() protoreflect.Message
func (*AppCfg) Validate ¶
Validate checks the field values on AppCfg 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 (*AppCfg) ValidateAll ¶
ValidateAll checks the field values on AppCfg 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 AppCfgMultiError, or nil if none found.
type AppCfgMultiError ¶
type AppCfgMultiError []error
AppCfgMultiError is an error wrapping multiple validation errors returned by AppCfg.ValidateAll() if the designated constraints aren't met.
func (AppCfgMultiError) AllErrors ¶
func (m AppCfgMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AppCfgMultiError) Error ¶
func (m AppCfgMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AppCfgValidationError ¶
type AppCfgValidationError struct {
// contains filtered or unexported fields
}
AppCfgValidationError is the validation error returned by AppCfg.Validate if the designated constraints aren't met.
func (AppCfgValidationError) Cause ¶
func (e AppCfgValidationError) Cause() error
Cause function returns cause value.
func (AppCfgValidationError) Error ¶
func (e AppCfgValidationError) Error() string
Error satisfies the builtin error interface
func (AppCfgValidationError) ErrorName ¶
func (e AppCfgValidationError) ErrorName() string
ErrorName returns error name.
func (AppCfgValidationError) Field ¶
func (e AppCfgValidationError) Field() string
Field function returns field value.
func (AppCfgValidationError) Key ¶
func (e AppCfgValidationError) Key() bool
Key function returns key value.
func (AppCfgValidationError) Reason ¶
func (e AppCfgValidationError) Reason() string
Reason function returns reason value.
type AppEnv ¶
type AppEnv struct { Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"` Payload *Environment `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*AppEnv) Descriptor
deprecated
func (*AppEnv) GetPayload ¶
func (x *AppEnv) GetPayload() *Environment
func (*AppEnv) ProtoMessage ¶
func (*AppEnv) ProtoMessage()
func (*AppEnv) ProtoReflect ¶
func (x *AppEnv) ProtoReflect() protoreflect.Message
func (*AppEnv) Validate ¶
Validate checks the field values on AppEnv 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 (*AppEnv) ValidateAll ¶
ValidateAll checks the field values on AppEnv 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 AppEnvMultiError, or nil if none found.
type AppEnvMultiError ¶
type AppEnvMultiError []error
AppEnvMultiError is an error wrapping multiple validation errors returned by AppEnv.ValidateAll() if the designated constraints aren't met.
func (AppEnvMultiError) AllErrors ¶
func (m AppEnvMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AppEnvMultiError) Error ¶
func (m AppEnvMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AppEnvValidationError ¶
type AppEnvValidationError struct {
// contains filtered or unexported fields
}
AppEnvValidationError is the validation error returned by AppEnv.Validate if the designated constraints aren't met.
func (AppEnvValidationError) Cause ¶
func (e AppEnvValidationError) Cause() error
Cause function returns cause value.
func (AppEnvValidationError) Error ¶
func (e AppEnvValidationError) Error() string
Error satisfies the builtin error interface
func (AppEnvValidationError) ErrorName ¶
func (e AppEnvValidationError) ErrorName() string
ErrorName returns error name.
func (AppEnvValidationError) Field ¶
func (e AppEnvValidationError) Field() string
Field function returns field value.
func (AppEnvValidationError) Key ¶
func (e AppEnvValidationError) Key() bool
Key function returns key value.
func (AppEnvValidationError) Reason ¶
func (e AppEnvValidationError) Reason() string
Reason function returns reason value.
type AppServiceClient ¶
type AppServiceClient interface { List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Create(ctx context.Context, in *Application, opts ...grpc.CallOption) (*Application, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Application, error) Delete(ctx context.Context, in *kiae.IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Read(ctx context.Context, in *kiae.IdRequest, opts ...grpc.CallOption) (*Application, error) DoAction(ctx context.Context, in *ActionPayload, opts ...grpc.CallOption) (*Application, error) CfgCreate(ctx context.Context, in *AppCfg, opts ...grpc.CallOption) (*Configuration, error) CfgUpdate(ctx context.Context, in *AppCfg, opts ...grpc.CallOption) (*Configuration, error) CfgDelete(ctx context.Context, in *AppCfg, opts ...grpc.CallOption) (*emptypb.Empty, error) EnvCreate(ctx context.Context, in *AppEnv, opts ...grpc.CallOption) (*Environment, error) EnvUpdate(ctx context.Context, in *AppEnv, opts ...grpc.CallOption) (*Environment, error) EnvDelete(ctx context.Context, in *AppEnv, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AppServiceClient is the client API for AppService 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 NewAppServiceClient ¶
func NewAppServiceClient(cc grpc.ClientConnInterface) AppServiceClient
type AppServiceServer ¶
type AppServiceServer interface { List(context.Context, *ListRequest) (*ListResponse, error) Create(context.Context, *Application) (*Application, error) Update(context.Context, *UpdateRequest) (*Application, error) Delete(context.Context, *kiae.IdRequest) (*emptypb.Empty, error) Read(context.Context, *kiae.IdRequest) (*Application, error) DoAction(context.Context, *ActionPayload) (*Application, error) CfgCreate(context.Context, *AppCfg) (*Configuration, error) CfgUpdate(context.Context, *AppCfg) (*Configuration, error) CfgDelete(context.Context, *AppCfg) (*emptypb.Empty, error) EnvCreate(context.Context, *AppEnv) (*Environment, error) EnvUpdate(context.Context, *AppEnv) (*Environment, error) EnvDelete(context.Context, *AppEnv) (*emptypb.Empty, error) }
AppServiceServer is the server API for AppService service. All implementations should embed UnimplementedAppServiceServer for forward compatibility
type Application ¶
type Application 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"` Env string `protobuf:"bytes,3,opt,name=env,proto3" json:"env,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` Ports []*project.Port `protobuf:"bytes,6,rep,name=ports,proto3" json:"ports,omitempty"` Status Status `protobuf:"varint,7,opt,name=status,proto3,enum=app.Status" json:"status,omitempty"` Size Size `protobuf:"varint,8,opt,name=size,proto3,enum=app.Size" json:"size,omitempty"` Replicas uint32 `protobuf:"varint,9,opt,name=replicas,proto3" json:"replicas,omitempty"` Annotations map[string]string `` /* 164-byte string literal not displayed */ LivenessProbe *HealthProbe `protobuf:"bytes,15,opt,name=liveness_probe,json=livenessProbe,proto3" json:"liveness_probe,omitempty"` ReadinessProbe *HealthProbe `protobuf:"bytes,16,opt,name=readiness_probe,json=readinessProbe,proto3" json:"readiness_probe,omitempty"` Configs []*Configuration `protobuf:"bytes,17,rep,name=configs,proto3" json:"configs,omitempty"` Environments []*Environment `protobuf:"bytes,18,rep,name=environments,proto3" json:"environments,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" CreatedBy *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty" bson:"created_by,omitempty"` // @gotags: bson:"created_by,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" UpdatedBy *timestamppb.Timestamp `protobuf:"bytes,104,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty" bson:"updated_by,omitempty"` // @gotags: bson:"updated_by,omitempty" // contains filtered or unexported fields }
func (*Application) Descriptor
deprecated
func (*Application) Descriptor() ([]byte, []int)
Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetAnnotations ¶
func (x *Application) GetAnnotations() map[string]string
func (*Application) GetConfigs ¶
func (x *Application) GetConfigs() []*Configuration
func (*Application) GetCreatedAt ¶
func (x *Application) GetCreatedAt() *timestamppb.Timestamp
func (*Application) GetCreatedBy ¶
func (x *Application) GetCreatedBy() *timestamppb.Timestamp
func (*Application) GetEnv ¶
func (x *Application) GetEnv() string
func (*Application) GetEnvironments ¶
func (x *Application) GetEnvironments() []*Environment
func (*Application) GetId ¶
func (x *Application) GetId() string
func (*Application) GetImage ¶
func (x *Application) GetImage() string
func (*Application) GetLivenessProbe ¶
func (x *Application) GetLivenessProbe() *HealthProbe
func (*Application) GetName ¶
func (x *Application) GetName() string
func (*Application) GetPid ¶
func (x *Application) GetPid() string
func (*Application) GetPorts ¶
func (x *Application) GetPorts() []*project.Port
func (*Application) GetReadinessProbe ¶
func (x *Application) GetReadinessProbe() *HealthProbe
func (*Application) GetReplicas ¶
func (x *Application) GetReplicas() uint32
func (*Application) GetSize ¶
func (x *Application) GetSize() Size
func (*Application) GetStatus ¶
func (x *Application) GetStatus() Status
func (*Application) GetUpdatedAt ¶
func (x *Application) GetUpdatedAt() *timestamppb.Timestamp
func (*Application) GetUpdatedBy ¶
func (x *Application) GetUpdatedBy() *timestamppb.Timestamp
func (*Application) ProtoMessage ¶
func (*Application) ProtoMessage()
func (*Application) ProtoReflect ¶
func (x *Application) ProtoReflect() protoreflect.Message
func (*Application) Reset ¶
func (x *Application) Reset()
func (*Application) String ¶
func (x *Application) String() string
func (*Application) Validate ¶
func (m *Application) Validate() error
Validate checks the field values on Application 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 (*Application) ValidateAll ¶
func (m *Application) ValidateAll() error
ValidateAll checks the field values on Application 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 ApplicationMultiError, or nil if none found.
type ApplicationMultiError ¶
type ApplicationMultiError []error
ApplicationMultiError is an error wrapping multiple validation errors returned by Application.ValidateAll() if the designated constraints aren't met.
func (ApplicationMultiError) AllErrors ¶
func (m ApplicationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApplicationMultiError) Error ¶
func (m ApplicationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApplicationValidationError ¶
type ApplicationValidationError struct {
// contains filtered or unexported fields
}
ApplicationValidationError is the validation error returned by Application.Validate if the designated constraints aren't met.
func (ApplicationValidationError) Cause ¶
func (e ApplicationValidationError) Cause() error
Cause function returns cause value.
func (ApplicationValidationError) Error ¶
func (e ApplicationValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationValidationError) ErrorName ¶
func (e ApplicationValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationValidationError) Field ¶
func (e ApplicationValidationError) Field() string
Field function returns field value.
func (ApplicationValidationError) Key ¶
func (e ApplicationValidationError) Key() bool
Key function returns key value.
func (ApplicationValidationError) Reason ¶
func (e ApplicationValidationError) Reason() string
Reason function returns reason value.
type Configuration ¶
type Configuration struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` MountPath string `protobuf:"bytes,4,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Configuration) Descriptor
deprecated
func (*Configuration) Descriptor() ([]byte, []int)
Deprecated: Use Configuration.ProtoReflect.Descriptor instead.
func (*Configuration) GetContent ¶
func (x *Configuration) GetContent() string
func (*Configuration) GetCreatedAt ¶
func (x *Configuration) GetCreatedAt() *timestamppb.Timestamp
func (*Configuration) GetFilename ¶
func (x *Configuration) GetFilename() string
func (*Configuration) GetMountPath ¶
func (x *Configuration) GetMountPath() string
func (*Configuration) GetName ¶
func (x *Configuration) GetName() string
func (*Configuration) GetUpdatedAt ¶
func (x *Configuration) GetUpdatedAt() *timestamppb.Timestamp
func (*Configuration) ProtoMessage ¶
func (*Configuration) ProtoMessage()
func (*Configuration) ProtoReflect ¶
func (x *Configuration) ProtoReflect() protoreflect.Message
func (*Configuration) Reset ¶
func (x *Configuration) Reset()
func (*Configuration) String ¶
func (x *Configuration) String() string
func (*Configuration) Validate ¶
func (m *Configuration) Validate() error
Validate checks the field values on Configuration 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 (*Configuration) ValidateAll ¶
func (m *Configuration) ValidateAll() error
ValidateAll checks the field values on Configuration 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 ConfigurationMultiError, or nil if none found.
type ConfigurationMultiError ¶
type ConfigurationMultiError []error
ConfigurationMultiError is an error wrapping multiple validation errors returned by Configuration.ValidateAll() if the designated constraints aren't met.
func (ConfigurationMultiError) AllErrors ¶
func (m ConfigurationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigurationMultiError) Error ¶
func (m ConfigurationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigurationValidationError ¶
type ConfigurationValidationError struct {
// contains filtered or unexported fields
}
ConfigurationValidationError is the validation error returned by Configuration.Validate if the designated constraints aren't met.
func (ConfigurationValidationError) Cause ¶
func (e ConfigurationValidationError) Cause() error
Cause function returns cause value.
func (ConfigurationValidationError) Error ¶
func (e ConfigurationValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigurationValidationError) ErrorName ¶
func (e ConfigurationValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigurationValidationError) Field ¶
func (e ConfigurationValidationError) Field() string
Field function returns field value.
func (ConfigurationValidationError) Key ¶
func (e ConfigurationValidationError) Key() bool
Key function returns key value.
func (ConfigurationValidationError) Reason ¶
func (e ConfigurationValidationError) Reason() string
Reason function returns reason value.
type Environment ¶
type Environment struct { Type Environment_Type `protobuf:"varint,1,opt,name=type,proto3,enum=app.Environment_Type" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Environment) Descriptor
deprecated
func (*Environment) Descriptor() ([]byte, []int)
Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetCreatedAt ¶
func (x *Environment) GetCreatedAt() *timestamppb.Timestamp
func (*Environment) GetName ¶
func (x *Environment) GetName() string
func (*Environment) GetType ¶
func (x *Environment) GetType() Environment_Type
func (*Environment) GetUpdatedAt ¶
func (x *Environment) GetUpdatedAt() *timestamppb.Timestamp
func (*Environment) GetValue ¶
func (x *Environment) GetValue() string
func (*Environment) ProtoMessage ¶
func (*Environment) ProtoMessage()
func (*Environment) ProtoReflect ¶
func (x *Environment) ProtoReflect() protoreflect.Message
func (*Environment) Reset ¶
func (x *Environment) Reset()
func (*Environment) String ¶
func (x *Environment) String() string
func (*Environment) Validate ¶
func (m *Environment) Validate() error
Validate checks the field values on Environment 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 (*Environment) ValidateAll ¶
func (m *Environment) ValidateAll() error
ValidateAll checks the field values on Environment 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 EnvironmentMultiError, or nil if none found.
type EnvironmentMultiError ¶
type EnvironmentMultiError []error
EnvironmentMultiError is an error wrapping multiple validation errors returned by Environment.ValidateAll() if the designated constraints aren't met.
func (EnvironmentMultiError) AllErrors ¶
func (m EnvironmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentMultiError) Error ¶
func (m EnvironmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentValidationError ¶
type EnvironmentValidationError struct {
// contains filtered or unexported fields
}
EnvironmentValidationError is the validation error returned by Environment.Validate if the designated constraints aren't met.
func (EnvironmentValidationError) Cause ¶
func (e EnvironmentValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentValidationError) Error ¶
func (e EnvironmentValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentValidationError) ErrorName ¶
func (e EnvironmentValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentValidationError) Field ¶
func (e EnvironmentValidationError) Field() string
Field function returns field value.
func (EnvironmentValidationError) Key ¶
func (e EnvironmentValidationError) Key() bool
Key function returns key value.
func (EnvironmentValidationError) Reason ¶
func (e EnvironmentValidationError) Reason() string
Reason function returns reason value.
type Environment_Type ¶
type Environment_Type int32
const ( Environment_SYSTEM Environment_Type = 0 Environment_PROJ Environment_Type = 1 Environment_USER Environment_Type = 2 )
func (Environment_Type) Descriptor ¶
func (Environment_Type) Descriptor() protoreflect.EnumDescriptor
func (Environment_Type) Enum ¶
func (x Environment_Type) Enum() *Environment_Type
func (Environment_Type) EnumDescriptor
deprecated
func (Environment_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Environment_Type.Descriptor instead.
func (Environment_Type) Number ¶
func (x Environment_Type) Number() protoreflect.EnumNumber
func (Environment_Type) String ¶
func (x Environment_Type) String() string
func (Environment_Type) Type ¶
func (Environment_Type) Type() protoreflect.EnumType
type HealthProbe ¶
type HealthProbe struct { Enabled bool `protobuf:"varint,8,opt,name=enabled,proto3" json:"enabled,omitempty"` Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` PeriodSeconds uint32 `protobuf:"varint,3,opt,name=period_seconds,json=periodSeconds,proto3" json:"period_seconds,omitempty"` TimeoutSeconds uint32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` SuccessThreshold uint32 `protobuf:"varint,5,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"` FailureThreshold uint32 `protobuf:"varint,6,opt,name=failure_threshold,json=failureThreshold,proto3" json:"failure_threshold,omitempty"` InitialDelaySeconds uint32 `protobuf:"varint,7,opt,name=initial_delay_seconds,json=initialDelaySeconds,proto3" json:"initial_delay_seconds,omitempty"` // contains filtered or unexported fields }
func (*HealthProbe) Descriptor
deprecated
func (*HealthProbe) Descriptor() ([]byte, []int)
Deprecated: Use HealthProbe.ProtoReflect.Descriptor instead.
func (*HealthProbe) GetEnabled ¶
func (x *HealthProbe) GetEnabled() bool
func (*HealthProbe) GetFailureThreshold ¶
func (x *HealthProbe) GetFailureThreshold() uint32
func (*HealthProbe) GetInitialDelaySeconds ¶
func (x *HealthProbe) GetInitialDelaySeconds() uint32
func (*HealthProbe) GetPath ¶
func (x *HealthProbe) GetPath() string
func (*HealthProbe) GetPeriodSeconds ¶
func (x *HealthProbe) GetPeriodSeconds() uint32
func (*HealthProbe) GetPort ¶
func (x *HealthProbe) GetPort() uint32
func (*HealthProbe) GetSuccessThreshold ¶
func (x *HealthProbe) GetSuccessThreshold() uint32
func (*HealthProbe) GetTimeoutSeconds ¶
func (x *HealthProbe) GetTimeoutSeconds() uint32
func (*HealthProbe) ProtoMessage ¶
func (*HealthProbe) ProtoMessage()
func (*HealthProbe) ProtoReflect ¶
func (x *HealthProbe) ProtoReflect() protoreflect.Message
func (*HealthProbe) Reset ¶
func (x *HealthProbe) Reset()
func (*HealthProbe) String ¶
func (x *HealthProbe) String() string
func (*HealthProbe) Validate ¶
func (m *HealthProbe) Validate() error
Validate checks the field values on HealthProbe 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 (*HealthProbe) ValidateAll ¶
func (m *HealthProbe) ValidateAll() error
ValidateAll checks the field values on HealthProbe 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 HealthProbeMultiError, or nil if none found.
type HealthProbeMultiError ¶
type HealthProbeMultiError []error
HealthProbeMultiError is an error wrapping multiple validation errors returned by HealthProbe.ValidateAll() if the designated constraints aren't met.
func (HealthProbeMultiError) AllErrors ¶
func (m HealthProbeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HealthProbeMultiError) Error ¶
func (m HealthProbeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HealthProbeValidationError ¶
type HealthProbeValidationError struct {
// contains filtered or unexported fields
}
HealthProbeValidationError is the validation error returned by HealthProbe.Validate if the designated constraints aren't met.
func (HealthProbeValidationError) Cause ¶
func (e HealthProbeValidationError) Cause() error
Cause function returns cause value.
func (HealthProbeValidationError) Error ¶
func (e HealthProbeValidationError) Error() string
Error satisfies the builtin error interface
func (HealthProbeValidationError) ErrorName ¶
func (e HealthProbeValidationError) ErrorName() string
ErrorName returns error name.
func (HealthProbeValidationError) Field ¶
func (e HealthProbeValidationError) Field() string
Field function returns field value.
func (HealthProbeValidationError) Key ¶
func (e HealthProbeValidationError) Key() bool
Key function returns key value.
func (HealthProbeValidationError) Reason ¶
func (e HealthProbeValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct { Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetPid ¶
func (x *ListRequest) GetPid() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { Items []*Application `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 (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetItems ¶
func (x *ListResponse) GetItems() []*Application
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() int64
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type Size ¶
type Size int32
func (Size) Descriptor ¶
func (Size) Descriptor() protoreflect.EnumDescriptor
func (Size) EnumDescriptor
deprecated
func (Size) Number ¶
func (x Size) Number() protoreflect.EnumNumber
func (Size) Type ¶
func (Size) Type() protoreflect.EnumType
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedAppServiceServer ¶
type UnimplementedAppServiceServer struct { }
UnimplementedAppServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAppServiceServer) CfgCreate ¶
func (UnimplementedAppServiceServer) CfgCreate(context.Context, *AppCfg) (*Configuration, error)
func (UnimplementedAppServiceServer) CfgUpdate ¶
func (UnimplementedAppServiceServer) CfgUpdate(context.Context, *AppCfg) (*Configuration, error)
func (UnimplementedAppServiceServer) Create ¶
func (UnimplementedAppServiceServer) Create(context.Context, *Application) (*Application, error)
func (UnimplementedAppServiceServer) DoAction ¶
func (UnimplementedAppServiceServer) DoAction(context.Context, *ActionPayload) (*Application, error)
func (UnimplementedAppServiceServer) EnvCreate ¶
func (UnimplementedAppServiceServer) EnvCreate(context.Context, *AppEnv) (*Environment, error)
func (UnimplementedAppServiceServer) EnvUpdate ¶
func (UnimplementedAppServiceServer) EnvUpdate(context.Context, *AppEnv) (*Environment, error)
func (UnimplementedAppServiceServer) List ¶
func (UnimplementedAppServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedAppServiceServer) Read ¶
func (UnimplementedAppServiceServer) Read(context.Context, *kiae.IdRequest) (*Application, error)
func (UnimplementedAppServiceServer) Update ¶
func (UnimplementedAppServiceServer) Update(context.Context, *UpdateRequest) (*Application, error)
type UnsafeAppServiceServer ¶
type UnsafeAppServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAppServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Payload *Application `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetPayload ¶
func (x *UpdateRequest) GetPayload() *Application
func (*UpdateRequest) GetUpdateMask ¶
func (x *UpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
func (*UpdateRequest) Validate ¶
func (m *UpdateRequest) Validate() error
Validate checks the field values on UpdateRequest 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 (*UpdateRequest) ValidateAll ¶
func (m *UpdateRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRequest 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 UpdateRequestMultiError, or nil if none found.
type UpdateRequestMultiError ¶
type UpdateRequestMultiError []error
UpdateRequestMultiError is an error wrapping multiple validation errors returned by UpdateRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRequestMultiError) AllErrors ¶
func (m UpdateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRequestMultiError) Error ¶
func (m UpdateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRequestValidationError ¶
type UpdateRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.
func (UpdateRequestValidationError) Cause ¶
func (e UpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRequestValidationError) Error ¶
func (e UpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRequestValidationError) ErrorName ¶
func (e UpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRequestValidationError) Field ¶
func (e UpdateRequestValidationError) Field() string
Field function returns field value.
func (UpdateRequestValidationError) Key ¶
func (e UpdateRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRequestValidationError) Reason ¶
func (e UpdateRequestValidationError) Reason() string
Reason function returns reason value.